nacos config

This commit is contained in:
eson 2023-09-21 11:10:13 +08:00
parent c4e4d1104f
commit 009330a55e
2 changed files with 5 additions and 4 deletions

2
proxyserver/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
main
proxyserver

View File

@ -40,7 +40,7 @@ done
# 在每个服务器目录下运行相应的 go 程序 # 在每个服务器目录下运行相应的 go 程序
for server_dir in "${server_dirs[@]}"; do for server_dir in "${server_dirs[@]}"; do
run_server $server_dir run_server $server_dir &
done done
# 定义目录和screen名称 # 定义目录和screen名称
@ -49,12 +49,11 @@ screen_name="proxyserver"
# 进入目录 # 进入目录
cd $dir_path cd $dir_path
# 检查是否存在screen session # 检查是否存在screen session
if screen -list | grep -q "$screen_name"; then if screen -list | grep -q "$screen_name"; then
# 结束存在的screen session # 结束存在的screen session
screen -S $screen_name -X quit screen -S $screen_name -X quit
fi fi
go build
# 启动新的screen session并运行go程序 # 启动新的screen session并运行go程序
screen -dmS $screen_name -L go run main.go screen -dmS $screen_name -L ./$screen_name