安装nginx时,源码包中未带官方的启动脚本,也就无法使用service nginxd start这种启动方式,查了下资料自己写了一个: #!/bin/bash #@version: #@author: lifafu #@file: #@time: // : #@company: source /etc/profile #加载系统环境变量 source $HOME/.bash_profile #加载用户环境变量 #set -o nounset #引用未初始化变量时终止执行,也可以set -u #…