nacos config
This commit is contained in:
parent
c4e4d1104f
commit
009330a55e
2
proxyserver/.gitignore
vendored
Normal file
2
proxyserver/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
main
|
||||
proxyserver
|
|
@ -40,7 +40,7 @@ done
|
|||
|
||||
# 在每个服务器目录下运行相应的 go 程序
|
||||
for server_dir in "${server_dirs[@]}"; do
|
||||
run_server $server_dir
|
||||
run_server $server_dir &
|
||||
done
|
||||
|
||||
# 定义目录和screen名称
|
||||
|
@ -49,12 +49,11 @@ screen_name="proxyserver"
|
|||
|
||||
# 进入目录
|
||||
cd $dir_path
|
||||
|
||||
# 检查是否存在screen session
|
||||
if screen -list | grep -q "$screen_name"; then
|
||||
# 结束存在的screen session
|
||||
screen -S $screen_name -X quit
|
||||
fi
|
||||
|
||||
go build
|
||||
# 启动新的screen session并运行go程序
|
||||
screen -dmS $screen_name -L go run main.go
|
||||
screen -dmS $screen_name -L ./$screen_name
|
Loading…
Reference in New Issue
Block a user