参考文章:https://blog.csdn.net/bewhyw/article/details/134452826 修改etc/hosts中的文件,加入所有主机的地址映射即可: vi /etc/hosts