0
点赞
收藏
分享

微信扫一扫

FTP远程挂载

yum install curlftpfs -y

curlftpfs -o codepage=gbk -o rw,allow_other ftp://microoprftp01:xxxx@FTP地址 /app/wuzm/ftp_rsync_test (该挂载可能看不到目录,使用下面命令)

curlftpfs -o codepage=gbk ftp://microoprftp01:xxxx@FTP地址 /app/wuzm/ftp_test

curlftpfs -o codepage=gbk ftp://microoprftp01:xxxx@FTP地址 /data/wuzm/ftp_rsync_test

卸载时可能卸载不掉,需要ps -ef|grep ftp 找到进程后kill掉,但是再次查看目录时会报错,报错信息如下:

cp: cannot stat ‘wuzm/ftp_rsync_test’: Transport endpoint is not connected

cp: cannot stat ‘wuzm/ftp_test’: Transport endpoint is not connected

再次执行fusermount -u wuzm/ftp_test即可

rsync -avz smart_team_video/* microteamftp01@xxxx:/data/ftp/microteamftp01/smart_team_video


注意: 

密码特殊字符需要ASCII转义  ,ASCII转义地址:https://wenku.baidu.com/view/e190756c862458fb770bf78a6529647d27283436.html

举报

相关推荐

0 条评论