具体方法如下: 1、临时关闭防火墙sudo systemctl stop firewalld2、禁止防火墙开机自启sudo systemctl disable firewalld3、重启系统reboot4、查看防火墙状态,确认是否已关闭sudo systemctl status firewalld推荐教程:centos教程