# 1. 检测修改过后的配置文件是否有错误
/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
# 2. 平滑重启
/usr/local/nginx/sbin/nginx -s reload
11-10
797
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-25
939
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)