首先,安装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 命令的使用方法,可以指定权限等等.
原文链接:http://tangyou.me/use-curlftpfs-will-mount-to-the-local-ftp-space.html
文章评论