將FTP目錄映射爲本地磁盤

  1. 安裝curlftpfscurl

    yum install curlftpfside

  2. 使用curlftpfs命令掛載ui

    curlftpfs ftp://192.168.1.106/defense/facebook02 /mnt/facebook02/ -o user="aa:bb",uid=500,gid=500,allow_otherurl

    將ftp下的目錄/denfense/facebook02掛載到本機/mnt/facebook02/目錄下spa

    user帳號密碼,若是讓不是root的用戶登陸,請將用戶的uid和gid填寫,這樣這個用戶就能夠對掛載目錄進行操做了ci

  3. 開機自動掛載it

    curlftpfs#aa:bb@192.168.1.106/defense/facebook02 /mnt/facebook02 fuse rw,uid=500,gid=500,user,allow_other 0 0class

  4. 卸載登錄

    umount /mnt/facebook02
    ftp

相關文章
相關標籤/搜索