linux nginx start, stop, restart, shutdown commands, summary of the most commonly used Nginx commands

First switch to the execution directory of Nginx:

cd usr/local/nginx/sbin
  1. start up
./nginx
  1. Reboot
./nginx -s reload
  1. shut down
#查询Nginx的进程号
ps -ef | grep nginx
#kill Nginx进程
kill -9 nginx进程号
  1. installation
yum install -y nginx
  1. Uninstall
yum remove nginx

Guess you like

Origin blog.csdn.net/penggerhe/article/details/108482716