2.禁止防火墙开机启动 systemctl disabel firewalld.service
vi /etc/selinux/config打开文件 4.改一下selinux状态,如图。改好后执行:wq保存退出
5.重启虚拟机使其生效