摘要: Amoeba读写分离(MySQL) 实验操作环境: centos服务器 三台机器 role: 192.168.189.129 master-主 192.168.189.130 master-从 192.168.189.131 Amoeba 1、主从搭建: https://www.cnblogs.com/security-guard/ 阅读全文
posted @ 2019-12-20 16:05 Security 阅读(275) 评论(1) 推荐(0) 编辑
摘要: redis主从+redis的哨兵模式 三台机器分布 192.168.189.129 // master的角色 192.168.189.130 // slave1的角色 192.168.189.131 // salve2的角色 三台服务器安装redis cd /usr/local/src tar zxf redis-5.0.6.tar.g 阅读全文
posted @ 2019-12-20 11:52 Security 阅读(250) 评论(0) 推荐(0) 编辑
摘要: nginx的安装 1)源码安装nginx: 首先准备好安装包 tar zxf nginx-1.16.1.tar.gz 安装nginx解压所需要的依赖包 cd nginx-1.16.1 yum -y install gcc gcc-c++ zlib-devel pcre-devel 检查环境并编译安装 ./config 阅读全文
posted @ 2019-12-20 10:23 Security 阅读(213) 评论(0) 推荐(0) 编辑
摘要: nginx负载均衡 准备3台服务器,一台做nginx负载均衡,两台为Apache的web服务器 1.首先源码安装nginx nginx的安装方式 配置nginx负载均衡和nginx负载均衡调度算法为加权轮询,加权轮询比例为1:3,下列代码有注释。 vim /usr/local/nginx/conf/nginx.conf 阅读全文
posted @ 2019-12-20 10:03 Security 阅读(261) 评论(0) 推荐(0) 编辑
小布的个人空间 京ICP备2023021324号-1