smartwill 发表于 2012-5-18 09:16:00

请教坛里的前辈,无法启动NGINX,提示端口被占用。

Starting nginx daemon: nginxnginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: still could not bind()
nginx already running.



然后查看了下端口

Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN -


有什么办法解决?谢过坛里的前辈。

smartwill 发表于 2012-5-18 09:31:04

这个问题已解决,发现新的问题,可以访问nginx了,也可以浏览index.html,但是无法访问phpinfo.php,提示

502 Bad Gateway

nginx/1.0.15


论坛里关于这个问题的常见帮助也看过了

licess 发表于 2012-5-18 10:35:40

回复 2# 的帖子

可能php没安装成功,按置顶帖要求反馈安装日志

smartwill 发表于 2012-5-18 14:34:53

军哥,确实是PHP没安装成功,我看了/usr/local/php只有一个etc目录

日志发不上来啊,太大了,超过论坛上传限制了。

smartwill 发表于 2012-5-18 14:36:19

错误日志:
http://chongdiandian.com/lnmp.log 这个有3M多

http://chongdiandian.com/lnmp.log.rar   这个压缩了,只有200多K

太大了,上传到VPS里去了,下载的时候请稍等。

这个也是用您的一键安装包的,很好用。

[ 本帖最后由 smartwill 于 2012-5-18 14:39 编辑 ]

smartwill 发表于 2012-5-18 14:40:05

请见附件。

licess 发表于 2012-5-18 14:40:24

Ubuntu 12 的这个问题暂时无解,换其他版本吧

smartwill 发表于 2012-5-18 15:13:00

Ubuntu什么版本可以?

licess 发表于 2012-5-18 16:10:47

9.* 到11.10 都测试过没问题

smartwill 发表于 2012-5-18 16:49:49

好的,我再试试,谢谢军哥

smartwill 发表于 2012-5-18 20:43:25

我换了改装UBUNTU 10.10桌面版,
执行./ubuntu.sh 2>&1 | tee lnmp.log
就出来下面的这种一行行错误
dpkg:warning:ignoring request to remove libmysqlclient15off which isn't installed.
dpkg:warning:ignoring request to remove libmysqlclient15-dev which isn't installed.
dpkg:warning:ignoring request to remove mysql-comm which isn't installed.
dpkg:warning:ignoring request to remove aoache2 which isn't installed.
dpkg:warning:ignoring request to remove aoache2-doc which isn't installed.
dpkg:warning:ignoring request to remove aoache2-mpm-prefork which isn't installed.
dpkg:warning:ignoring request to remove php which isn't installed.

licess 发表于 2012-5-19 08:54:51

回复 11# 的帖子

这不算错误,如果安装最后说没成功就是没成功
页: [1]
查看完整版本: 请教坛里的前辈,无法启动NGINX,提示端口被占用。