com.github.tobato.fastdfs.exception.FdfsConnectException: Unable to obtain server connection: can't create connection to (IP address)

I encountered two errors when configuring FastDFS
** 1.com.github.tobato.fastdfs.exception.FdfsConnectException: Unable to obtain server connection: can't create connection to (IP address) **

** 2.com.github.tobato.fastdfs.exception.FdfsIOException: An io exception occurs when the client connects to the server: socket io exception occured while receive content ** When the
solution is to
check all port numbers,
netstat -tlunp
Insert picture description herecheck whether the firewall is closed, if the firewall is closed It is unable to open ports
to check the state of the firewall
systemctl status firewalld.service
Insert picture description hereturned off, turn on the firewall
systemctl start firewalld.servicethe firewall is turned on state figure below
Insert picture description hereopen port number
firewall-cmd --zone=public --add-port=22122/tcp --permanent
firewall-cmd --zone=public --add-port=23000/tcp --permanent
overloaded firewall
firewall-cmd --reload
Insert picture description here

View open ports
iptable-save
Insert picture description hereInsert picture description here

Guess you like

Origin blog.csdn.net/weixin_42789301/article/details/105789693