前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >linux重启守护进程Kill -HUP

linux重启守护进程Kill -HUP

作者头像
HHTjim 部落格
发布2022-09-26 10:42:51
6.2K0
发布2022-09-26 10:42:51
举报
文章被收录于专栏:HHTjim'S 部落格

linux重启守护进程Kill -HUP

作者:matrix 被围观: 5,389 次 发布时间:2019-04-29 分类:Linux | 一条评论 »

这是一个创建于 1220 天前的主题,其中的信息可能已经有所发展或是发生改变。

linux重启守护进程可以使用-HUP参数来发送hang up挂断信号,系统会重启进程进行复位操作重新读取配置文件

There are also different signals that can be sent to both kill commands. What signal you send will be determined by what results you want from the kill command. For instance, you can send the HUP (hang up) signal to the kill command, which will effectively restart the process. This is always a wise choice when you need the process to immediately restart (such as in the case of a daemon). You can get a list of all the signals that can be sent to the kill command by issuing kill -l. You’ll find quite a large number of signals>

usage

指定进程ID 1011:

代码语言:javascript
复制
kill -HUP 1011

使用/var/run查看进程的ID,操作指定进程

代码语言:javascript
复制
kill -HUP `cat /var/run/nginx.pid`

-HUP无法生效参考:

https://docs.oracle.com/cd/E19253-01/819-7842/fhkpa/index.html

参考:

https://www.[Linux](https://www.hhtjim.com/category/linux).com/learn/intro-to-[Linux](https://www.hhtjim.com/category/linux)/2017/5/how-[kill](https://www.hhtjim.com/tag/kill)-process-command-line

https://blog.csdn.net/u011350541/article/details/50718085

https://www.cnblogs.com/codingcloud/p/5095066.html

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • linux重启守护进程Kill -HUP
    • usage
    领券
    问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档