CheatSnip

Related

Restart Nginx

nginx

Restart the Nginx service to apply configuration changes or recover from issues.

Reload Nginx Configuration

nginx

Reload the Nginx service configuration without interrupting connections.

Check Nginx Status

nginx

Display the current running status of the Nginx service.

nginx/version

Show Nginx Version

Display the Nginx version and configuration options

info

Command

nginx -v

Explanation

Displays the installed version of Nginx.

Examples

Show version only

nginx -v

Show version with configure arguments

nginx -V

More

Test Nginx Configuration

nginx

Test the Nginx configuration for syntax errors

Check Nginx Listening Ports

nginx

Show which ports Nginx is listening on

Start Nginx

nginx

Start the Nginx web server using systemd or SysV.

CheatSnip

Lightning-fast access to essential developer commands and code snippets. Search, copy, and master your favorite tools with our comprehensive cheat sheets.

Poorna Prakash

Quick Links

Git CommandsDockerNPMKubernetesYour Favorites

Legal

Terms & ConditionsPrivacy PolicyCookie Preferences

Company

About UsContact

© 2025 CheatSnip. All rights reserved.

Made with ❤️ for developers