注意:请在完成环境搭建后设置主机的静态IP(方便以后重新开启虚拟机时进行操作),不要在没有完成环境搭建时设置静态IP
!!!因为虚拟机node结点在进行环境搭建的时候,需要联网下载一些依赖包!!!
- 右键左下角windows
- 点击网络连接 --> 网络和共享中心
![image-20230321201835589](https://oraere-blog-1309783236.cos.ap-chongqing.myqcloud.com/imgs/image-20230321201835589.png)
![image-20230321202232709](https://oraere-blog-1309783236.cos.ap-chongqing.myqcloud.com/imgs/image-20230321202232709.png)
- 接下来按照自己电脑的ip改,我这里这是参考,具体得看每个人自己的电脑IP
![image-20230321202410214](https://oraere-blog-1309783236.cos.ap-chongqing.myqcloud.com/imgs/image-20230321202410214.png)
查看自己电脑的ip信息
win
+r
打开运行cmd
,然后输入ipconfig
查看
![image-20230321202605814](https://oraere-blog-1309783236.cos.ap-chongqing.myqcloud.com/imgs/image-20230321202605814.png)
![image-20230321202753917](https://oraere-blog-1309783236.cos.ap-chongqing.myqcloud.com/imgs/image-20230321202753917.png)
如图已经设置成功!
作者:Oraer
标签:静态,主机,虚拟机,IP地址,电脑,设置,IP From: https://www.cnblogs.com/Oraer/p/17397252.html