In rc.local
increasing the boot code on it.
1, View nginx and php-fpm executable file location
whereis nginx
whereis php-fpm
It is generally installed in / usr / sbin / nginx and / usr / sbin / php-fpm
2, editrc.local文件
sudo vi /etc/rc.local
3, the end of the file inserted row
/usr/sbin/nginx
/usr/sbin/php-fpm