前言
最近把 win
服务器切换到了 Linux
,之前获取保融支付回单都是代码通过FTP
下载,其实完全可以通过FTP
映射的方式实现本地读取。
安装服务
安装脚本:
apt-get -y install curlftpfs
挂载:
curlftpfs ftp://10.136.2.173 /mnt/file/payFile/archive -o user="188"
带密码挂载:
curlftpfs -o codepage=utf8 ftp://188:188@10.136.2.173 /mnt/file/payFile/archive
卸载:
fusermount -zu /mnt/file/payFile/
参考
https://www.cnblogs.com/surplus/p/16179293.html
https://blog.csdn.net/MumuziD/article/details/121329770
