修改nginx配置文件server { listen 80; server_name test_go.flyfly520.club; location / { proxy_pass http://127.0.0.1:8081/; } }重启nginx后台启动gin编译后的文件nohup ./main&