1、 vi /etc/rc.d/rc.local 2、 追加下面的启动命令即可 3、 service nginx start 4、 chmod 755 /etc/rc.d/rc.local 5、 reboot