开机自启动nginx这里使用的是编写shell脚本的方式来处理vi /etc/init.d/nginx (输入下面的代码) #!/bin/bash# nginx Startup script for the Nginx HTTP Server# it is v.0.0.2 version.# chkconfig: - 85 15# description: Nginx is
[root@bogon init.d]# vi /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