Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
restart.sh 334 Bytes
Copy Edit Raw Blame History
wenjianzhang authored 2022-11-03 14:55 . patch🚑: update restart
#!/bin/bash
echo "go build"
go mod tidy
go build -o go-admin main.go
chmod +x ./go-admin
echo "kill go-admin service"
killall go-admin # kill go-admin service
nohup ./go-admin server -c=config/settings.dev.yml >> access.log 2>&1 & #后台启动服务将日志写入access.log文件
echo "run go-admin success"
ps -aux | grep go-admin
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化