跟据实战圣经部署项目 启动 nginx 的时候发现 80 端口被占用了,修改/etc/nginx/sites-available 下的 default
server {
listen 8083 default_server;
listen [::]:8083 default_server ipv6only=on;
root /usr/share/nginx/html;
index index.html index.htm;
把端口改为 8083,再重新启动后还是报 80 错
Starting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
查了好多,都说修改重启服务就行了,可是我这就是改不过来,请问各位大哥,该怎么改?
https://ihower.tw/rails4/deployment.html