要在Ubuntu上设置FTP服务器(如vsftpd)以在系统启动时自动运行,请按照以下步骤操作:
sudo apt update
sudo apt install vsftpd
sudo systemctl enable vsftpd
这将创建一个符号链接,使vsftpd服务在系统启动时自动启动。
sudo systemctl start vsftpd
sudo systemctl status vsftpd
现在,您的Ubuntu系统应该已经在启动时自动运行FTP服务器了。请注意,您可能还需要配置vsftpd以根据您的需求允许或拒绝用户访问。这可以通过编辑/etc/vsftpd.conf文件来完成。