[英]How to kill processes autostarted by another process in ubuntu 20
在最近apt get update
on ubuntu (20.04.4 LTS) 之后,我的筆記本電腦的 %CPU 飆升,而壞人就是這個過程(來自top
的輸出):
126978 5050 20 0 65460 59152 5824 R 100.0 0.4 0:03.45 gunicorn
我沒有安裝gunicorn
;
無論我如何殺死這個進程( kill -9 $PID
, pkill -f gunicorn
等),它都會回來,而且它似乎是由另一個進程自動啟動的:
$ ps -faux | grep gunicorn
gosia 128413 0.0 0.0 9036 716 pts/0 S+ 11:33 0:00 | | \_ grep --color=auto gunicorn
5050 125403 0.2 0.1 23380 20748 ? Ss 11:26 0:01 \_ /venv/bin/python3 /venv/bin/gunicorn --timeout 86400 --bind [::]:9432 -w 1 --threads 25 --access-logfile - -c gunicorn_config.py run_pgadmin:app
5050 128411 0.0 0.1 37436 30912 ? R 11:33 0:00 \_ /venv/bin/python3 /venv/bin/gunicorn --timeout 86400 --bind [::]:9432 -w 1 --threads 25 --access-logfile - -c gunicorn_config.py run_pgadmin:app
我目前沒有使用任何虛擬環境:
$ which python3
/usr/bin/python3
我不知道從這一點到 go 的位置......我怎樣才能有效地殺死它並防止自動啟動?
非常感謝您的幫助!
我使用命令pstree -aH $PID
獲得了更多信息,它向我展示了這一點:
systemd splash
...
├─containerd-shim -namespace moby -id 56b1f6243bde3d21fcfcdc6ff77e6dce9d92acbc9583d7cc3a3f8420a33855ce -address /run/containerd/containerd.sock
│ ├─gunicorn /venv/bin/gunicorn --timeout 86400 --bind [::]:9432 -w 1 --threads 25 --access-logfile - -c gunicorn_config.py run_pgadmin:app
│ │ ├─gunicorn /venv/bin/gunicorn --timeout 86400 --bind [::]:9432 -w 1 --threads 25 --access-logfile - -c gunicorn_config.py run_pgadmin:app
│ │ └─master -w
│ │ ├─pickup -l -t unix -u
│ │ └─qmgr -l -t unix -u
所以這些似乎是容器問題?
這很奇怪——我在一段時間(幾個月)前玩過docker
,但是從我的系統中卸載了它並在之后刪除了所有容器(或者這就是我的想法......)
但為了確保沒有剩菜,我找到了這篇文章: https://fedingo.com/how-to-uninstall-docker-in-ubuntu/並按照步驟完全清除 docker。
這似乎奏效了,不再有 gunicorn 進程。 這可能是我用apt update
提取的東西(僅推薦和信任的 ubuntu 軟件更新)?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.