集群部署

type
Post
status
Published
date
Nov 12, 2025
slug
summary
tags
Centos7
运维
集群
Load Balance
category
知行合一
icon
password

拓扑概览

notion image
  • 137:LVS/Keepalived 主(Master LVS)
  • 138:LVS/Keepalived 备(Slave LVS)
  • 139:应用节点 A(电力计费系统实例 1)
  • 140:应用节点 B(电力计费系统实例 2)
  • 144:MySQL 数据库 + Jenkins(从 gitee 拉代码,部署到 139、140)
虚拟服务 VIP:192.168.66.100:8080(LVS DR 模式)

144:MySQL 数据库 + Jenkins

1、安装 配置MySQL

导入数据库并创建用户

2、配置业务服务器(139、140)免密 SSH

3、安装 配置Jenkins

notion image
下载插件 Plugins → Available plugins
  • Gitee Plugin / GitHub Plugin
  • Maven Integration
  • Publish Over SSH
SystemGitee 配置
notion image
SystemSSH
notion image
notion image
ToolsJDK
notion image
ToolsGit
notion image
Tools Maven
notion image
新建任务
notion image
notion image
notion image
notion image
notion image

139、140:电力计费系统(实例 1、实例 2)

1、安装 JDK 与 Tomcat
2、配置 VIP 与 ARP 参数(DR 模式)

137:LVS/Keepalived 主(MASTER)


138:LVS/Keepalived 备(BACKUP)


Loading...