首先说明:curlftpfs效率还是挺慢的,用于局域网内文件传输会出现不稳定的情况。
1.Fedora可以直接yuminstall curlftpfs,CentOS不行,得用DAGrepository,所以得先安装DAGrepository。
在rpm官网(百度也可)去搜索rpmforge-release并下载长传至Linux上;
2. 执行如下命令进行安装:rpm -Uhvrpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
3. 安装curlftpfs:yum install curlftpfs
4. 挂载FTP服务器
curlftpfs -o codepage=utf8ftp://username:password@192.168.192.168 /ftp
curlftpfs -o rw,allow_otherftp://centos:cloud4c@192.168.17.195 /home/centos/ftp
curlftpfs -o rw,allow_other ftp://192.168.17.195/home/centos/ftp
5. 开机自动挂载
echo "curlftpfs#username:password@192.168.1.111 /ftp fuseallow_other,uid=0,gid=0 0 0" >> /etc/fstab
6. 卸载挂载
fusermount -u /ftp
2、映射:curlftpfs ftp://用户密:密码@10.192.1.18 /home/ts/window
2、取消映射:fusermount -u/home/ts/window
用encfs创建加密文件夹时碰到提示错误 fuse: failed to exec fusermount: Permission denied fuse failed. Common problems: - fuse kernel module not installed (modprobe fuse) - invalid options -- see usage message 解决方法: 首先确定已经加载fuse模块,并且fuse模块属于fuse组 ls -l /dev/fuse 可以看到用户是 root fuse 如果是root root sudo chgrp fuse /dev/fuse 然后用groups命令查看当前用户所属的组,如果没有fuse,将当前用户加入 sudo usermod -a -G fuse 你的用户名 完成后重新登录用户