Centos7 设置nginx开机自启(systemctl和init.d两种方案) 这里提供两种方案,推荐第二种 方案一(init.d) cd /etc/init.d/ touch nginx chmod +x nginx 编辑nginx,注意替换自己系统的nginx路径 #!/bin/sh # # nginx - this script starts and stops the nginx daemon # # chkconfig: - 85 15 # description: ...
Centos7 设置nginx开机自启(systemctl和init.d两种方案)
- 1