nginx配置快捷启动service

1,/etc/init.d/目录下缺少nginx默认启动脚本 vim /etc/init.d/nginx 新建脚本文件,然后把下面的代码复制进去 #! /bin/sh # chkconfig: 2345 55 25 # Description: Startup script for nginx webserver on Debian. Place in /etc/init.d and # run ‘update-rc.d -f nginx defaults’, or use the appropriate command on your # distro. For CentOS/Redhat run: ‘chkconfig –add nginx’ ### BEGIN INIT INFO # Provides: nginx # Required-Start: $all …