Files
EasyGoAdmin_GoFrame_EleVue/document/启动命令.txt
T
2026-10-20 11:37:25 +08:00

16 lines
539 B
Plaintext
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.
服务启动命令(端口 :8000)
================================
1. 杀死旧进程(占用 8000 端口):
netstat -ano | findstr ":8000" | findstr LISTENING
taskkill /F /PID <上面查到的PID>
2. 重新编译并启动:
go build -o bin/admin-server.exe main.go && ./bin/admin-server.exe
或一步重启(bash):
PID=$(netstat -ano | grep ':8000' | grep LISTENING | awk '{print $NF}' | head -1); [ -n "$PID" ] && taskkill //F //PID $PID; go build -o bin/admin-server.exe main.go && ./bin/admin-server.exe