挂载:
curlftpfs <ftpUser>:<ftpPassword>@<ftpAddress> <localPath>
检查挂载:
df -h
设置开机自动挂载(可选):
echo "curlftpfs#<ftpUser>:<ftpPassword>@<ftpAddress> <localPath> fuse rw,uid=<localUserID>,gid=<localUserGroupID>,allow_other 0 0" | sudo tee -a /etc/fstab
卸载FTP挂载:
sudo umount <localPath>
取消开机挂载:
打开 /etc/fstab 文件,将
curlftpfs#<ftpUser>:<ftpPassword>@<ftpAddress> <localPath> fuse rw,uid=<localUserID>,gid=<localUserGroupID>,allow_other 0 0
这一行删除
示例:
挂载:
sudo curlftpfs user:password@ftp.example.com /mnt/ftp
设置开机自动挂载:
echo "curlftpfs#user:password@ftp.example.com /mnt/ftp fuse rw,uid=1000,gid=1000,allow_other 0 0" | sudo tee -a /etc/fstab
卸载FTP挂载:
sudo umount /mnt/ftp
发表回复