一、查看运行的服务
[root@vm172-25-55-53 ~]# ps -ef |grep nginx
root 9236 8157 0 16:54 pts/2 00:00:00 grep --color=auto nginx
root 14621 1 0 2020 ? 00:00:00 nginx: master process /opt/nginx1.16.0/sbin/nginx -c /opt/nginx1.16.0/conf/nginx.conf
root 25712 14621 0 Jul26 ? 00:00:01 nginx: worker process
root 25713 14621 0 Jul26 ? 00:00:01 nginx: worker process
root 25714 14621 0 Jul26 ? 00:00:01 nginx: worker process
root 25715 14621 0 Jul26 ? 00:00:01 nginx: worker process
二、nginx重载
1、餐期时间不要重载
2、确认完成后在重载
[root@vm172-25-55-53 ~]# /opt/nginx1.16.0/sbin/nginx -s reload #绝对路径启动