link

Nginx

Nginx commands for managing web servers, load balancers, and reverse proxies

9 commands

Commands

9 commands available
Resources

Learn Nginx Deeper

Master Nginx web server with comprehensive resources

nginx

Start Nginx

Start Nginx web server

sudo systemctl start nginx
service
management
nginx

Stop Nginx

Stop Nginx web server

sudo systemctl stop nginx
service
management
nginx

Restart Nginx

Restart Nginx web server

sudo systemctl restart nginx
service
management
nginx

Reload Nginx

Reload Nginx configuration

sudo systemctl reload nginx
service
configuration
nginx

Check Nginx Status

Check Nginx service status

sudo systemctl status nginx
service
monitoring
nginx

Test Nginx Configuration

Test the Nginx configuration for syntax errors

sudo nginx -t
configuration
debug
nginx

Show Nginx Version

Display the Nginx version and configuration options

nginx -v
info
nginx

Reopen Nginx Log Files

Reopen log files (e.g., after log rotation)

sudo nginx -s reopen
logs
rotation
nginx

Check Nginx Listening Ports

Show which ports Nginx is listening on

sudo netstat -tulpn | grep nginx
network
debug