创建虚拟机:VMware简单创建Linux虚拟机【新手向】-CSDN博客
配置IP地址:Linux虚拟机网络设置【新手向】-CSDN博客
第一步:关闭selinux
找到selinux的配置文件
vi /etc/selinux/config
把SELINUX=enforcing改为SELINUX=disabled
:wq 保存
第二步,关闭Linux防火墙
运行此命令关闭防火墙
systemctl stop firewalld
静止开机自动启动
systemctl disable firewalld
查看服务状态
systemctl status firewalld
最后reboot重启机器即可