文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Mount a FTP share in Ubuntu as a folder

Mount a FTP share in Ubuntu as a folder

时间:2009-07-02  来源:arley

原文连接:http://www.compdigitec.com/labs/2008/12/07/mount-a-ftp-share-in-ubuntu-as-a-folder/comment-page-1/#comment-4260

部分摘抄:
There are several GUI interfaces for FTP on Linux, such as gFTP and FileZilla. But what if you need to use the powerful Linux command lines on an FTP share? This article will help you mount a FTP share as a folder so you can use your regular Linux tools (grep,nano,mv,rm,ls,etc.) on a FTP share. This can be accomplished using cURLFTPfs.

   1. If you don’t already have curlftpfs installed, install it with sudo apt-get install curlftpfs.
   2. Replacing the appropriate settings, mount the share with sudo curlftpfs -o umask=0777,uid=1000,gid=1000,allow_other ftp://username:[email protected] /media/ftpmountedhere. Make sure that the location to mount to is already created and readable and writable by all users.
   3. To make this permanent, add it to the end of /etc/init.d/rc.local to be able to access the share after reboot.

大概翻译:
curlftpfs 是一个linux下的软件,用于将网络上的ftp共享目录挂载到本地文件夹。命令格式为:
sudo curlftpfs -o umask=0777,uid=1000,gid=1000,allow_other ftp://username:[email protected] /media/ftpmountedhere.

curlftpfs 有很多参数,包括设定读取权限,超时等等。这里有一个例子:
curlftpfs -o umask=0022,uid=1000,gid=1000 ftp://anonymous:@172.17.144.198 newdir
即:将172.17.144.198共享的根目录映射到本地文件夹newdir,然后newdir可以像其他文件夹一样被正常使用。
相关阅读 更多 +
排行榜 更多 +
空中跑酷汉化版

空中跑酷汉化版

赛车竞速 下载
修仙传说

修仙传说

角色扮演 下载
魔界零之迷宫

魔界零之迷宫

冒险解谜 下载