随笔分类 -  Linux

摘要:客户端 cli.noise.org : 10.0.0.7 - cli.noise.org keepalived1 + nginx - 10.0.0.34 - ka1.noise.org keepalived2 + ngixn - 10.0.0.22 - ka2.noise.org 后台web服务器1 阅读全文
posted @ 2021-08-29 19:15 每天都在学习的自己 阅读(45) 评论(0) 推荐(0)
摘要:# 主要配置文件 #user nobody; worker_processes auto; #自动根据cpu分配多少个worker进程 worker_rlimit_nofile 65535; #worker进程打开的最大值,同ulimit或者/etc/security/limits一起取最小值,如果 阅读全文
posted @ 2021-07-17 18:49 每天都在学习的自己 阅读(222) 评论(0) 推荐(0)
摘要:当公司中无前面的调度器时,需要在不中断用户链接的情况下,进行平滑升级,可采用如下方法 # 备份当前nginx二进制文件,注意自己安装路径,我的是自己编译安装自己指定路径 [21:12:22 root@centos8 sbin]#ll /apps/nginx/sbin/ total 14964 -rw 阅读全文
posted @ 2021-07-11 22:06 每天都在学习的自己 阅读(316) 评论(0) 推荐(0)
摘要:在上个实验的基础上,给路由,LVS,RS1,RS2 添加172.0.0.0/24网段 1> 路由器 [23:09:10 root@centos8 ~]#ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN g 阅读全文
posted @ 2021-07-09 23:17 每天都在学习的自己 阅读(98) 评论(0) 推荐(0)
摘要:实验共计5台机器 ( 重要提示,网关很重要,很重要,很重要) 1.测试机 192.168.10.6,gw 192.168.10.50 2.路由器 eth0 10.0.0.19 , eth1 192.168.10.50, 开启ip_forward 3. LVS主机 vip:10.0.0.100/32, 阅读全文
posted @ 2021-07-07 23:49 每天都在学习的自己 阅读(90) 评论(0) 推荐(0)
摘要:1> 本次实验共计4台机器 A:客户机,192.168.10.6 [23:29:02 root@centos8 ~]#ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 阅读全文
posted @ 2021-07-07 23:38 每天都在学习的自己 阅读(70) 评论(0) 推荐(0)
摘要:在前面实验已经做了关于LAMP + DNS + NFS,现在在此基础上再做NFS备份机制 1> 在NFS主机配置基于rsync daemon 实现 sersync 323 wget https://storage.googleapis.com/google-code-archive-download 阅读全文
posted @ 2021-07-06 00:01 每天都在学习的自己 阅读(84) 评论(0) 推荐(0)
摘要:### 本次实验共计6台机器Centos8 A:10.0.0.15 - DNS服务器 B:10.0.0.16 - web1 - www.noise.org C:10.0.0.17 - web2 - www.noise.org D:10.0.0.18 - NFS,wordpress E:10.0.0. 阅读全文
posted @ 2021-06-30 21:33 每天都在学习的自己 阅读(83) 评论(0) 推荐(0)
摘要:# 本次实验四台机器 # 10.0.0.21 - centos 7 - MHA服务器 # 10.0.0.15,16,17 - Centos 8 - Mysql Master, Slave1, Slave2 # 先从gitbub大神那里下载mha manage包和node包 Release mha4m 阅读全文
posted @ 2021-06-28 23:53 每天都在学习的自己 阅读(112) 评论(0) 推荐(0)
摘要:# 本次实验 共四台机器 # A: 10.0.0.11 为client # B: 10.0.0.12 为主节点 # C: 10.0.0.13 为从节点1 # D: 10.0.0.14 为从节点2 # 首先配置BCD主从复制 (这里不做重复描写,参考我前面的文档) # 开始安装mycat相关包,以及数 阅读全文
posted @ 2021-06-27 09:05 每天都在学习的自己 阅读(85) 评论(0) 推荐(0)
摘要:# 在主从复制的基础,可进行设置 # 主节点,安装模块rpm :06: (root@localhost) [(none)]> install plugin rpl_semi_sync_master soname 'semisync_master.so'; Query OK, 0 rows affec 阅读全文
posted @ 2021-06-25 23:36 每天都在学习的自己 阅读(61) 评论(0) 推荐(0)
摘要:# 三台主机: # 主节点:10.0.0.21 # 从节点1:10.0.0.22,从节点2:10.0.0.23 # 主节点配置 [21:46:32 root@centos7 ~]#cat /etc/my.cnf [mysqld] server-id=21 log-bin datadir=/data/ 阅读全文
posted @ 2021-06-23 21:52 每天都在学习的自己 阅读(120) 评论(0) 推荐(0)
摘要:# 这里是整个项目所需要的文件,包括离线下载mysql 8.0的包[11:26:19 root@centos7 mysql]#tree . ├── Dockerfile ├── my.cnf ├── mysql-8.0.23-linux-glibc2.12-x86_64.tar.xz └── mys 阅读全文
posted @ 2021-06-21 22:42 每天都在学习的自己 阅读(123) 评论(0) 推荐(0)
摘要:#!/bin/bash # #************************************************************************************** #Author: Noise Lys #QQ: 578110218 #Date: 2021-06 阅读全文
posted @ 2021-06-21 22:32 每天都在学习的自己 阅读(63) 评论(0) 推荐(0)
摘要:# 实验准备三台机器,(centos8不支持 Percona XtraDB Cluster 5.7) # pxc1: 10.0.0.21 # pxc2: 10.0.0.22 # pxc3: 10.0.0.23 # 首先配置 Percona XtraDB Cluster 5.7需要用的yum 源 [p 阅读全文
posted @ 2021-06-19 21:28 每天都在学习的自己 阅读(77) 评论(0) 推荐(0)
摘要:[21:13:54 root@centos7 ansible]#tree . ├── files │ ├── my.cnf │ └── mysql-8.0.23-linux-glibc2.12-x86_64.tar.xz ├── hosts └── install_mysql8.0-v2.yaml 阅读全文
posted @ 2021-06-14 21:27 每天都在学习的自己 阅读(81) 评论(0) 推荐(0)
摘要:[19:15:23 root@centos7 ansible]#tree . ├── files │ ├── my.cnf │ └── mysql-8.0.23-linux-glibc2.12-x86_64.tar.xz ├── hosts └── install_mysql8.0-v1.yaml 阅读全文
posted @ 2021-06-14 19:22 每天都在学习的自己 阅读(109) 评论(0) 推荐(0)
摘要:when you set the bin log , you may cause below problems; 1> PID not found; for this problem , you could edit my.cnf file to add a new line server-id=1 阅读全文
posted @ 2021-06-13 01:19 每天都在学习的自己 阅读(61) 评论(0) 推荐(0)
摘要:09:15:24(root@localhost) [(none)]> show variables like "%innodb%"; #1> 事务日志性能优化 09:17:44(root@localhost) [(none)]> set global innodb_flush_log_at_trx_ 阅读全文
posted @ 2021-06-13 00:34 每天都在学习的自己 阅读(81) 评论(0) 推荐(0)
摘要:04:54:52(root@localhost) [hellodb]> select * from students; + + + + + + + | StuID | Name | Age | Gender | ClassID | TeacherID | + + + + + + + | 1 | Sh 阅读全文
posted @ 2021-06-12 18:36 每天都在学习的自己 阅读(208) 评论(0) 推荐(0)