重开机后lnmp不能自动启动,怎么办?
重开机后lnmp不能自动启动,怎么办?回复 1# 的帖子
centos or debian?回复 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
回复 3# 的帖子
wget -c http://soft.vpser.net/lnmp/ext/init.d.php-fpm5.2cp 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
这样试试
回复 4# 的帖子
呵呵.多谢了.不过貌似要等4-5分钟才会启动服务,可能我太心急了.
页:
[1]