Fastdfs usage Problems
Our architecture is nginx + tomcat. nginx has public and Intranet ip addresses, and tomat only has Intranet ip addresses!
Tomcat and nginx use Intranet Communication to upload images!
The configuration files of the web project are correct, and port 22122 of fastdfs is normal. In order to test whether the firewall is disabled!
However, the java project reports an error when uploading images!
Java. netSocketException: Network is unreachable # In fact, the internet address should be considered at this time. The intranet address is configured in the web configuration file, but why does it not use the Intranet address, and directly use the Internet address?
To test whether the firewall for tomcat and nginx is disabled, telnet is normal, but the network cannot be reached! It feels strange!
So in order to test how to configure a public address on the tomcat machine, the problem is solved!
It is obviously used through the public network!
Default
Bind_addr = 0.0.0.0
Change
Bind_addr = 10.10.11.67 # Intranet address
Modify the following configuration file in storage. conf:
Bind_addr = 10.10.11.67
... Tracker_server = 10.10.11.67: 22122 # Here is the key