阿灯
爱慕虚荣 贪生怕死
CentOS内置源并没有包含CurlFtpFS,可以先安装epel源,然后再安装CurlFtpFS,复制下面的命令执行即可:
#安装epel
yum -y install epel-release
#CentOS安装CurlFtpFS
yum -y install curlftpfs
#如果是Debian or Ubuntu
apt-get -y install curlftpfs
#创建目录
mkdir /mnt/ftp
#挂载
curlftpfs ftp.yourserver.com /mnt/ftp/ -o user=username:password
输入 df -h
查看下是否挂载成功,是的就这么简单,如下截图。