【发布时间】:2023-03-09 20:55:02
【问题描述】:
我在 CentOS 上有两台服务器:Nginx(proxy) + Apache。 我需要重启 Nginx,但是如果我在重启前尝试测试配置,我会遇到下一个错误:
[root@vm5808 ~]# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
nginx: configuration file /etc/nginx/nginx.conf test failed
我该如何解决这个问题?谢谢!
附: Nginx 有监听 80 端口,apache 监听 81。
【问题讨论】: