当前位置:网站首页>在本地搭建一个微服务集群环境,学习自动化部署
在本地搭建一个微服务集群环境,学习自动化部署
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才可以
边栏推荐
- 博弈论 AcWing 892. 台阶-Nim游戏
- Using handler in a new thread
- Game theory acwing 894 Split Nim game
- June 29, 2022 daily
- All English in the code
- VLAN experiment
- Some classic recursion problems
- Gauss Cancellation acwing 884. Solution d'un système d'équations Xor linéaires par élimination gaussienne
- Bash exercise 17 writing scripts to install the server side of FRP reverse proxy software
- Rehabilitation type force deduction brush question notes D3
猜你喜欢

Inclusion exclusion principle acwing 890 Divisible number

5. Oracle TABLESPACE

Vant Weapp SwipeCell設置多個按鈕

Dameng database all

MPLS experiment

5.Oracle-表空间

International Open Source firmware Foundation (osff) organization

Get class files and attributes by reflection

求组合数 AcWing 887. 求组合数 III

Knapsack problem acwing 9 Group knapsack problem
随机推荐
Redis-01. First meet redis
Vant Weapp SwipeCell設置多個按鈕
June 29, 2022 daily
Package webapp or H5 pages into apps
Adg5412fbruz-rl7 applies dual power analog switch and multiplexer IC
5.Oracle-錶空間
Vant weave swipecell sets multiple buttons
中国剩余定理 AcWing 204. 表达整数的奇怪方式
MySQL (UDF authorization)
Utf8 encoding
【高德地图POI踩坑】AMap.PlaceSearch无法使用
Alibaba's new member "Lingyang" officially appeared, led by Peng Xinyu, Alibaba's vice president, and assembled a number of core department technical teams
Use ffmpeg to rotate, flip up and down, and flip horizontally
our solution
[QT] QT multithreading development qthread
2. Addition and management of Oracle data files
2048项目实现
Chart. JS - Format Y axis - chart js - Formatting Y axis
TypeScript入门
How to correctly ask questions in CSDN Q & A