My Blog
http://www.example.com
摘要: 1、DR模式下vip不在同一网段上实现过程(夸网段) cip配置: route配置 RS1配置: RS2配置: LVS配置: 2、CentOS7.6 中 nfs 客户端使用 /etc/fatab 实现开机自动挂载 [root@centos7 ~]#vim /etc/fstab 10.0.0.73:/ 阅读全文
posted @ 2020-11-08 18:34 1平方m 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 10.0.0.71服务器一键安装脚本 #!/bin/bash SRC1=https://mirror.csclub.uwaterloo.ca/apache//httpd/httpd-2.4.46.tar.bz2 SRC2=https://mirrors.bfsu.edu.cn/apache//apr 阅读全文
posted @ 2020-11-01 21:29 1平方m 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 1、如果主节点已经运行了一段时间,且有大量数据时,如何配置并启动slave节点(写出操作步骤) #主服务器 [root@Master ~]#mkdir /backup [root@Master ~]#mysqldump -A -F --single-transaction --master-data 阅读全文
posted @ 2020-10-19 12:05 1平方m 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 1、写一个一键安装 mariadb 数据库脚本。 [root@centos8 ~]# cat mariadb_install.sh #!/bin/bash DIR="/data/mysql" NAME="/usr/local/mysql" URL="https://mirrors.tuna.tsin 阅读全文
posted @ 2020-09-26 20:17 1平方m 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 拒绝所有主机ping 当前的主机 [root@CentOS8-1 ~]#iptables -A INPUT -p icmp -j REJECT [root@CentOS8-1 ~]#iptables -vnL Chain INPUT (policy ACCEPT 0 packets, 0 bytes 阅读全文
posted @ 2020-09-21 09:00 1平方m 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 1.使用kickstart半自动化安装centos操作系统 (1)准备yum源和相关文件 yum -y install httpd systemctl enable --now httpd mkdir /var/www/html/centos/7/os/x86_64 -pv mount /dev/s 阅读全文
posted @ 2020-09-12 16:44 1平方m 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 1、在 CentOS7 中使用 gpg 创建 RSA 非对称密钥对 [root@centos7 .gnupg]#gpg --gen-key [root@centos7 .gnupg]#gpg --list-keys /root/.gnupg/pubring.gpg pub 1024R/F43101B 阅读全文
posted @ 2020-09-06 14:53 1平方m 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 1、在本机字符终端登录时,除显示原有信息外,再显示当前登录终端号,主机名和当前时间。 [root@centos8 ~]#cat /etc/issue \S Kernel \r on an \m tty: \l hostname: \n time: \t 2、今天18:30自动关机,并提示用户 [ro 阅读全文
posted @ 2020-08-09 21:54 1平方m 阅读(183) 评论(0) 推荐(0) 编辑