摘要:1、ansible-playbook实现MySQL的二进制部署 环境准备:源码包准备:mysql-5.7.36-linux-glibc2.12-x86_64.tar.gz已经实现了ansible主控端基于key验证主机配置清单: [root@ansible ansible]#pwd /data/an
阅读全文
03 2022 档案
摘要:第十二周作业:1、主从复制及主主复制的实现 ###主从复制### #主节点配置 1.安装mysql [root@centos8-hkping ~]#yum -y install mysql-server 2.立即并且开机启动mysqld [root@centos8-hkping ~]#systemc
阅读全文
摘要:1、 导入hellodb.sql生成数据库 mysql -uroot -p123456 < hellodb_innodb.sql(1) 在students表中,查询年龄大于25岁,且为男性的同学的名字和年龄 MariaDB [hellodb]> select name,age from studen
阅读全文
摘要:#安装前准备:关闭防火墙和SELinux #1 安装相关包 [root@centos8 ~]#dnf install gcc make autoconf apr-devel apr-util-devel pcre-devel openssl-devel redhat-rpm-config #2 下载
阅读全文
摘要:仓库服务器配置 [root@centos8-hkping ~]#yum -y install httpd [root@centos8-hkping ~]#systemctl enable --now httpd [root@centos8-hkping ~]#mkdir /var/www/html/
阅读全文
摘要:[root@centos8-hkping /]#vim /etc/yum.repos.d/Centos-8.repo [BaseOS] name=CentOS-$releasever - Base baseurl=http://mirrors.cloud.tencent.com/centos/$re
阅读全文
摘要:1.实验目的 Centos7 yum安装mariadb并实现三个实例 2.环境要求 一台系统Centos7.x主机 3.前提准备 关闭SELINUX vim /etc/selinux/config 关闭防火墙 systemctl stop firewalld 时间同步 crontab -e */5
阅读全文