VPS侦探论坛

 找回密码
 注册
查看: 6113|回复: 2

lnmp安装错误,有详细的log,请军哥看看

[复制链接]
发表于 2012-3-30 11:15:38 | 显示全部楼层 |阅读模式

系统 cnetos 32bit[root@MyVPS1482 ~]# uname -a
Linux MyVPS1482 2.6.18-308.1.1.el5xen #1 SMP Wed Mar 7 05:38:01 EST 2012 i686 i686 i386 GNU/Linux
在线安装lnmp0.8,以下是log文件



提示安装完成,但是/root目录下并未有lnmp命令,使用/root/lnmp0.8/lnmp查看服务状态如下:

[root@MyVPS1482 ~]# ./lnmp0.8/lnmp status
=========================================================================
Manager for LNMP V0.8  ,  Written by Licess
=========================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to Manage status of lnmp
For more information please visit http://www.lnmp.org

Usage: /root/lnmp {start|stop|reload|restart|kill|status}
=========================================================================
Nginx is stop!
php-fpm is stop!
MySQL running (1807)                                       [  OK  ]



使用/root/lnmp0.8/lnmp restart重启报错如下:
[root@MyVPS1482 ~]# ./lnmp0.8/lnmp restart
=========================================================================
Manager for LNMP V0.8  ,  Written by Licess
=========================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to Manage status of lnmp
For more information please visit http://www.lnmp.org

Usage: /root/lnmp {start|stop|reload|restart|kill|status}
=========================================================================
Stoping LNMP...
Nginx program is not runing!
PHP-FPM program is not runing!
Shutting down MySQL.                                       [  OK  ]
MySQL program is stop
Starting LNMP...
nginx: [emerg] open() "/usr/local/nginx/conf/nginx.conf" failed (2: No such file                                                                                         or directory)
Nginx start successfully!
Starting php_fpm I/O warning : failed to load external entity "/usr/local/php/et                                                                                        c/php-fpm.conf"
Mar 30 11:05:30.976971 [ERROR] fpm_conf_init_main(), line 517: failed to load co                                                                                        nfiguration file: failed to parse conf file
failed
PHP-FPM start successfully!
Starting MySQL.                                            [  OK  ]
MySQL start successfully!
[root@MyVPS1482 ~]#


以下是/etc/init.d/nginx的start/restart结果

[root@MyVPS1482 ~]# /etc/init.d/nginx restart
Restarting nginx daemon: nginxcat: /usr/local/nginx/logs/nginx.pid: No such file or directory
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
nginx not runningnginx: [emerg] open() "/usr/local/nginx/conf/nginx.conf" failed (2: No such file or directory)
nginx already running.





[root@MyVPS1482 ~]# /etc/init.d/nginx start
Starting nginx daemon: nginxnginx: [emerg] open() "/usr/local/nginx/conf/nginx.conf" failed (2: No such file or directory)
nginx already running.

本帖子中包含更多资源

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

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


/usr/local/nginx/conf/nginx.conf 这个配置文件不存在,把lnmp0.8 安装目录conf下的nginx.conf 拷过去
/usr/local/php/etc/php-fpm.conf  也用lnmp0.8 安装目录conf下的php-fpm.conf 覆盖/usr/local/php/etc/php-fpm.conf  这个
重启再看看
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2012-3-30 12:53:58 | 显示全部楼层

回复 2# 的帖子


已经ok,按照提示凡是没有的。conf文件都手动从lnmp0.8中拷贝过去了

thansk
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-17 01:37 , Processed in 0.026779 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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