nginx默认安装80端口修改 |
您所在的位置:网站首页 › 5684端口能换成别的吗 › nginx默认安装80端口修改 |
nginx默认安装80端口修改
nginx默认安装80端口修改
nginx默认安装80端口修改
重启nginx,启动后没有报错。 参考: You can run two server on the same port using nginx: https://serverfault.com/questions/242679/how-to-run-multiple-nginx-instances-on-different-port If you installed gitlab-omnibus and if you want to change the default port: Open /etc/gitlab/gitlab.rb Add external_url “http:// domain:NewPort” Run gitlab-ctl reconfigure If you have installed gitlab manually locate nginx’s folder (you can type whereis nginx on the console) and modify gitlab’s file on the sites-available subfolder. Normally the file you have to modify is: /etc/nginx/sites-available/gitlab /etc/nginx/sites-available 其他报错 nginx重启报错:nginx: [error] invalid PID number “” in “/run/nginx.pid” 问题描述:执行 nginx -t 是OK的,然而在执行 nginx -s reload 的时候报错 nginx: [error] invalid PID number “” in “/run/nginx.pid” 解决办法 需要先执行 nginx -c /etc/nginx/nginx.conf nginx.conf文件的路径可以从nginx -t的返回中找到。 nginx -s reload |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |