摘要:
🔗简述keepalived工作原理 🔗编译安装haproxy 🔗总结haproxy各调度算法的实现方式及其应用场景 🔗使用haproxy的ACL实现基于文件后缀名的动静分离 阅读全文
摘要:
#一、静态算法 ##1.1 static-rr 基于权重的轮询调度,不支持运行时利用socat进行权重的动态调整(只支持0和1,不支持其它值)及后端服务器慢启动,其后端主机数量没有限制,相当于LVS中的 wrr。 listen web_host bind 10.0.0.7:80 mode http 阅读全文
摘要:
#1.Keepalived 定义 Keepalived 是一个基于VRRP协议来实现的LVS服务高可用方案,可以利用其来避免单点故障。一个LVS服务会有2台服务器运行Keepalived,一台为主服务器(MASTER),一台为备份服务器(BACKUP),但是对外表现为一个虚拟IP,主服务器会发送特定 阅读全文
摘要:
#一、编译安装nginx 请跳转查阅:编译安装nginx #二、tomcat的二进制安装 请跳转查阅:二进制安装tomcat #三、配置nginx代理 # cat /apps/nginx/conf/nginx.conf worker_processes 1; events { worker_conn 阅读全文
摘要:
#一、安装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 阅读全文
摘要:
一、安装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 阅读全文
摘要:
#一、安装tomcat 请查看🔗:二进制安装tomat #二、配置虚拟主机 ##2.1 修改server.xml # vim /usr/local/tomcat/conf/server.xml ...省略 #在最下面添加以下内容 <Host name="www.a.com" appBase="/d 阅读全文