- NGINX Cookbook
- Tim Butler
- 68字
- 2021-07-03 00:04:19
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.