掛載FTP共享目錄
在linux機器上訪問FTP目錄,(以下示例中10.0.XX.XX是FTP服務器IP,mnt/vh是本地的掛載目錄,ff是用戶名與密碼)
1、安裝依賴
yum -y install curlftpfs
2、掛載共享路徑(在/mnt目錄下,創建vh目錄)
curlftpfs -o codepage=utf8 ftp:usrname:password@10.0.XX.XX /mnt/vh
3、自動掛載共享路勁
vim /etc/rc.d/rc.local curlftpfs -o codepage=utf8 ftp://vh:vh@10.0.62.43 /mnt/vh :wq --保存退出
cd /etc/rc.d/
chmod 777 rc.local

4、卸載掛載
umount /mnt/vh
