Здається, що простий 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
Але коли я 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.
apt-get autoremoveа потімsudo rm -rf /etc/apache2
apt-get purge apache2. Це видалить усі конфігураційні файли.