Test the Nginx configuration for syntax errors
Check Nginx service status
Display the Nginx version and configuration options
Show which ports Nginx is listening on
sudo netstat -tulpn | grep nginx
Lists all ports currently being used by Nginx.
Show listening ports and associated processes
Start Nginx web server
Stop Nginx web server
Restart Nginx web server