A、安装curlftpfs服务器
A.一、安装DAG repositorycurl
Fedora能够直接yum install curlftpfs,CentOS不行,得用DAG repository,因此得先安装DAG repository。ide
rpm -Uhv http://apt.sw.be/redhat/el6/en/x86_64/dag/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpmui
A.二、安装 curlftpfs编码
yum install curlftpfsurl
B、挂载FTP服务器spa
B.一、用curlftpfs命令挂载code
curlftpfs -o codepage=utf8 ftp://username:password@192.168.192.168 /ftporm
codepage: 编码ci
username: FTP用户名
password: FTP密码
192.168.1.111: FTP地址
/ftp: 准备挂载到的路径
B.二、卸载挂载
fusermount -u /ftp
或
umount /ftp
B.三、开放权限
这样其它用户也能读写了,uid和gid改为你本身的id
sudo curlftpfs –o rw,allow_other,uid=0,gid=0 ftp:// username: password @192.168.1.111 /ftp
B.四、开机自动挂载echo “curlftpfs#username:password@192.168.1.111 /ftp fuse allow_other,uid=0,gid=0 0 0” >> /etc/fstab