现在的位置: 首页技术分享>正文
使用curlftpfs将ftp空间挂载到本地
发表于8年前 技术分享 暂无评论 ⁄ 被围观 3,453 次+

      能够使用sshfs挂载sftp空间,自然也有办法实现将ftp空间挂载到本地.要挂载ftp空间,需要使用curlftpfs

      首先,安装curlftpfs

[root@host30 ~]# yum install *curlftpfs*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * rpmforge: yum.ux168.cn
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package fuse-curlftpfs.i386 0:0.9.1-1.el5.rf set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================
 Package                            Arch                        Version                                Repository                        Size
=====================================================================================
Installing:
 fuse-curlftpfs                    i386                       0.9.1-1.el5.rf                          rpmforge                          39 k

Transaction Summary
=====================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)

Total download size: 39 k
Is this ok [y/N]: y
Downloading Packages:
fuse-curlftpfs-0.9.1-1.el5.rf.i386.rpm                                                                                                |  39 kB     00:00    
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : fuse-curlftpfs                                                                                                                        1/1

Installed:
  fuse-curlftpfs.i386 0:0.9.1-1.el5.rf                                                                                                                      

Complete!
 

然后,使用curlftpfs 将ftp空间挂载到本地

[root@host30 ~]# curlftpfs --help
usage: curlftpfs <ftphost> <mountpoint>

最简单的使用就是

curlftpfs ftp://ftp地址/路径 /本地路径/ -o user="ftp用户名:ftp密码"

如果还要根详细的使用,可以参看 curlftpfs 命令的使用方法,可以指定权限等等.
 

给我留言

留言无头像?