小编由于近日在做大数据集群部署,需要多次使用IP来进行访问,故特此记录
- linux中配置IP映射,只需在hosts文件配置即可,该文件位于/etc/hosts
vi /etc/hosts
具体配置格式如下:
10.55.210.110 node1
10.55.210.123 node2
.....
附加:windows中配置IP映射,在C盘(系统盘):\Windows\System32\drivers\etc\hosts
小编由于近日在做大数据集群部署,需要多次使用IP来进行访问,故特此记录
vi /etc/hosts
具体配置格式如下:
10.55.210.110 node1
10.55.210.123 node2
.....
附加:windows中配置IP映射,在C盘(系统盘):\Windows\System32\drivers\etc\hosts