linux系统如何挂载FTP共享文件

挂载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
原文地址:https://www.cnblogs.com/ff-gaofeng/p/13630861.html