求助!安装lnmpa 网站访问502、 php-fpm编译没成功
按照教程一步步操作的,空间充足,先安装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错误,需要重新设置密码 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..
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
======================================================================= # netstat -nlp |grep :88
tcp 0 0 127.0.0.1:88 0.0.0.0:* LISTEN 15068/httpd # /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.
httpd (no pid file) not running
Starting LNMPA...
Starting nginx...done
Starting MySQL..
(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)
----------------------------------------
防火墙也关闭了,重新启动后的状态
占用88端口的也是httpd 目前的处理:netstat -nlp |grep :88 确认占用88端口的进程
ps -aux |grep http 找出所有的httpd进程(共5个),其中就包含了占用88端口的那个
kill -9 进程号 杀掉所有的httpd进程
/root/lnmpa restart
[ 本帖最后由 freya 于 2015-3-1 14:49 编辑 ] 之前就说了,lnmpa有了php-fpm那才叫见鬼。
lnmpa的502一般都是后端挂掉或没安装成功
lnmp1.1的卸载脚本会让你自己选择你是lnmp还是lnmpa
页:
[1]