nacos config

This commit is contained in:
eson 2023-09-20 18:00:46 +08:00
parent c6afb3cc2d
commit 1144f78673

View File

@ -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