CentOS安装CurlFtpFS挂载FTP

2017年11月27日 3280点热度 1人点赞 0条评论

安装CurlFtpFS

CentOS内置源并没有包含CurlFtpFS,可以先安装epel源,然后再安装CurlFtpFS,复制下面的命令执行即可:
#安装epel

yum -y install epel-release

#安装CurlFtpFS

yum -y install curlftpfs

挂载FTP

#创建目录

mkdir /mnt/ftp

#挂载

curlftpfs ftp.yourserver.com /mnt/ftp/ -o user=username:password

ftp.yourserver.com为FTP地址
/mnt/ftp/本地目录
username为FTP用户名
password为FTP密码
输入df -h查看下是否挂载成功。

信仰飘扬

行尽天涯 静默山水间