摘要: ##一.简述lvs四种集群特点及使用场景。 1.LVS的NAT模式 lvs-nat:本质是多目标IP的DNAT,通过将请求报文中的目标地址和目标端口修改为某挑出的RS的RIP和 PORT实现转发 (1)RIP和DIP应在同一个IP网络,且应使用私网地址;RS的网关要指向DIP (2)请求报文和响应报 阅读全文
posted @ 2021-07-27 16:39 人生值得 阅读(198) 评论(0) 推荐(0) 编辑
摘要: ##一.实现基于MYSQL验证的vsftpd虚拟用户访问 1.部署环境 一台做为FTP服务器,CentOS 7 IP:10.50.100.22 一台做MySQL 数据库服务器 IP:10.50.100.7 关闭两台服务器上防火墙设置 [root@ftp ~]# systemctl stop fire 阅读全文
posted @ 2021-07-13 15:05 人生值得 阅读(232) 评论(0) 推荐(0) 编辑
摘要: ##一.部署分离的LAMP,部署到二台服务器上,php加载xcache模块 1.部署环境 HOST IP SOFTWARE PLATFORM 主机1 10.50.100.20 httpd+php+xcache CentOS7 主机2 10.50.100.22 mariadb CentOS7 关闭Fi 阅读全文
posted @ 2021-06-11 16:29 人生值得 阅读(99) 评论(0) 推荐(0) 编辑
摘要: ##1.使用ansible的playbook实现自动化安装httpd 配置ansible主机文件 [root@localhost ~]# vim /etc/ansible/hosts [websrvs] 10.50.100.8 配置ansible与管理端的ssh连接 [root@localhost 阅读全文
posted @ 2021-05-12 15:55 人生值得 阅读(310) 评论(0) 推荐(0) 编辑
摘要: ##1.编写脚本,支持让用户自主选择,使用mysqldump还是xtraback全量备份。 ##实现备份,需要开启数据库二进制日志 [root@localhost ~]# vim /etc/my.cnf.d/mariadb-server.cnf [mysqld] log-bin [root@loca 阅读全文
posted @ 2021-04-15 14:53 人生值得 阅读(59) 评论(0) 推荐(0) 编辑
摘要: ##1. 导入hellodb.sql生成数据库 (1) 在students表中,查询年龄大于25岁,且为男性的同学的名字和年龄 MariaDB [hellodb]> select name,age from students where age > 25 and gender='M'; + + + 阅读全文
posted @ 2021-03-01 17:34 人生值得 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 二进制格式安装mariadb-10.2.36 ##1.官网(www.mariadb.org)下载二进制包,以及查看系统版本。 [root@localhost mysql]# cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) ## 阅读全文
posted @ 2021-01-13 15:39 人生值得 阅读(208) 评论(0) 推荐(0) 编辑
摘要: ##1.简述DNS服务器原理,并搭建主-辅服务器。 DNS工作原理: 第一步:客户机提出域名解析请求,并将该请求发送给本地的域名服务器。 第二步:当本地的域名服务器收到请求后,就先查询本地的缓存,如果有该纪录项,则本地的域名服务器就直接把查询的结果返回。 第三步:如果本地的缓存中没有该纪录,则本地域 阅读全文
posted @ 2021-01-12 16:05 人生值得 阅读(127) 评论(0) 推荐(0) 编辑
摘要: ##1.配置chrony服务,实现服务器时间自动同步 [root@localhost ~]# dnf install -y chrony [root@localhost ~]# systemctl enable --now chronyd [root@localhost ~]# systemctl 阅读全文
posted @ 2020-12-24 16:21 人生值得 阅读(193) 评论(0) 推荐(0) 编辑
摘要: ##1.编写脚本selinux.sh,实现开启或禁用SELinux功能。 [root@localhost ~]#bash SElinux.sh ###################################################### Current status: SELinux 阅读全文
posted @ 2020-11-13 10:29 人生值得 阅读(185) 评论(0) 推荐(0) 编辑