%20%E8%87%B3%200.0.0.0%3A80%20%E5%A4%B1%E8%B4%A5%EF%BC%8898%EF%BC%9A%E5%9C%B0%E5%9D%80%E5%B7%B2%E5%9C%A8%E4%BD%BF%E7%94%A8%E4%B8%AD%EF%BC%89.png)
我编辑了这个文件:
/etc/nginx/sites-enabled/default
到listen 4444;
-https://dpaste.de/nrUy9/
但仍然在端口 80 上。我该怎么办?端口 80 由 apache 使用。
我的错误:
root@user /etc/nginx/sites-enabled # service nginx restart
Restarting 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()
nginx.
答案1
删除 IPv6 绑定块(类似于 ::1:80