selftuts

使用virtualbox

1. 创建1个ubuntu 2个ubuntu server

  默认在enp0s3是可以连到互联网的,然后我们设置一个enp0s8的共享网络

 

   

2.在设置里创建一个Adapter2 NAT Network,然后

vm搭建集群

 

 

 

3.

ifconfig 查看enp0s8

route -n 查看当前的网关

 

在/etc/network/interfaces下进行设置

vm搭建集群

  

ifdown ifup来设置enp0s8

 

 

4.在每个机器上,修改hostname

 

1 hostnamectl set-hostname workmachine.cluster.local

2 vi/etc/hosts 192.168.1.110 workmachine.cluster.local 

...

 

在master上修改/etc/hosts

vm搭建集群

 

 

 

vm搭建集群

 

相关文章:

  • 2022-01-07
  • 2021-10-19
  • 2021-09-15
  • 2021-11-17
  • 2021-06-06
  • 2021-09-22
  • 2021-12-03
猜你喜欢
  • 2022-12-23
  • 2021-12-29
  • 2021-12-09
  • 2021-08-09
  • 2021-04-03
  • 2021-12-04
  • 2021-06-16
相关资源
相似解决方案