摘要: #! /bin/bashecho "start running" | tee -a LANG=enset `date`path="/home/check"echo "start running" | tee -a $path/log/$1-$2-$3.logif [ -d /home/check/r 阅读全文
posted @ 2020-07-22 09:45 云凡、、、 阅读(748) 评论(0) 推荐(0)
摘要: master上的keepalived.conf backup上的keepalived.conf nginx检测脚本check_nginx_pid.sh 阅读全文
posted @ 2020-05-22 17:01 云凡、、、 阅读(118) 评论(0) 推荐(0)
摘要: l 主mysql上: # cp /etc/my.cnf /etc/my.cnf.bak # vi /etc/my.cnf log_bin=mysql-bin //开启二进制日志 server_id=1 //server_id 的值主从必须不同 登录mysql后进行授权: mysql> grant a 阅读全文
posted @ 2020-05-19 19:46 云凡、、、 阅读(419) 评论(0) 推荐(0)
摘要: 1.epel仓库安装 yum -y install extundelete 编译安装: wget http://zy-res.oss-cn-hangzhou.aliyuncs.com/server/extundelete-0.2.4.tar.bz2 yum -y install bzip2 e2fs 阅读全文
posted @ 2020-05-19 17:09 云凡、、、 阅读(439) 评论(0) 推荐(0)
摘要: 1:安装 yum -y install epel-release yum -y install fail2ban 文件目录: /etc/fail2ban ## fail2ban 服务配置目录/etc/fail2ban/action.d ## iptables 、mail 等动作文件目录/etc/fa 阅读全文
posted @ 2020-05-19 17:04 云凡、、、 阅读(268) 评论(0) 推荐(0)
摘要: 源码安装Redis: 1 分别在两台服务器下创建cluster目录 mkdir -p /redis/clustercd /redis/cluster/mkdir 7001 7002 7003ls7001 7002 70035,在另一台服务器上同样操作,创建7004,7005,70062,修改配置文件 阅读全文
posted @ 2020-05-18 19:09 云凡、、、 阅读(186) 评论(0) 推荐(0)
摘要: 3.1 kvm安装 [root@mp ~]# systemctl stop firewalld [root@mp ~]# systemctl disable firewalld Removed symlink /etc/systemd/system/multi-user.target.wants/f 阅读全文
posted @ 2020-05-04 22:44 云凡、、、 阅读(187) 评论(0) 推荐(0)
摘要: 一、安装相关依赖包 yum -y install httpd dhcp tftp python-ctypes cobbler xinetd cobbler-web 二、启动相关服务 systemctl start httpd systemctl start cobblerd systemctl en 阅读全文
posted @ 2020-05-04 22:26 云凡、、、 阅读(222) 评论(0) 推荐(0)
摘要: 1、安装openvpn [root@ c7-41 ~]# yum -y install openvpn 2、下载最新的easy-rsa,解压 [root@ c7-41 ~]# wget https://github.com/OpenVPN/easy-rsa/archive/master.zip [r 阅读全文
posted @ 2020-05-04 22:20 云凡、、、 阅读(5) 评论(0) 推荐(0)
摘要: yum安装supervisor yum -y install supervisor 设置开机自启 systemctl enable supervisord 安装jdk tar -zxvf jdk-8u60-linux-x64.tar.gz -C /usr/local/ chown -R root.r 阅读全文
posted @ 2020-04-27 16:38 云凡、、、 阅读(147) 评论(0) 推荐(0)