Solution to timeout problem when connecting to FastDFS

1. Web project written in Java language, jeecg framework connected to FastDFS, the information to be modified is as follows:

# WEB-INF/classes/fdfs_client.conf
connect_timeout=300 # 默认30秒 # 解决连接超时的问题
network_timeout=600 # 默认30秒 # 解决连接超时的问题
tracker_server=xxx:22122 # xxx为FastDFS公网IP(内网IP无法访问的话)或者内网IP(使用内网IP可以访问的话)
http.tracker_server_port=8080 # 跟FastDFS的tracker.conf中的保持一致

# WEB-INF/classes/sysConfig.properties
FashDFS_save_url=http://xxx.example.com/ # 可以使用ip或域名,注意最后的/要有,图片保存到数据库的话会用得着这个
# FashDFS_save_url=http://192.168.0.200/ # 使用IP的示例

2. The firewall allows ports 22122 and 23000, or only restricts IP access to the host where the program is located

Guess you like

Origin www.cnblogs.com/sanduzxcvbnm/p/12672355.html