
上QQ阅读APP看书,第一时间看更新
There's more...
We can check the NGINX configuration files after changes are made to ensure the syntax is correct. To do this, we run the following:
/usr/sbin/nginx -t
You should see the following if everything is correct:
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
If you have any errors, double check your configuration for syntax errors on the lines indicated.