- 博客(17)
- 收藏
- 关注
原创 MySQL 运维篇 -- 主从集群搭建
文章目录主从复制主从复制原理主从故障处理延时从库主从GTID复制主从GR复制*****搭建组复制观察组复制主从复制主从同步过程(1)主丛复制基于binlog来实现的(2)主库发生新的操作,都会记录binlog(3)从库取得主库的binlog进行回放(4)主从复制是异步的准备主从的初始MySQL环境(YUM安装)[root@master ~]# hostnamemaster[root@master ~]# hostname -I13.13.6.6 [root@master ~]
2020-09-30 17:05:07 397
原创 shell脚本模板 -- 虚拟机初始化设置
#!/bin/bash# COMMON SETTING# set hostname (default: no action)hostname=# configure network by specifying ipv4 address and gateway (default: no action) ipv4_addresses=ipv4_gateway=# install softwaressoftwares="tree bash-completion lrzsz wget setrou
2020-09-27 14:59:33 184
原创 MySQL 运维篇 -- 多实例安装
创建目录,拷贝原配置文件:[root@mysql01 ~]# mkdir /data/mysql3306{1,2,3}/data -p[root@mysql01 ~]# cp /etc/my.cnf /data/mysql33061/[root@mysql01 ~]# tree /data/ -L 2/data/├── mysql│ └── data├── mysql33061│ ├── data│ └── my.cnf├── mysql33062│ └── data
2020-09-20 12:19:30 91
原创 MySQL 运维篇 -- 单实例安装
文章目录YUM安装手工安装YUM安装安装软件:[root@mysql01 ~]# dnf install @mysqlLast metadata expiration check: 0:00:05 ago on Sat 19 Sep 2020 12:49:38 PM CST.Dependencies resolved.==========================================================================================
2020-09-19 15:10:54 385
原创 持续部署架构 -- 本地私仓Nexus
文章目录安装Nexus使用NexusNexus可作为项目依赖存放以及项目发布的仓库安装Nexus安装软件(https://www.sonatype.com/nexus/repository-oss/download):[root@nexus ~]# tar -zxf nexus-3.27.0-03-unix.tar.gz -C /usr/local/[root@nexus ~]# cd /usr/local[root@nexus ~]# ln -s /usr/local/nexus-3.27
2020-09-18 11:54:51 262
原创 持续部署架构 -- 手工应用部署过程
文章目录目标MonitorFlamingo目标手工部署Nginx部署Web应用手工部署Nginx + Tomcat部署Web Servlet应用Monitor在GitLab导入码云(https://gitee.com/kangjie1209/monitor.git)上一个免费的开源网页项目,模拟本次的网页应用:现在代码已经上传至GitLab,下面将其部署在WebSrv服务器上。参照官网(http://nginx.org/en/linux_packages.html#RHEL-CentO
2020-09-18 10:02:09 248
原创 持续部署架构 -- 代码仓GitLab
文章目录目标GitGitLab目标DevOps:开发和运维协作,缩短产品上线的生命周期。代码的演变过程可以被记录下来(GitLab)代码每次提交后可以立即自动部署(Jenkins)代码依赖及发布版可以在私有的仓库里管理起来(Nexus)本次使用四台虚拟机模拟不同的功能服务器:13.13.2.2-gitlab服务器: 将安装GitLab软件,提供代码的生命周期记录服务13.13.3.3-jenkins服务器:将安装Jenkins软件,提供代码自动部署服务13.13.4.4
2020-09-17 11:42:58 376
原创 综合架构 -- 管理服务器
目录环境准备配置SSH编写剧本环境准备使用样板机克隆一台管理服务器,并做好初始化工作:[root@localhost ~]# ip a1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope ho
2020-09-11 16:54:36 218
原创 综合架构 -- 监控服务器
目录环境准备初始化添加监控主机创建监听环境准备利用样板机克隆一台监控服务器,并进行初始化工作:[root@zabbix ~]# vi skel_refine.sh [root@zabbix ~]# cat skel_refine.sh #!/bin/bashhostname=zabbixens160Ipv4="10.0.0.71/24"ens192Ipv4="192.168.1.71/24"hostnamectl set-hostname $hostnamenmcli c modif
2020-09-11 16:54:24 706
原创 综合架构 -- 高可用服务器
目录环境准备克隆主机服务测试脚本检测目标:负载均衡服务器在前端处理转发着所有的请求,宕机损害难以承受,现再做台备机实现高可用。环境准备本次实验使用KeepAlived软件实现高可用主备转换,先在已有的负载服务器上准备好环境,再进行克隆:[root@lb01 ~]# dnf install keepalivedRepository AppStream is listed more than once in the configurationRepository extras is listed
2020-09-11 16:54:04 302
原创 综合架构 --负载服务器
目录环境准备克隆主机负载服务器目标:三台网站服务器在负载服务器的调度下轮询地接受着三个网站的请求环境准备在“综合架构 – 网站服务器”章节中已经构建好了cloudbarn.com网站,按照同样的流程继续构建poplarleaf.com网站以及它的子网站cloth.poplarleaf.com:编写NFS配置文件[root@nfs01 ~]# vi /etc/exports[root@nfs01 ~]# cat /etc/exports/data/web01 web01(rw)/dat
2020-09-11 16:53:49 318
原创 综合架构 -- 网站服务器
数据库服务器安装软件:[root@db01 ~]# dnf install mariadb-serverRepository AppStream is listed more than once in the configurationRepository extras is listed more than once in the configurationRepository PowerTools is listed more than once in the configurationRe
2020-09-11 16:53:16 770
原创 综合架构 -- 存储服务器
目录NFS ServerNFS ClientNFS Server软件安装:[root@nfs01 ~]# dnf install rpcbind nfs-utilsRepository AppStream is listed more than once in the configurationRepository extras is listed more than once in the configurationRepository PowerTools is listed more th
2020-09-11 16:53:00 135
原创 综合架构 -- 备份服务器
目录Rsync ServerLsyncd ClientRsync Server安装软件:[root@backup ~]# dnf install rsync-daemonRepository AppStream is listed more than once in the configurationRepository extras is listed more than once in the configurationRepository PowerTools is listed more
2020-09-11 16:52:48 131
原创 综合架构 -- 样板机准备
目录安装系统主机文件镜像文件时区时间同步常用软件关机克隆安装系统系统配置(添加一块局域网卡用于主机间通信):选择最小化安装,其它全部默认:配置网络:主机文件修改/etc/hosts文件方便主机间通信:[root@localhost ~]# cat ./hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.lo
2020-09-11 16:52:36 129
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人