The nginx command
HTTP and reverse proxy server, mail proxy server 2 examples from the lessons of the IVski Linux Playground — try them in the terminal next to them.
Options in the examples
-t- Do not run, just test the configuration file. nginx checks the configuration file syntax and then tries to open files referenced in the…
Examples
sudo nginx -tcheck every file for mistakes
sudo nginx -t && sudo systemctl reload nginxafter a change to nginx's configuration