朱纯树博客
VPS测评推荐网站
cloudacead cloudacead

停止nginx服务的方法有哪些

停止nginx服务的方法有哪些插图

停止nginx服务有四种方法,如下:

1、从容停止服务

这种方法相对于温和一些,需要进程完成当前工作后再停止服务,命令如下:

nginx -s quit

2、立即停止服务

这种方法比较强硬,无论进程是否在工作,都直接停止进程,命令如下:

nginx -s stop

3、systemctl 停止

systemctl属于Linux命令,具体命令如下:

systemctl stop nginx.service

4、killall 方法杀死进程

直接杀死进程,这种方法一般使用在上面的方法都无效的情况下,具体命令如下:

killall nginx

文章来源于互联网: 停止nginx服务的方法有哪些

赞(0) 打赏
未经允许不得转载:VPS测评推荐网站 - 朱纯树博客 » 停止nginx服务的方法有哪些

评论 18

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #30

    After going over a handful of the blog posts on your
    web page, I really appreciate your way of blogging.
    I book marked it to my bookmark webpage list and will be checking back in the near future.
    Please visit my web site as well and tell me your opinion.

  2. #29

    Hi there! I’m at work browsing your blog from my
    new iphone! Just wanted to say I love reading through
    your blog and look forward to all your posts! Carry on the superb work!

  3. #28

    It’s awesome to pay a visit this website and reading
    the views of all colleagues on the topic of this post, while I am also zealous of getting know-how.