Linux下用curlftpfs挂载FTP服务器 [CentOS][转]

2012年1月21日 | 标签: , ,

A、安装curlftpfs

A.1、安装DAG repository

Fedora可以直接yum install curlftpfs,CentOS不行,得用DAG repository,所以得先安装DAG repository。

rpm -Uhv http://apt.sw.be/RedHat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm

A.2、安装 curlftpfs

yum install curlftpfs

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

原文链接: http://www.linuxidc.com/Linux/2011-05/35917.htm

相关文章:

  1. CentOS/Redhat下安装配置RPMforge
  2. CentOS 5中关闭ipv6
  3. CentOS/RHEL常用网络安全配置
  4. CentOS 5.4 Xen 3.4.2安装/升级
  5. 64位Xen kernel下运行32位linux (CentOS)
  1. Alex
    2012年1月29日22:33

    不知fallday何时在线,想讨论