在 Debian 上“卸载 FTP Server 软件”具体取决于你安装的是哪一个 FTP 服务端。Debian 常见的 FTP Server 有:
vsftpd(最常用)proftpdpure-ftpd下面分别说明如何查看并卸载。
dpkg -l | grep -E "vsftpd|proftpd|pure-ftpd"
或:
systemctl status vsftpd
systemctl status proftpd
systemctl status pure-ftpd
sudo apt remove --purge vsftpd
sudo apt autoremove
sudo apt remove --purge proftpd-core proftpd-basic
sudo apt autoremove
sudo apt remove --purge pure-ftpd pure-ftpd-common
sudo apt autoremove
sudo systemctl stop vsftpd
sudo systemctl disable vsftpd
(把 vsftpd 换成你实际使用的服务名)
sudo rm -rf /etc/vsftpd*
sudo rm -rf /etc/proftpd*
sudo rm -rf /etc/pure-ftpd*
which vsftpd
ftp localhost
systemctl status vsftpd
如果提示 command not found 或 unit not found,说明已卸载。
如果你能告诉我:
我可以给你更精确的卸载命令。