Có vẻ như một đơn giản apt-get remove apache2không hoàn toàn loại bỏ apache2vì tôi vẫn có thể thấy nó trên một trong các quy trình khi chạy top. Làm thế nào để loại bỏ apache2hoàn toàn trên máy chủ Ubuntu của mình?
Nó thực sự không bị xóa:
~# 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
Nhưng khi tôi làm apt-get remove apache2lại:
# 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 autoremovevà sau đósudo rm -rf /etc/apache2
apt-get purge apache2. Nó sẽ loại bỏ tất cả các tập tin cấu hình.