/etc/rc.local配置如下:
##################################
#!/bin/sh
touch /var/lock/subsys/local
ulimit -SH 65535
sudo service nginx restart
sudo /etc/init.d/nginx restart
sudo service mysqld restart
sudo service php-fpm restart
sudo service pureftpd restart
sudo service redis-server restart
sudo service memcache restart
##################################
我实在vagrant里安装的,重启之后mysql和php都能够启动,但是nginx无法启动,开机后手动启动没问题,求解
##################################
#!/bin/sh
touch /var/lock/subsys/local
ulimit -SH 65535
sudo service nginx restart
sudo /etc/init.d/nginx restart
sudo service mysqld restart
sudo service php-fpm restart
sudo service pureftpd restart
sudo service redis-server restart
sudo service memcache restart
##################################
我实在vagrant里安装的,重启之后mysql和php都能够启动,但是nginx无法启动,开机后手动启动没问题,求解