nginx部署gin

修改nginx配置文件
server { listen 80; server_name test_go.flyfly520.club; location / { proxy_pass http://127.0.0.1:8081/; } }

重启nginx

后台启动gin编译后的文件

nohup ./main&

posted @ 2020-11-13 00:19  程序员小艺  阅读(1153)  评论(0编辑  收藏  举报