Ubuntu下设置 nginx php-fpm 自动启动 rc.local 编辑 root@ubuntu:/usr/sbin# vim /etc/init.d/rc.local /usr/sbin/php-fpm /usr/sbin/nginx 保存!