Server-u used by the server, the client is Windows 2008, the system firewall is enabled, and the batch processing script under Win is very simple, as shown below:
Upload. bat
@echo offrem ////////////////////////////////////////////rem // Tianlesoftware rem // Files Upload Scriptsrem // 2012-6-29rem ////////////////////////////////////////////echo open 192.168.3.168 > ftp.txtecho username >> ftp.txtecho password >> ftp.txtecho bin >> ftp.txtecho cd \GroupBackup >> ftp.txtecho lcd E:\test >> ftp.txtecho prompt >> ftp.txtecho mput * >> ftp.txtecho bye >> ftp.txtftp -s:ftp.txtdel ftp.txt
Because the firewall is enabled here, a problem occurs during the test, that is, you can create files on the server but cannot upload the files, which will always be hung on:
150 openingbinary mode data connection...
FTP is divided into two modes: Active Mode and passive mode. For details, refer:
Http://hi.baidu.com/bystander1983/blog/item/4c264a7f9b1022240cd7da80.html
The FTP service is not like other servers. For example, DNS only uses udp53 ports, email only uses TCP ports 110 and 25, Web uses tcp80 ports, and TFTP uses UDP ports 69, because of its passive mode, the server must provide a port higher than 1024 for the client to use. At the same time, we cannot only require users to use the active mode, because users may not understand this situation, many FTP clients use the passive mode by default. Because, if the firewall only opens ports 20 and 21, the client can perform user authentication, but cannot list directories or transmit data, the system prompts "You do not have permission" and returns an error 550.
Solution 1: Set the port
Refer to blog:
Http://www.iwms.net/n1848c45.aspx
(1) Static port address ing allows users to access specific FTP services in the Intranet through the Internet address + port 21;
(2) set the ACL in the firewall, allowing you to access port 6800-6900 of the FTP server over TCP;
(3) set PASV of Serv-U: Manage -- local server --- set -- Advanced Settings. In the server column, set PASV Prots range to 6800-6900.
(4) Enable settings.
Solution 2:
Disable Firewall
Solution 3:
Configure rules in the firewall to open all ports, but only compete for fixed IP addresses. In this way, no modification is required in server-U.
Other links:
Access FTP and upload and download files on a Linux terminal
Http://blog.csdn.net/tianlesoftware/article/details/5818990
Bytes -------------------------------------------------------------------------------------------------------
All rights reserved. reprinted articles are allowed, but source addresses must be indicated by links. Otherwise, the documents will be held legally responsible!
Skype: tianlesoftware
QQ: tianlesoftware@gmail.com
Email: tianlesoftware@gmail.com
Blog: http://www.tianlesoftware.com
WEAVER: http://weibo.com/tianlesoftware
Twitter: http://twitter.com/tianlesoftware
Facebook: http://www.facebook.com/tianlesoftware
LinkedIn: http://cn.linkedin.com/in/tianlesoftware
------- Add a group to describe the relationship between Oracle tablespace and data files in the remarks section. Otherwise, reject the application ----
Dba1 group: 62697716 (full); dba2 group: 62697977 (full) dba3 group: 62697850 (full)
Super DBA group: 63306533 (full); dba4 group: 83829929 dba5 group: 142216823
Dba6 group: 158654907 dba7 group: 172855474 DBA group: 104207940