摘要:
#一、利用xtrabackup实现完全备份及还原 1.下载并安装xtrabackup包 [root@centos8 ~]#wget https://downloads.percona.com/downloads/Percona-XtraBackup-2.4/Percona-XtraBackup-2. 阅读全文
posted @ 2023-10-07 15:02
小糊涂90
阅读(202)
评论(0)
推荐(0)
摘要:
#实现主从复制配置,官网参考 https://dev.mysql.com/doc/refman/8.0/en/replication-configuration.html https://dev.mysql.com/doc/refman/5.7/en/replication-configuratio 阅读全文
posted @ 2023-10-07 15:01
小糊涂90
阅读(222)
评论(0)
推荐(0)
摘要:
导入hellodb.sql生成数据库 MariaDB [hellodb]> source /root/hellodb_innodb.sql (1) 在students表中,查询年龄大于25岁,且为男性的同学的名字和年龄 MariaDB [hellodb]> select name,age from 阅读全文
posted @ 2023-10-07 14:59
小糊涂90
阅读(62)
评论(0)
推荐(0)
摘要:
#配置说明 Linux版本:Centos7 MySQL版本:mysql-5.7.26 该文档适用于MySQL版本>=5.7.6 数据库源码存放目录:/apps/mysql_source #存储空间要大一些 数据库安装目录:/usr/local/web/mysql 数据库的数据目录:/home/my 阅读全文
posted @ 2023-10-07 14:58
小糊涂90
阅读(92)
评论(0)
推荐(0)
摘要:
NAT的实现分为下面类型: SNAT:source NAT ,支持POSTROUTING, INPUT,让本地网络中的主机通过某一特定地址访问外部网络,实现地址伪装,请求报文:修改源IP DNAT:destination NAT 支持PREROUTING , OUTPUT,把本地网络中的主机上的某服 阅读全文
posted @ 2023-10-07 14:51
小糊涂90
阅读(58)
评论(0)
推荐(0)
摘要:
[root@centos8 ~]#iptables -I INPUT -p tcp -m multiport --dport 21,22,23,80 -j ACCEPT[root@centos8 ~]#iptables -I INPUT -A INPUT -j REJECT[root@centos8 阅读全文
posted @ 2023-10-07 14:51
小糊涂90
阅读(106)
评论(0)
推荐(0)
摘要:
1)环境需要五台主机: DNS主服务器和web服务器1:10.0.0.150/24,192.168.33.150/24 web服务器2:10.0.0.151/24 web服务器3:192.168.33.151/24 DNS客户端1:10.0.0.152/24 ,dns指向10.0.0.150 DNS 阅读全文
posted @ 2023-10-07 14:50
小糊涂90
阅读(201)
评论(0)
推荐(0)
摘要:
1)DNS简介: DNS 是计算机域名系统 (Domain Name System 或Domain Name Service) 的缩写。域名便于人们记忆,但机器之间只认IP地址,它们之间的转换工作称为域名解析,域名解析需要由专门的域名解析服务器来完成,DNS就是进行域名解析的服务器。上网时输入的网址 阅读全文
posted @ 2023-10-07 14:50
小糊涂90
阅读(217)
评论(0)
推荐(0)
摘要:
服务器端的配置文件: /etc/ssh/sshd_config常用参数:Port #端口号ListenAddress ipLoginGraceTime 2m #宽限期PermitRootLogin yes #默认ubuntu不允许root远程ssh登录StrictModes yes #检查.ssh 阅读全文
posted @ 2023-10-07 14:48
小糊涂90
阅读(123)
评论(0)
推荐(0)
摘要:
格式; ssh [user@]host [command] 选项: -1:强制使用ssh协议版本1; -2:强制使用ssh协议版本2; -4:强制使用IPv4地址; -6:强制使用IPv6地址; -A:开启认证代理连接转发功能; -a:关闭认证代理连接转发功能; -b:使用本机指定地址作为对应连接的 阅读全文
posted @ 2023-10-07 14:47
小糊涂90
阅读(1359)
评论(0)
推荐(0)

浙公网安备 33010602011771号