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
check 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
turned off, turn on the firewall
systemctl start firewalld.service
the firewall is turned on state figure below
open 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
View open ports
iptable-save