问题:
ftp传输二进制文件,文件损坏
解决方案:
传输二进制前,将传输模式改成binary
[root@unit1 conf]# ftp 192.168.120.12
Connected to 192.168.120.12 (192.168.120.12).
220-FileZilla Server 中文版 0.9.60 beta
220-written by Tim Kosse (tim.kosse@filezilla-project.org)
220 Please visit https://filezilla-project.org/
Name (192.168.120.12:root): array
331 Password required for array
Password:
230 Logged on
Remote system type is UNIX.
ftp> binary
200 Type set to I
ftp> put aaa.db
local: aaa.db remote: aaa.db
227 Entering Passive Mode (192,168,120,12,235,43)
150 Opening data channel for file upload to server of "/aaa.db"
226 Successfully transferred "/aaa.db"
237568 bytes sent in 0.0255 secs (9329.20 Kbytes/sec)
ftp> exit
221 Goodbye