First switch to the execution directory of Nginx:
cd usr/local/nginx/sbin
- start up
./nginx
- Reboot
./nginx -s reload
- shut down
#查询Nginx的进程号
ps -ef | grep nginx
#kill Nginx进程
kill -9 nginx进程号
- installation
yum install -y nginx
- Uninstall
yum remove nginx