centos7利用curlftpfs挂载FTP和SMB

挂载FTP

yum install curlftpfs
curlftpfs -o codepage=utf8 ftp://账号:密码@rsapp.nsmc.org.cn/ShanDong/ /home/sddata/ftp.firepoint
#卸载
fusermount -u /home/sddata/ftp.firepoint/ShanDong

SMB挂载

mount -t cifs //172.18.20.6/prog/test/ /home/test/ -o vers=2.1,username=XX,password=XXX
#无密码共享盘
mount -t cifs //172.18.16.30/prog/test/ /home/forecast/ -o username=root
#取消挂载 
fusermount -u /home/test
声明:本文为原创,作者为 枫叶 - 94p.net,转载时请保留本声明及附带文章链接:http://www.94p.net/softcode/linux/88588.html