似乎简单apt-get remove apache2并没有完全删除,apache2因为我在运行时仍然可以在其中一个进程上看到它top。如何apache2在他的 ubuntu 服务器上完全删除?
它确实没有被删除:
~# which apache2
/usr/sbin/apache2
~# whereis apache2
apache2: /usr/sbin/apache2 /etc/apache2 /usr/lib/apache2 /usr/share/apache2 /usr/share/man/man8/apache2.8.gz
Run Code Online (Sandbox Code Playgroud)
但是当我apt-get remove apache2再次这样做时:
# apt-get remove apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package apache2 is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Run Code Online (Sandbox Code Playgroud)