当前位置:网站首页>在本地搭建一个微服务集群环境,学习自动化部署
在本地搭建一个微服务集群环境,学习自动化部署
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才可以
边栏推荐
- Suppose a bank's ATM machine, which allows users to deposit and withdraw money. Now there is 200 yuan in an account, and both user a and user B have the right to deposit and withdraw money from this a
- Alibaba's new member "Lingyang" officially appeared, led by Peng Xinyu, Alibaba's vice president, and assembled a number of core department technical teams
- 高斯消元 AcWing 884. 高斯消元解异或線性方程組
- VLAN experiment
- [algorithm post interview] interview questions of a small factory
- 求组合数 AcWing 887. 求组合数 III
- Record the process of configuring nccl and horovod in these two days (original)
- Redis-02. Redis command
- How to set the drop-down arrow in the spinner- How to set dropdown arrow in spinner?
- NVM Downloading npm version 6.7.0... Error
猜你喜欢
中国剩余定理 AcWing 204. 表达整数的奇怪方式
1.手动创建Oracle数据库
栈 AcWing 3302. 表达式求值
Game theory acwing 892 Steps Nim game
Adg5412fbruz-rl7 applies dual power analog switch and multiplexer IC
代码中的英语全部
MySQL (UDF authorization)
4. Oracle redo log file management
Sum of two numbers, the numbers in the array are converted to decimal, added, and output inversely
Package webapp or H5 pages into apps
随机推荐
Winter messenger 2
Bash exercise 17 writing scripts to install the server side of FRP reverse proxy software
The “mode“ argument must be integer. Received an instance of Object
Utf8 encoding
Find the combination number acwing 889 01 sequence meeting conditions
Game theory acwing 893 Set Nim game
NotImplementedError: Cannot convert a symbolic Tensor (yolo_boxes_0/meshgrid/Size_1:0) to a numpy ar
MPLS experiment
高斯消元 AcWing 884. 高斯消元解异或線性方程組
How to understand the definition of sequence limit?
Application of recyclerview
Getting started with typescript
Gauss Cancellation acwing 884. Solution d'un système d'équations Xor linéaires par élimination gaussienne
vsCode创建自己的代码模板
SolidWorks template and design library are convenient for designers to call
There are three kinds of SQL connections: internal connection, external connection and cross connection
Niu Mei's math problems
[2021]IBRNet: Learning Multi-View Image-Based Rendering Qianqian
how to understand the “model independent.“
Chart. JS - Format Y axis - chart js - Formatting Y axis