当前位置:网站首页>在本地搭建一个微服务集群环境,学习自动化部署
在本地搭建一个微服务集群环境,学习自动化部署
2022-07-05 06:24:00 【魏云舒】
问题:在本地搭建一个微服务集群,学习自动化部署
构建本地虚拟机集群方案

- 在官网下载VirtualBox软件,安装在本地windows机器中
- 下载ubuntu20.04服务器版,在VirtualBox中安装镜像
- 拷贝已经做好的系统,创建其他系统
- 在安装的系统中,生成静态IP
- 配置windows,IP能够相互访问
自动化部署

gitlab: 本地代码管理中心
nexus maven:本地包管理中心
Docker Register:本地docker管理中心
Jeckins:持续发布工具
相应问题记录
备注1:VirtualBox打开时出现错误提示:“VirtualBox不能为虚拟电脑Ubuntu打开一个新任务:The VM session was closed before any attempt to power it on”
解决方法:以管理员权限打开VirtualBox
备注2:ubuntu20.024生成静态IP方法
# ubuntu20.04采用的是netplan来管理network
cd /etc/netplan
# 修改文件之前先拷贝
sudo cp 00-installer-config.yaml 00-installer-config.yaml.copy
将配置文件修改为
network:
ehernets:
ens33:
dhcp4: no
addresses: [192.168.1.100/24] # 静态IP地址
gateway4: 192.168.1.1 # 网关地址
version: 2
使配置生效
sudo netplan apply
但这时会出现一个问题,就是不能访问外网,需要配置DNS信息
# 进入配置文件
vim /etc/systemd/resolved.conf
# 设置如下:
DNS=8.8.8.8
# 重启
备注2:win10局域网下两台电脑无法ping同:无法访问目标主机
https://blog.csdn.net/qq_35132089/article/details/114385192
备注3:在ubuntu中安装nexus3,其localhost:8081不能够访问,nexus才可以
边栏推荐
- There are three kinds of SQL connections: internal connection, external connection and cross connection
- 2.Oracle-数据文件的添加及管理
- H5 module suspension drag effect
- Rehabilitation type force deduction brush question notes D2
- LSA Type Explanation - lsa-1 [type 1 LSA - router LSA] detailed explanation
- C job interview - casting and comparing - C job interview - casting and comparing
- P2575 master fight
- 数据库Mysql全部
- Paper reading report
- 博弈论 AcWing 892. 台阶-Nim游戏
猜你喜欢
随机推荐
微信小程序路由再次跳轉不觸發onload
Huawei bracelet, how to add medicine reminder?
LSA Type Explanation - detailed explanation of lsa-2 (type II LSA network LSA) and lsa-3 (type III LSA network Summary LSA)
VLAN experiment
【高德地图POI踩坑】AMap.PlaceSearch无法使用
时间很快,请多做有意义的事情
Niu Mei's math problems
How to make water ripple effect? This wave of water ripple effect pulls full of retro feeling
Mutual transformation between two-dimensional array and sparse array (sparse matrix)
June 29, 2022 daily
Time is fast, please do more meaningful things
MQClientException: No route info of this topic: type_ topic
Relevant information of National Natural Science Foundation of China
求组合数 AcWing 887. 求组合数 III
Record of problems in ollvm compilation
7. Oracle table structure
LeetCode-54
[learning] database: several cases of index failure
Winter messenger 2
Vant weapp swippecell set multiple buttons









