200 - OK,服务器成功返回网页 - Standard response for successful HTTP requests.301 - Moved Permanently(永久跳转),请求的网页已永久跳转到新位置。 - This and all future requests should be directed to the given.403 - Forbidden(禁止访问),服务器拒绝请求&n...
wget http://luajit.org/download/LuaJIT-2.1.0-beta3.tar.gzwget https://github.com/simpl/ngx_devel_kit/archive/v0.3.0.tar.gzwget https://github.com/openresty/lua-nginx-module/archive/v0.10.14.tar.gzwget http://nginx.org/download/nginx-1.20.2....
redis的RDB文件是向下兼容的,所以不能直接使用RDB文件进行迁移需要用redis-rdb-tools进行RDB的解析,在安装redis-rdb-tools之前需要安装python3,不能使用python2会出现各种问题1.安装rdbtools:pip install rdbtools2.解析rdb文件rdb --c protocol dump.rdb > rdb.txt提示还需要安装python-lzf (使用python2这里会有问题,无法安装python-lz...
十、LVS四层负载均衡四种模式1.NAT模式
2.TUN隧道模式
3.DR直接路由,推荐使用
4.FULLNAT,完全NATLVS负载均衡实践环境准备
1.MySQL负载均衡
外部IP地址 内部IP地址 角色 备注
L4:
192.168.238.15 172.16.1.15 LVS调度器(Director) ...
九、Nginx四层负载均衡配置场景1:实现MySQL数据库负载均衡实践1)环境
lb4-01 192.168.238.15
lb4-02 192.168.238.16
2)安装nginx+keepalived
3)生产场景1:实现MySQL数据库负载均衡
四层代理:192.168.238.15 172.16.1.15
DB节点:172.16.1.51 172.16.1.52
步骤:
1...
八、高可用配置 lb01、lb02规划:
HOSTNAME IP 说明
lb01 192.168.238.5 Keepalived主服务器(Nginx主负载均衡器)
lb02 192.168.238.6 Keepalived备服务器(Nginx辅负载均衡器)
web01 192.168.238.7 web01服务器
web02 192.168.238.8 web02服务器#部署web01
[root@web01 conf.d]# cat&nbs...
七、Nginx负载均衡配置 lb01、lb02#web01 & web02创建测试
[root@web01 conf.d]# cat 03_test.conf
server {
listen 80;
&...
六.安装mariadb数据库 db01[root@db01 ~]$ yum install mariadb-server mariadb -y
启动Mariadb数据库, 并加入开机启动
[root@db01 ~]$ systemctl start mariadb
[root@db01 ~]$ systemctl enable&nb...
web01、web02 服务器1、使用官方仓库安装 Nginx#检查/etc/fstab 有没有挂载/data目录,记得先注释,后面会重新指定静态文件目录挂载
#可能优先使用epel里的源,怎么确保我们配置的 官方优先。
[root@web01 ~]$yum -y install yum-plugin-priorities
[root@web01 ~]$ rpm -qa&nbs...
backup服务器1)服务端配置[root@backup ~]#yum -y install rsync
[root@backup ~]#cp /etc/rsyncd.conf{,.ori}
[root@backup ~]#ll /etc/rsyncd.conf{,.ori}
cat > /etc/rsyncd.conf<<EOF
#rsync_c...