小编Zha*_*eng的帖子

如何通过不同的端口(80除外)启动nginx

嗨,我是 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。 …

ubuntu nginx

3
推荐指数
1
解决办法
8731
查看次数

标签 统计

nginx ×1

ubuntu ×1