VPS侦探论坛

 找回密码
 注册
查看: 5821|回复: 5

求助!安装lnmpa 网站访问502、 php-fpm编译没成功

[复制链接]
发表于 2015-3-1 11:45:21 | 显示全部楼层 |阅读模式

按照教程一步步操作的,空间充足,先安装lnmp,再执行apache.sh,最后才配置的vhost但是访问出现502
看了军哥之前写的,查看了php目录,发现不存在/usr/local/php/sbin/这个文件夹,具体原因不太懂,以前安装过一次lnmp,当时/usr/local/php/sbin/php-fpm有编译成功,这次是重新安装两次都是使用lnmp1.1
麻烦军哥看看是为什么没有安装成功呢?


我需不需要卸载之后再安装呢? lnmpa的卸载跟lnmp卸载有什么区别吗?


ps:安装完成后mysql的root也是不能进入的,输入正确的密码也会报1045错误,需要重新设置密码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2015-3-1 14:00:47 | 显示全部楼层


Test Nginx configure files...
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
ReStarting Nginx......
Stoping nginx... nginx is not running.
Starting nginx...  done
Starting Apache.....
Starting MySQL...
Starting MySQL..                                           [  OK  ]
httpd not running, trying to start
(98)Address already in use: make_sock: could not bind to address 127.0.0.1:88
no listening sockets available, shutting down
Unable to open logs
Remove old startup files and Add new startup file.....
====================== Upgrade to LNMPA completed =====================
You have successfully upgrade from lnmp to lnmpa,enjoy it!
=======================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to upgrade from lnmp to lnmpa

For more information please visit http://www.lnmp.org
=======================================================================
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2015-3-1 14:06:07 | 显示全部楼层

# netstat -nlp |grep :88
tcp        0      0 127.0.0.1:88                0.0.0.0:*                   LISTEN      15068/httpd
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2015-3-1 14:20:05 | 显示全部楼层



# /root/lnmpa restart
=========================================================================
Manager for LNMPA V1.1  ,  Written by Licess
=========================================================================
LNMPA is a tool to auto-compile & install Nginx+MySQL+PHP+Apache on Linux
This script is a tool to Manage status of LNMPA
For more information please visit http://www.lnmp.org

Usage: /root/lnmpa {start|stop|reload|restart|kill|status}
=========================================================================
Stoping LNMPA...
Stoping nginx...  done
Shutting down MySQL.                                       [  OK  ]
httpd (no pid file) not running
Starting LNMPA...
Starting nginx...  done
Starting MySQL..                                           [  OK  ]
(98)Address already in use: make_sock: could not bind to address 127.0.0.1:88
no listening sockets available, shutting down
Unable to open logs
-------------------------------
重启了一下


# /root/lnmpa status
=========================================================================
Manager for LNMPA V1.1  ,  Written by Licess
=========================================================================
LNMPA is a tool to auto-compile & install Nginx+MySQL+PHP+Apache on Linux
This script is a tool to Manage status of LNMPA
For more information please visit http://www.lnmp.org

Usage: /root/lnmpa {start|stop|reload|restart|kill|status}
=========================================================================
nginx (pid 17985 17981 17971 17969 17968 17967 17965 17963 17962 17961 17959 17957 17956 17955 17953 17952 17951) is running...

                                   Not Found

   The requested URL /server-status was not found on this server.
MySQL running (18363)                                      [  OK  ]

----------------------------------------
防火墙也关闭了,重新启动后的状态
占用88端口的也是httpd
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2015-3-1 14:47:54 | 显示全部楼层

目前的处理:netstat -nlp |grep :88 确认占用88端口的进程
ps -aux |grep http 找出所有的httpd进程(共5个),其中就包含了占用88端口的那个
kill -9 进程号 杀掉所有的httpd进程
/root/lnmpa restart

[ 本帖最后由 freya 于 2015-3-1 14:49 编辑 ]

军哥运维代购:http://shop63846532.taobao.com/

发表于 2015-3-1 20:00:30 | 显示全部楼层

之前就说了,lnmpa有了php-fpm那才叫见鬼。
lnmpa的502一般都是后端挂掉或没安装成功
lnmp1.1的卸载脚本会让你自己选择你是lnmp还是lnmpa
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-4-26 19:23 , Processed in 0.027659 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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