1.关闭防火墙
# 关闭防火墙
systemctl stop firewalld
# 配置禁止开机启动
systemctl disable firewalld
# 如果报错 重新安装防火墙
yum -y install firewalld.service
2.设置主机名
[root@localhost ~]# hostname -- 查看当前主机名
localhost.localdomain
[root@localhost ~]# vi /etc/hostname -- 修改主机名 永久
[root@localhost ~]# cat /etc/hostname
linux01
--reboot 重启生效
3.配置域名映射
在windows上配置虚拟机的ip映射
修改文件 C:\Windows\System32\drivers\etc\hosts
192.168.133.33 linux01
192.168.133.44 linux02
192.168.133.55 linux03
这里虽然没有另外两台linux 但是我们后面会在虚拟机上添加
注意:如果修改不了 需要修改文件权限 右键–属性–安全–编辑—完全控制勾选
在linux上配置windows的域名映射
vi /etc/hosts
192.168.133.2 windows
配置后可以配置 crt 使用 linux01 访问