请选择 进入手机版 | 继续访问电脑版

Websoft9技术社区(旧版)

 找回密码
 立即注册
查看: 547|回复: 3

急急急!!!部署java-web应用后,nginx的80端口被apache占用...

[复制链接]

1

主题

3

帖子

13

积分

新手上路

Rank: 1

积分
13
发表于 2017-1-9 16:49:17 | 显示全部楼层 |阅读模式
服务器运行的环境:LNMT(Linux-Nginx-Tomcat-MySQL-PHP-JAVA)


之前部署了多个php的网站,nginx都可以正常访问。今天部署了一个java-web应用后,原有的php网站不能访问了(502错误)
查看错误日志如下:
cat [error_nginx.log]
2017/01/09 15:44:16 [crit] 4555#0: *141 connect() to unix:/dev/shm/php-cgi.sock failed (2: No such file or directory) while connecting to upstream,
2017/01/09 15:44:16 [crit] 4555#0: *143 connect() to unix:/dev/shm/php-cgi.sock failed (2: No such file or directory) while connecting to upstream,
2017/01/09 15:44:22 [crit] 4555#0: *145 connect() to unix:/dev/shm/php-cgi.sock failed (2: No such file or directory) while connecting to upstream,
2017/01/09 15:44:24 [crit] 4555#0: *147 connect() to unix:/dev/shm/php-cgi.sock failed (2: No such file or directory) while connecting to upstream,
2017/01/09 15:44:24 [crit] 4555#0: *133 connect() to unix:/dev/shm/php-cgi.sock failed (2: No such file or directory) while connecting to upstream,
2017/01/09 15:44:27 [crit] 4555#0: *150 connect() to unix:/dev/shm/php-cgi.sock failed (2: No such file or directory) while connecting to upstream,
2017/01/09 15:44:49 [crit] 4555#0: *152 connect() to unix:/dev/shm/php-cgi.sock failed (2: No such file or directory) while connecting to upstream,
2017/01/09 15:44:49 [crit] 4555#0: *154 connect() to unix:/dev/shm/php-cgi.sock failed (2: No such file or directory) while connecting to upstream,
2017/01/09 15:44:52 [crit] 4555#0: *156 connect() to unix:/dev/shm/php-cgi.sock failed (2: No such file or directory) while connecting to upstream,
2017/01/09 15:44:52 [crit] 4555#0: *158 connect() to unix:/dev/shm/php-cgi.sock failed (2: No such file or directory) while connecting to upstream,
2017/01/09 15:50:33 [crit] 4555#0: *161 connect() to unix:/dev/shm/php-cgi.sock failed (2: No such file or directory) while connecting to upstream,



然后 cat [error_apache.log]
[Mon Jul 04 14:47:51.999957 2016] [:error] [pid 25198]   script '/data/wwwroot/default/azenv.php' not found or unable to stat
[Mon Jul 04 16:53:49.924428 2016] [:error] [pid 5834] script '/data/wwwroot/default/azenv.php' not found or unable to stat
[Mon Jul 04 17:01:59.634289 2016] [:error] [pid 5831] script '/data/wwwroot/default/azenv.php' not found or unable to stat
[Mon Jul 04 17:27:51.101211 2016] [:error] [pid 6842] script '/data/wwwroot/default/azenv.php' not found or unable to stat
[Mon Jul 04 17:57:12.898478 2016] [:error] [pid 6906]  script '/data/wwwroot/default/azenv.php' not found or unable to stat


发现之前应该由php处理的网站被tomcat接收到了,怎么解决???求大神指导!!!!


回复

使用道具 举报

1

主题

3

帖子

13

积分

新手上路

Rank: 1

积分
13
 楼主| 发表于 2017-1-9 18:21:22 | 显示全部楼层
自己给自己顶一下,千万别沉啊 ,纠结了半天没思路下手解决,求高人啊!!!!
回复 支持 反对

使用道具 举报

284

主题

396

帖子

1584

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1584
发表于 2017-1-10 19:27:44 | 显示全部楼层
建议直接百度查查connect() to unix:/dev/shm/php-cgi.sock failed (2: No such file or directory) while connecting to upstream 这类错误的解决方法。
回复 支持 反对

使用道具 举报

1

主题

3

帖子

13

积分

新手上路

Rank: 1

积分
13
 楼主| 发表于 2017-1-11 22:50:48 | 显示全部楼层
小九 发表于 2017-1-10 19:27
建议直接百度查查connect() to unix:/dev/shm/php-cgi.sock failed (2: No such file or directory) while  ...

谢谢,我去查查,找找解决方法
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

websoft9人工服务,助力企业快速上云

QQ|官网首页|站点统计|Archiver|手机版|小黑屋|Websoft9技术社区(旧版) ( 湘ICP备16009117号

GMT+8, 2017-7-26 20:35 , Processed in 0.017461 second(s), 9 queries , File On.

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表