nginx

Nginx, and

Syntax

nginx [-s signal] [-c config] [-t]

Parameters

ParametersDescriptionExamplesLevel
(Parameters) Nginx nginx Common
-s stop nginx -s stop Common
-s quit ( and more) nginx -s quit Common
-s reload () nginx -s reload Common
-t Syntax nginx -t Common
-c file nginx -c /etc/nginx/nginx.conf Advanced

Examples

Nginx

sudo systemctl start nginx
# sudo nginx

sudo nginx -t && sudo nginx -s reload
Syntax,

sudo systemctl status nginx

Nginx and Parameters

nginx -V
V

Common Errors

nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)80, lsof -i :80
nginx: [emerg] "server" directive is not allowed hereSyntax, server http

Tips

Related Commands