检查 Linux 上被杀死的进程
我发现运行 Debian 的服务器上有几个进程被杀死。我可以确认机器没有重新启动。我想知道是否有办法检查机器上被杀死的进程。
我拥有所需的权限。
I found a couple of processes killed on a server running Debian. I can confirm that the machine was not restarted. I was wondering if there was a way to check the killed processes on the machine.
I have the required permissions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用
systemtap
来跟踪信号的来源和目的地。在您的系统上设置systemtap
并不简单,但在我看来非常值得付出努力。下面是一个跟踪
SIGKILL
的示例探针(来自示例 ):You can use
systemtap
to track signal origins and destinations. Setting upsystemtap
on your system is not trivial, but well worth the effort IMO.Here's an example probe to track
SIGKILL
(from the examples ):http://djangstorm.com/Content/pkill.html。 pkill -e 在这种情况下会有所帮助。
http://djangstorm.com/Content/pkill.html. pkill -e will help in this case.