Caused by: java.net.SocketTimeoutException: connect timed out

    技术2026-01-12  5

    Caused by: java.net.SocketTimeoutException: connect timed out;

    问题:fdfs连接服务器时失败,显示连接超时:

    排查得知是因为Linux的防火墙问题,所以只需关闭防火墙即可。

    centos6版本输入:chkconfig iptables off可永久关闭防火墙

    centos7版本输入:systemctl stop firewalld.service 关闭防火墙

    再输入systemctl disable firewalld.service可永久关闭防火墙

     

    Processed: 0.013, SQL: 9