linux平滑重启nginx服务

  • 查找nginx安装位置 
  •  进入nginx安装目录
  • 查看目录下文件并进入sbin目录
  • 查看sbin目录下文件并执行重启命令

 全部流程

[root@iz2ze5w0d1f4lqljfb9ld0z ~]# whereis nginx
nginx: /usr/local/nginx
[root@iz2ze5w0d1f4lqljfb9ld0z ~]# cd /usr/local/nginx/
[root@iz2ze5w0d1f4lqljfb9ld0z nginx]# ls
client_body_temp  conf  cret  fastcgi_temp  html  logs  php  proxy_temp  sbin  scgi_temp  test.log  uwsgi_temp  vhosts  www
[root@iz2ze5w0d1f4lqljfb9ld0z nginx]# cd sbin/
[root@iz2ze5w0d1f4lqljfb9ld0z sbin]# ls
nginx
[root@iz2ze5w0d1f4lqljfb9ld0z sbin]# ./nginx -s reload

猜你喜欢

转载自blog.csdn.net/mangobot/article/details/127791899