在 Debian 系统上让 vsftpd(Very Secure FTP Daemon)开机自启,通常取决于你使用的 init 系统。现代 Debian(如 Debian 8 及以上)默认使用 systemd。
下面分情况说明:
sudo apt update
sudo apt install vsftpd
sudo systemctl enable vsftpd
sudo systemctl start vsftpd
sudo systemctl status vsftpd
看到 active (running) 且 enabled 就说明已自启成功。
sudo update-rc.d vsftpd defaults
sudo service vsftpd start
which vsftpd
如果没有输出,先安装。
检查配置:
sudo vsftpd /etc/vsftpd.conf
或查看日志:
sudo journalctl -u vsftpd
默认端口 21,确认未被其他程序占用。
✅ 现代 Debian(systemd):
sudo systemctl enable vsftpd
sudo systemctl start vsftpd
如果你告诉我 Debian 版本 或是否使用 容器 / 云服务器,我可以给你更精确的建议。