update README

This commit is contained in:
lzx 2025-04-16 19:09:54 +08:00
parent 4d4596a641
commit c065a36142
1 changed files with 13 additions and 5 deletions

View File

@ -1,10 +1,15 @@
# start
```
cd cmd/server cd cmd/server
go build -o server go build -o server
cd cmd/gbt cd cmd/gbt
go build -o gbt go build -o gbt
```
# config
```
Add the following config files to the same directory as the compiled files Add the following config files to the same directory as the compiled files
```
```
gbt.conf like this: gbt.conf like this:
{ {
"coin": "test", "coin": "test",
@ -55,7 +60,8 @@ gbt.conf like this:
"compress": true "compress": true
} }
} }
```
```
server.conf like this: server.conf like this:
{ {
"coin": "test", "coin": "test",
@ -101,7 +107,8 @@ server.conf like this:
"compress": true "compress": true
} }
} }
```
```
db.conf like this: db.conf like this:
{ {
"db": { "db": {
@ -136,4 +143,5 @@ db.conf like this:
"maxage": 31, "maxage": 31,
"compress": true "compress": true
} }
} }
```