0
点赞
收藏
分享

微信扫一扫

nginx和tomcat实现负载均衡

南陵王梁枫 2023-03-16 阅读 93


Nginx服务器生成网卡配置文件

nginx和tomcat实现负载均衡_配置文件

配置内网网卡ip

nginx和tomcat实现负载均衡_nginx_02

重启查看ip

nginx和tomcat实现负载均衡_tomcat_03

配置路由转发功能

nginx和tomcat实现负载均衡_tomcat_04

nginx和tomcat实现负载均衡_nginx_05

第一台tomcat服务器配置ip

nginx和tomcat实现负载均衡_nginx_06

重启查看网关

nginx和tomcat实现负载均衡_配置文件_07

第二台tomcat服务器配置ip

nginx和tomcat实现负载均衡_nginx_08

重启查看网关

nginx和tomcat实现负载均衡_配置文件_09

客户端配置ip和dns

nginx和tomcat实现负载均衡_tomcat_10

查看配置的ip

nginx和tomcat实现负载均衡_tomcat_11

切换云计算光盘

nginx和tomcat实现负载均衡_配置文件_12

挂载光盘

nginx和tomcat实现负载均衡_配置文件_13

解压tomcat移动tomcat安装位置

nginx和tomcat实现负载均衡_nginx_14

创建网站服务器根目录设置网站主页

nginx和tomcat实现负载均衡_配置文件_15

修改tomcat主配置文件加载网站根目录

nginx和tomcat实现负载均衡_tomcat_16

启动tomcat查看服务运行状态

nginx和tomcat实现负载均衡_nginx_17

第二台tomcat服务器切换云计算光盘

nginx和tomcat实现负载均衡_配置文件_18

挂载云计算光盘

nginx和tomcat实现负载均衡_tomcat_19

解压tomcat移动tomcat移动位置

nginx和tomcat实现负载均衡_nginx_20

创建网站服务器根目录设置网站主页

nginx和tomcat实现负载均衡_配置文件_21

修改tomcat主配置文件加载网站根目录

nginx和tomcat实现负载均衡_nginx_22

启动tomcat服务查看服务运行状态

nginx和tomcat实现负载均衡_配置文件_23

切换到系统光盘

nginx和tomcat实现负载均衡_tomcat_24

挂载系统到/mnt目录

nginx和tomcat实现负载均衡_配置文件_25

删除系统自带源配置本地yum源

nginx和tomcat实现负载均衡_nginx_26

安装依赖程序

nginx和tomcat实现负载均衡_配置文件_27

创建管理nginx服务用户

nginx和tomcat实现负载均衡_配置文件_28

切换到程序光盘

nginx和tomcat实现负载均衡_tomcat_29

挂载程序光盘到/mnt目录

nginx和tomcat实现负载均衡_配置文件_30

配置nginx

 

nginx和tomcat实现负载均衡_tomcat_31

nginx和tomcat实现负载均衡_配置文件_32

编译安装Nginx

nginx和tomcat实现负载均衡_nginx_33

优化nginx服务命令

nginx和tomcat实现负载均衡_nginx_34

修改nginx主配置文件

nginx和tomcat实现负载均衡_配置文件_35

检查nginx主配置文件是否出错

nginx和tomcat实现负载均衡_nginx_36

启动服务查看端口

nginx和tomcat实现负载均衡_配置文件_37

修改dns服务器主配置文件检查是否错误

nginx和tomcat实现负载均衡_nginx_38

配置dns服务于数据库文件

nginx和tomcat实现负载均衡_配置文件_39

nginx和tomcat实现负载均衡_nginx_40

启动服务设置开机自启动

nginx和tomcat实现负载均衡_nginx_41

查看服务运行状态

nginx和tomcat实现负载均衡_nginx_42

客户端访问网站服务器

nginx和tomcat实现负载均衡_nginx_43

客户端第二次访问网站服务器

nginx和tomcat实现负载均衡_nginx_44

 

 

举报

相关推荐

0 条评论