您的位置:首页 > 编程语言 > PHP开发

将FTP映射为本地磁盘

2012-05-07 10:58 627 查看
1、安装
apt-get install curlftpfs
2、简单使用方法

    username:         FTP用户名

    password:             FTP密码

    192.168.1.111:     FTP地址
    /mnt/ftp:                  准备挂载到的路径

挂载

curlftpfs ftp://username:password@192.168.1.111/mnt/ftp[/code] 卸载

fusermount -u /mnt/ftp
3、开放权限,这样其它用户也能读写了,uid和gid改成你自己的id
sudo curlftpfs -o rw,allow_other,uid=1000,gid=1000 ftp://dewdew:dewdew@192.168.1.111 /mnt/ftp
4、开机自动挂载
sudo echo "curlftpfs#username:password@192.168.1.111/mnt/ftp fuse allow_other,uid=userid,gid=groupid 0 0" >> /etc/fstab
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: