接触过网络,慢动作更新

Linux安装CurlFtpFS挂载FTP

上一篇文章分享了《Namecheap共享虚拟主机使用体验》,正愁不知道用来干嘛,发现Namecheap 20G SSD容量还是蛮大的。正好可以使用CurlFtpFS将FTP挂载到VPS用来备份数据。

安装CurlFtpFS

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


#安装epel
yum -y install epel-release
#CentOS安装CurlFtpFS
yum -y install curlftpfs
#如果是Debian or Ubuntu
apt-get -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查看下是否挂载成功,是的就这么简单,如下截图。

赞(0)
分享到: 更多 (0)

评论 抢沙发

评论前必须登录!

 

2023年了,好好学习,好好生活

油箱Blog@126.gd