VPS侦探论坛

 找回密码
 注册
查看: 8984|回复: 4

重开机后lnmp不能自动启动,怎么办?

[复制链接]
发表于 2011-2-24 13:01:31 | 显示全部楼层 |阅读模式

重开机后lnmp不能自动启动,怎么办?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-2-24 20:31:13 | 显示全部楼层

回复 1# 的帖子



centos or debian?
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-4-19 14:03:50 | 显示全部楼层

回复 2# 的帖子


/etc/rc.d/rc.local
文件如下

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
ulimit -SHn 51200
/usr/local/php/sbin/php-fpm start
/usr/local/nginx/sbin/nginx


Centos 5.5
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-4-19 14:11:25 | 显示全部楼层

回复 3# 的帖子




wget -c http://soft.vpser.net/lnmp/ext/init.d.php-fpm5.2
cp init.d.php-fpm5.2 /etc/init.d/php-fpm
chmod +x /etc/init.d/php-fpm

wget -c http://soft.vpser.net/lnmp/ext/init.d.nginx
cp init.d.nginx /etc/init.d/nginx
chmod +x /etc/init.d/nginx

chkconfig --level 345 php-fpm on
chkconfig --level 345 nginx on
这样试试
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-4-19 14:23:30 | 显示全部楼层

回复 4# 的帖子


呵呵.多谢了.不过貌似要等4-5分钟才会启动服务,可能我太心急了.

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

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

本版积分规则

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

GMT+8, 2024-9-20 07:56 , Processed in 0.026624 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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