Skip to main content

nginx web server command.

# To start server with the default config file:
nginx

# To start server with a custom config file:
nginx -c config_file

# To start server with a prefix for all relative paths in the config file:
nginx -c config_file -p prefix/for/relative/paths

# To test the configuration without affecting the running server:
nginx -t

# To reload the configuration by sending a signal with no downtime:
nginx -s reload