启动加载配置文件
[root@172 sbin]#/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
检查配置信息是否正确
[root@172 sbin]# /usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
平滑启动,重新加载配置文件
[root@172 sbin]# /usr/local/nginx/sbin/nginx -s reload
标签:sbin,命令,启动,nginx,usr,conf,local,172 From: https://www.cnblogs.com/QIzhu/p/16832129.html