Nginx / OpenResty

Nginx / OpenResty: nginx -s quit — Linux

Gracefully stop Nginx after active requests finish.

Availability: Tool and version dependent; install separately where required.中文

Syntax

nginx -s quit

Examples

Gracefully stop Nginx after active requests finish.

nginx -s quit

Parameters, options and clauses

Option / clauseDescription
-s quitAsk the master process to stop gracefully.
-c <file>Use the specified configuration file.
-p <prefix>Set the server path prefix.
Safety note

Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.

Official reference ↗Back to directory