LinuxCommandLibrary

nginx

web server and reverse proxy

TLDR

Start nginx

$ nginx
copy
Test configuration
$ nginx -t
copy
Reload configuration
$ nginx -s reload
copy
Stop nginx
$ nginx -s stop
copy
Graceful shutdown
$ nginx -s quit
copy
Show version
$ nginx -v
copy
Use specific config
$ nginx -c [/etc/nginx/nginx.conf]
copy
Prefix path
$ nginx -p [/var/www]
copy

SYNOPSIS

nginx [options]

DESCRIPTION

nginx is a web server and reverse proxy. It handles HTTP, HTTPS, and mail proxy.
The tool serves static content. Supports load balancing and caching.

PARAMETERS

-t

Test configuration.
-s SIGNAL
Send signal (stop, quit, reload, reopen).
-c FILE
Configuration file.
-v
Show version.
-V
Show version and config.
-p PATH
Prefix path.
--help
Display help information.

CAVEATS

Requires configuration. Runs as daemon. Different from Apache config.

HISTORY

nginx was created by Igor Sysoev in 2004 to handle high concurrency with low memory usage.

SEE ALSO

apache2(1), caddy(1), haproxy(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community