1.切换到hosts文件 下面 vi /etc/hosts
2.127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
(你的虚拟机的IP地址) localhost
1.切换到hosts文件 下面 vi /etc/hosts
2.127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
(你的虚拟机的IP地址) localhost