有时候,我们修改了nginx的配置文件,需要重启nginx才能生效,

而又不想重启VPS,

测试NGINX配置文件是否有效

/usr/local/nginx/sbin/nginx -t
平滑重启nginx

/usr/local/nginx/sbin/nginx -s  reload