Local upload file to FastDFS command upload error: ERROR-file: connection_pool.c, line: 130, connect to 47.96.88.***:22122 fail

The complete information of the error : ERROR-file: connection_pool.c, line: 130, connect to 47.96.88.***:22122 fail, errno: 110, error info: Connection timed out

Problem analysis : The error message indicates that the reason for the error is the connection timeout. There are two possible reasons for the connection timeout. One is that the cloud server refuses our access, and the other is that our server computer is turned on and started the firewall.
Note: No matter what you do, as long as you report a similar connection failure error code, most of them are caused by two reasons


Solution 1 :
So first check whether the cloud service has blocked our 23000 port (the default port of FastDFS), if some, create a security group to release the port and apply it to the instance to upload again to solve the upload success (lz because Alibaba Cloud configuration is low, so all ports are allowed).
Insert picture description here


Solution 2:
Because the reason for the problem is that your firewall is not turned on, you can solve the problem by turning on the firewall. The instructions on Linux are as follows:
1. Turn off the firewall :

sudo systemctl stop firewalld.service

2. Turn off and start up :

sudo systemctl disable firewalld.service

Note: May need to be executed separately on several nodes
Insert picture description here



In addition, the instructions for uploading files to fastdfs locally on Linux are attached (the main function is to test whether the fastdfs installation is normal):

First upload the file to the directory: /opt and then execute the command :

/usr/bin/fdfs_upload_file /etc/fdfs/client.conf /opt/fileName

Explanation : /usr/bin/fdfs_upload_file is the path of the FastDFS you installed, there is a fdfs_upload_file command in the bin directory for uploading; /etc/fdfs/client.conf represents the conf path of the FastDFS client configuration file; / opt/fileName represents the current path of the video file you want to upload
Insert picture description here



Reprint and add links to the original text, cherish the results


Don’t be melancholy for the rest of your life

Guess you like

Origin blog.csdn.net/qq_42910468/article/details/88702643