好吧,我已经删除了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发布于 2014-09-12 06:15:18
显然,删除包在删除所有文件之前并没有停止正在运行的进程。只要kill主进程,它就会消失:
kill 1175发布于 2014-09-12 06:29:24
实际主流程为1310。
我用过
kill 1310 所有过程都被终止了。
https://stackoverflow.com/questions/25801785
复制相似问题