go-platform/docs/服务端启动命令.md
2026-04-08 20:33:02 +08:00

23 lines
435 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

启动
systemctl daemon-reload
systemctl start go-api
查看是否成功
systemctl status go-api
启动systemctl start go-api
停止systemctl stop go-api
重启systemctl restart go-api
查看状态systemctl status go-api
后台直接启动
cd /www/wwwroot/api.yunzer.cn
nohup go run main.go &
查看是否运行成功
tail -f go.log
下次要重启
pkill go && cd /www/wwwroot/api.yunzer.cn && nohup go run main.go &