摘要: 🔗简述keepalived工作原理 🔗编译安装haproxy 🔗总结haproxy各调度算法的实现方式及其应用场景 🔗使用haproxy的ACL实现基于文件后缀名的动静分离 阅读全文
posted @ 2022-01-25 22:18 火火7412 阅读(17) 评论(0) 推荐(0) 编辑
摘要: #一、静态算法 ##1.1 static-rr 基于权重的轮询调度,不支持运行时利用socat进行权重的动态调整(只支持0和1,不支持其它值)及后端服务器慢启动,其后端主机数量没有限制,相当于LVS中的 wrr。 listen web_host bind 10.0.0.7:80 mode http 阅读全文
posted @ 2022-01-25 22:09 火火7412 阅读(115) 评论(0) 推荐(0) 编辑
摘要: #1.Keepalived 定义 Keepalived 是一个基于VRRP协议来实现的LVS服务高可用方案,可以利用其来避免单点故障。一个LVS服务会有2台服务器运行Keepalived,一台为主服务器(MASTER),一台为备份服务器(BACKUP),但是对外表现为一个虚拟IP,主服务器会发送特定 阅读全文
posted @ 2022-01-25 21:41 火火7412 阅读(1106) 评论(0) 推荐(0) 编辑
摘要: #一、编译安装nginx 请跳转查阅:编译安装nginx #二、tomcat的二进制安装 请跳转查阅:二进制安装tomcat #三、配置nginx代理 # cat /apps/nginx/conf/nginx.conf worker_processes 1; events { worker_conn 阅读全文
posted @ 2022-01-25 21:25 火火7412 阅读(44) 评论(0) 推荐(0) 编辑
摘要: #一、安装lua环境 ##1.1 安装依赖包 [root@centos7 ~]# yum install gcc readline-devel ##1.2 下线lua源码包并解压 [root@centos7 ~]#wget http://www.lua.org/ftp/lua-5.3.5.tar.g 阅读全文
posted @ 2022-01-25 18:23 火火7412 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 一、安装JDK 1.1 下载JDK 官网下载地址 1.2 安装JDK #cat install_jdk.sh #!/bin/bash DIR=`pwd` JDK_FILE="jdk-8u291-linux-x64.tar.gz" JDK_DIR="/usr/local" color () { RES 阅读全文
posted @ 2022-01-25 16:58 火火7412 阅读(64) 评论(0) 推荐(0) 编辑
摘要: #一、安装tomcat 请查看🔗:二进制安装tomat #二、配置虚拟主机 ##2.1 修改server.xml # vim /usr/local/tomcat/conf/server.xml ...省略 #在最下面添加以下内容 <Host name="www.a.com" appBase="/d 阅读全文
posted @ 2022-01-25 16:58 火火7412 阅读(46) 评论(0) 推荐(0) 编辑
摘要: #一、环境准备 #二、实现proxy [root@localhost ~]# yum -y install haproxy #创建子配置 [root@localhost ~]# mkdir /etc/haproxy/conf.d #修改service文件 [root@localhost ~]# vi 阅读全文
posted @ 2022-01-24 22:29 火火7412 阅读(39) 评论(0) 推荐(0) 编辑
摘要: #一、实验环境 #一、准备后端服务器 # yum -y install nginx # echo "10.0.0.7" > /usr/share/nginx/html/index.html #web1 # echo "10.0.0.17" > /usr/share/nginx/html/index. 阅读全文
posted @ 2022-01-24 22:29 火火7412 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 🔗nginx负载均衡中常见的算法及原理有哪些? 🔗用rewrite规则实现将所有到a域名的访问rewrite到b域名 🔗实现反向代理客户端IP透传 🔗利用LNMP实现wordpress站点搭建 阅读全文
posted @ 2022-01-16 21:21 火火7412 阅读(19) 评论(0) 推荐(0) 编辑