gpt4 book ai didi

process - Erlang:杀死所有在后台运行的进程

转载 作者:行者123 更新时间:2023-12-03 22:06:48 25 4
gpt4 key购买 nike

我在后台启动了一个进程:

erl -s system start -detached

我需要终止进程。有没有办法杀死所有在后台运行的进程?

我试过:

init:reboot()

最佳答案

如果你想杀死你系统上所有正在运行的 erlang 进程,如果可能的话,可能以 super 用户身份运行它。在 bash 外壳中:

for i in `ps -ef | grep erl | awk '{print $2}'`; do echo $i; kill -9 $i; done

关于process - Erlang:杀死所有在后台运行的进程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15464606/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com