How to stop Nginx server? Start and restart Nginx via command line
NOTE: This tutorial based on ComfortVPS Nginx Installation Service, but works for all nginx server installed via YUM on CentOS
How to stop Nginx server? How to start and restart Nginx via command line?
Stop Nginx server command: service nginx stop
Start Nginx server command: service nginx start
Restart Nginx server command: service nginx restart
Test Nginx config file command: service nginx configtest
Nginx command line Usage: service nginx {start|stop|restart|condrestart|try-restart|force-reload|upgrade|reload|status|help|configtest}