0%

centos7下挂载ftp服务器

centos7 下挂载ftp服务器

使用curlftpfs挂载ftp服务器到本地

CENTOS下挂载ftp服务器 | 情文のBLOG (mingilin.com)

安装

yum install curlftpfs

挂载

curlftpfs -o codepage=utf8 ftp://username:password@192.168.192.168 /ftp
## codepage: 编码
## username: FTP用户名
## password: FTP密码
## 192.168.1.111: FTP地址
## /ftp: 准备挂载到的路径

卸载

## fusermount -u /ftp
umount /ftp

开机挂载

echo "curlftpfs#username:password@192.168.1.111 /ftp fuse allow_other,uid=0,gid=0 0 0" >> /etc/fstab