Nginx - Nginx command line

About

The nginx command line binary file

Syntax

nginx -h
nginx version: nginx/1.16.1
Usage: nginx [-?hvVtTq] [-s signal] [-c filename] [-p prefix] [-g directives]

Options:
  -?,-h         : this help
  -v            : show version and exit
  -V            : show version and configure options then exit
  -t            : test configuration and exit
  -T            : test configuration, dump it and exit
  -q            : suppress non-error messages during configuration testing
  -s signal     : send signal to a master process: stop, quit, reopen, reload
  -p prefix     : set prefix path (default: /usr/share/nginx/)
  -c filename   : set configuration file (default: /etc/nginx/nginx.conf)
  -g directives : set global directives out of configuration file

Example

nginx -t # configuration test
nginx -s reload # reload configuration 
nginx -s reopen # reopen log files
nginx -s quit # quit - It should be executed under the same user that started nginx.
# equivalent to where 1628 is a fake PID (process id)
kill -s QUIT 1628
nginx -v # version
nginx version: nginx/1.16.1





Discover More
400 Default Page No Required Ssl Certificate
How to configure certification based client authentication with Nginx ?

This article shows you how to configure a client authentication via the ownership of a certificat on a Nginx web server. The server should be already configured for HTTPS as client certificate (client...
Nginx - Diagnostic / Debug

This page adds information on how to be able to diagnostic or debug a problem with nginx Error log
Nginx - Https configuration

This article shows you how to configure SSL (https) for the nginx web server You should know the basic of SSL for a server: . When you got: your certificate and the private key you can configure...
Nginx - Log (log_format)

This article is the Web/HTTP log of nginx. The log is: available via the ngx_http_log_module module part of the diagnostic tools. This...
Nginx - Nginx command line

The nginx command line binary file



Share this page:
Follow us:
Task Runner