Linux系统通过安装CurlFtpFS来挂载FTP教程
分类:教程分享 评论:0条 阅读:2366次

Linux系统通过安装CurlFtpFS来挂载FTP教程

分类:教程分享 评论:0条 阅读:2366次

安装

系统要求:DebianUbuntuCentOS

安装CurlFtpFS

#CentOS系统
yum -y install epel-release
yum -y install curlftpfs

#Debian/Ubuntu系统
apt-get install curlftpfs -y

挂载FTP

#创建目录,路径及名称自己定
mkdir /home/ftp
#挂载FTP
curlftpfs 127.0.0.1 /home/ftp -o user=username:password

参数说明:

检查

输入df -h命令查看下是否挂载成功。

1324820666.jpg

最后可以将文件上传至本地文件夹/home/ftp进行备份了。

如果在挂载的时候出现如下错误:

fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option

最简单的解决方法就是让挂载的本地目录变成空文件夹即可。

本篇文章评论已被关闭。