Fastdfs usage Problems

Source: Internet
Author: User

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



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.