drawping 发表于 2011-2-24 13:01:31

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

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

licess 发表于 2011-2-24 20:31:13

回复 1# 的帖子

centos or debian?

xmlijian 发表于 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

licess 发表于 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
这样试试

xmlijian 发表于 2011-4-19 14:23:30

回复 4# 的帖子

呵呵.多谢了.不过貌似要等4-5分钟才会启动服务,可能我太心急了.
页: [1]
查看完整版本: 重开机后lnmp不能自动启动,怎么办?