#设置nginx.service为系统服务 systemctl enable nginx.service ##通过系统服务操作nginx systemctl start nginx.service systemctl reload nginx.service systemctl restart nginx.service systemctl stop nginx.service
验证配置是否正确: nginx -t
查看Nginx的版本号:nginx -V
启动Nginx:start nginx
快速停止或关闭Nginx:nginx -s stop
正常停止或关闭Nginx:nginx -s quit
配置文件修改重装载命令:nginx -s reload
## 解压nginx-1.14.0.tar.gz到/usr/local/目录下 tar -zxvf nginx-1.14.0.tar.gz -C /usr/local/