CheatSnip

Related

Test Nginx Configuration

nginx

Test the Nginx configuration for syntax errors

Check Nginx Status

nginx

Display the current running status of the Nginx service.

Show Nginx Version

nginx

Display the Nginx version and configuration options

nginx/check-ports

Check Nginx Listening Ports

Show which ports Nginx is listening on

network
debug

Command

sudo netstat -tulpn | grep nginx

Explanation

Lists all ports currently being used by Nginx.

Examples

Show listening ports and associated processes

sudo netstat -tulpn | grep nginx

More

Display Network Statistics

linux

Show network connections, routing tables, interface statistics, and listening ports.

Start Nginx

nginx

Start the Nginx web server using systemd or SysV.

Stop Nginx

nginx

Stop the running Nginx web server service.

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