nacos config
This commit is contained in:
parent
c6afb3cc2d
commit
1144f78673
|
@ -15,7 +15,7 @@ run_server() {
|
||||||
# 导航到相应的目录
|
# 导航到相应的目录
|
||||||
cd server/$server_name
|
cd server/$server_name
|
||||||
|
|
||||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-w -s" -gcflags "-N -l" -linkshared
|
GOOS=linux GOARCH=amd64 go build -ldflags "-w -s" -linkshared
|
||||||
[ -f .gitignore ] || echo $server_name > .gitignore
|
[ -f .gitignore ] || echo $server_name > .gitignore
|
||||||
# 使用 screen 运行 go run <server_name>.go
|
# 使用 screen 运行 go run <server_name>.go
|
||||||
screen -dmS $server_name -L ./$server_name
|
screen -dmS $server_name -L ./$server_name
|
||||||
|
|
Loading…
Reference in New Issue
Block a user