CENTOS安装curlftpfs


首先说明: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. 安装curlftpfsyum 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 你的用户名
完成后重新登录用户


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值