1 安裝curlftpfs
[root@db2 ~]# yum install -y curlftpfs
2.掛載
[root@db2 ~]# curlftpfs -o codepage=utf-8 ftp://admin:abc123@10.0.0.1 /mnt
3.當掛載路徑下已經有這個同名路徑時,為了避免沖突,會報如下信息,並且新的文件還掛載不上去。
fuse: mountpoint is not empty fuse: if you are sure this is safe, use the 'nonempty' mount option
4.解決辦法:只需要添加 -o nonempty 參數即可
[root@db2 ~]# curlftpfs -o codepage=utf8 -o nonempty ftp://admin:abc123@10.0.0.1/1/data /mnt