试试关闭下iptables和selinuxchkconfig iptables offiptables -Fvi /etc/selinux/config 把enforcing改成disabled然后重启centos