我已经删除了PostgreSQL和PostgreSQL xc,但是某些进程正在使用用户名postgre +运行。
当我使用sudo dpkg --purge postgres
时,我得到了:
dpkg:警告:忽略删除未安装的postgres的请求
当我看到正在运行的进程时,它会显示
postgre+ 1175 0.0 0.1 140044 10004 ? S 20:07 0:00 /usr/bin/postgres --datanode -D /var/lib/postgres-xc/DN1
nobody 1202 0.0 0.0 35224 1544 ? S 20:07 0:00 /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts --bind-interfaces --pid-
postgre+ 1203 0.0 0.0 140044 2020 ? Ss 20:07 0:00 postgres: checkpointer process
postgre+ 1204 0.0 0.0 140044 1776 ? Ss 20:07 0:00 postgres: writer process
postgre+ 1205 0.0 0.0 140044 1548 ? Ss 20:07 0:00 postgres: wal writer process
postgre+ 1206 0.0 0.0 140764 2824 ? Ss 20:07 0:01 postgres: autovacuum launcher process
postgre+ 1207 0.0 0.0 108012 1580 ? Ss 20:07 0:00 postgres: stats collector process
postgre+ 1262 0.0 0.1 140036 9984 ? S 20:07 0:00 /usr/bin/postgres --datanode -D /var/lib/postgres-xc/DN2
root 1267 0.0 0.0 0 0 ? S 20:07 0:00 [kauditd]
postgre+ 1310 0.0 0.1 140032 10016 ? S 20:07 0:00 /usr/bin/postgres --coordinator -D /var/lib/postgres-xc/CN
postgre+ 1376 0.0 0.0 140036 2012 ? Ss 20:07 0:00 postgres: checkpointer process
postgre+ 1377 0.0 0.0 140036 1764 ? Ss 20:07 0:00 postgres: writer process
postgre+ 1378 0.0 0.0 140036 1536 ? Ss 20:07 0:00 postgres: wal writer process
postgre+ 1379 0.0 0.0 140756 2812 ? Ss 20:07 0:01 postgres: autovacuum launcher process
postgre+ 1380 0.0 0.0 108004 1568 ? Ss 20:07 0:00 postgres: stats collector process
postgre+ 1412 0.0 0.0 140032 1536 ? Ss 20:07 0:00 postgres: pooler process
postgre+ 1414 0.0 0.0 140032 2012 ? Ss 20:07 0:00 postgres: checkpointer process
postgre+ 1415 0.0 0.0 140032 1764 ? Ss 20:07 0:00 postgres: writer process
postgre+ 1416 0.0 0.0 140032 1536 ? Ss 20:07 0:00 postgres: wal writer process
postgre+ 1417 0.0 0.0 143560 4900 ? Ss 20:07 0:01 postgres: autovacuum launcher process
postgre+ 1418 0.0 0.0 108000 1568 ? Ss 20:07 0:00 postgres: stats collector process
postgre+ 1457 0.0 0.0 83336 2200 ? S 20:07 0:00 /usr/bin/gtm -D /var/lib/postgres-xc/GTM -l /var/log/postgres-xc/datanode.log
答案 0 :(得分:0)
显然,在删除所有文件之前,删除程序包并没有停止正在运行的进程。只需kill
主进程,它就会消失:
kill 1175
答案 1 :(得分:0)
实际的主过程是1310。
我用过
kill 1310
并且所有流程都已终止。