About NGINX server failed to upload pictures

The second use Taotao store image server, and not come across before in his notebook this problem, this time in the company to build a good computer, upload always failed, there are new xxx.jpg in the server, but the size of the It is 0k, obviously failed to upload.


But the end FileZilla can successfully uploaded via ftp client, and the machine can successfully access to picture nginx server address of the virtual machine. After trying to shut down the firewall, file successfully uploaded! However, the firewall can not have been closed to WIN7 example:

Open Firewall -> Allow a program or feature through the firewall

By default, these Java programs is that, behind the four public did not check on.


When a check on the success, Eclipse to write code to successfully upload pictures to the server nginx!


Summary: Eclipse java program call some upload method (such as FTPClient in this example) will be blocked by the firewall, when third-party clients can achieve upload and can not be achieved in Eclipse to change my firewall settings.


Guess you like

Origin blog.csdn.net/qq_20377675/article/details/78420949