安装乘客后Nginx重启命令失败

前端之家收集整理的这篇文章主要介绍了安装乘客后Nginx重启命令失败前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

我刚刚在我的Ubuntu(8.04)盒子上为Nginx安装了乘客.现在“sudo /etc/init.d/Nginx restart”失败,出现以下错误

@H_301_6@Restarting Nginx: [emerg]: bind() to 0.0.0.0:3000 Failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:3000 Failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:3000 Failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:3000 Failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:3000 Failed (98: Address already in use)
[emerg]: still could not bind()
Nginx.

我在安装了乘客后更新了..init.d / Nginx配置指向/ opt / Nginx,所以一切都会好的.

如果我用“sudo killall Nginx”杀死进程并尝试启动Nginx,它运行正常,但重启不起作用.

最佳答案
直接无视(好了

@H_301_6@Nginx: [warn] conflicting server name "69.162.95.11" on 69.162.95.11:80,ignored

只是警告69.162.95.11不是共享IP,这不是错误
关于

@H_301_6@Nginx: [emerg] bind() to 69.162.95.14:80 Failed (98: Address already in use) 

只是重新启动Nginx解决此问题,如果没有,然后在tweak设置下检查没有ssl端口.安装后,无ssl端口应为8081.
大师
02-12-2011,01:42 AM
从apache或ltespeed关闭端口80
并打开Nginxcp作为端口80

原文链接:https://www.f2er.com/nginx/434808.html

猜你在找的Nginx相关文章