嗨,我是 nginx 的新手,我尝试在我的服务器(运行 Ubuntu 4)上设置它,该服务器已经运行了 apache。
所以在我完成apt-get install之后,我尝试启动 nginx。然后我收到这样的消息:
Starting nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
configuration file /etc/nginx/nginx.conf test is successful
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
Run Code Online (Sandbox Code Playgroud)
这是有道理的,因为 Apache 正在使用端口 80。 …