Is the port really open and the service listening? Generic commands to check the service status on other systems: $ sudo /etc/init.d/nginx statusģ. Nginx also provides a -t switch to test the configuration files if the service command is not available on your system: $ sudo nginx -tĬheck the status of the Nginx service: $ sudo service nginx statusĬheck the status of the Nginx systemd service: Nginx: configuration file /etc/nginx/nf test failed "worker_connections" directive is not allowed here in /etc/nginx/nf:12 In case there are any issues, the output will specify the file and line number on which it occurred: $ sudo service nginx configtest Nginx: configuration file /etc/nginx/nf test is successful Nginx: the configuration file /etc/nginx/nf syntax is ok Check the configuration for syntax errors or warnings: $ sudo service nginx configtest By Pedro Pessoa, Operations Engineer at Server Density.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2023
Categories |