在ubuntu (20.04.4 LTS)上最近的apt get update
之后,我的笔记本电脑的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
我不知道从现在开始该怎么办…我怎样才能有效地杀死它并防止它自动启动?
非常感谢你的帮助!
我使用命令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软件更新)拉出来的东西吗?