在 Debian 系统里让 vsftpd 开机启动,取决于你使用的 初始化系统(现在绝大多数 Debian 都用 systemd)。
下面分情况说明:
sudo apt update
sudo apt install vsftpd
sudo systemctl enable vsftpd
sudo systemctl start vsftpd
systemctl status vsftpd
看到 active (running) 且 enabled 就说明成功。
sudo update-rc.d vsftpd defaults
启动服务:
sudo service vsftpd start
检查是否真的 enable:
systemctl is-enabled vsftpd
返回 enabled 才正常。
测试配置:
sudo vsftpd /etc/vsftpd.conf
或查看日志:
journalctl -u vsftpd
sudo ufw allow 21/tcp
sudo apt install vsftpd
sudo systemctl enable --now vsftpd
如果你告诉我 Debian 版本 或 是否是容器/云服务器,我可以给你更精确的建议。