linux开机自启动脚本
Centos (例:nginx)编写服务脚本
vim /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 a high-performance web and proxy server.
# I...