Linux下用curlftpfs挂载FTP服务器
B、挂载FTP服务器B.1、用curlftpfs命令挂载
curlftpfs -o codepage=utf8 ftp://username:password@192.168.192.168 /ftp
codepage: 编码
username: FTP用户名
password: FTP密码
192.168.1.111:FTP地址
/ftp: 准备挂载到的路径
B.2、卸载挂载
fusermount -u /ftp
或
umount /ftp
B.3、开放权限
这样其它用户也能读写了,uid和gid改成你自己的id
sudo curlftpfs –o rw,allow_other,uid=0,gid=0 ftp:// username: password @192.168.1.111 /ftp
B.4、开机自动挂载
echo "curlftpfs#username:password@192.168.1.111 /ftp fuse allow_other,uid=0,gid=0 0 0" >> /etc/fstab
页:
[1]