摘要: 1. 通过binlog_rollback恢复数据 安装binlog_rollback(反向解析出SQL语句) 下载地址https://github.com/GoDannyLai/binlog_rollback/ 解压之后,chmod +x binlog_rollback即可 指定时间恢复数据(不指定 阅读全文
posted @ 2022-11-04 16:19 MlxgzZ 阅读(455) 评论(0) 推荐(0) 编辑
摘要: 1. 重启应用脚本 #!/bin/bash java_path="/lxserver/env/jdk/8/bin/java" deploy_path="/lxserver/project/backend/${1}" env_config="--spring.profiles.active=produ 阅读全文
posted @ 2022-10-27 17:49 MlxgzZ 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 配置免密登录服务器及下载备份文件#!/bin/bash BACKUP=192.168.30.233 #一行写一个IP BACKUP_PASSWD="lxzl_root*#2021" #root密码 MYSQLBACKUP=192.168.30.232 #一行写一个IP MYSQLBACKUP_PAS 阅读全文
posted @ 2022-06-27 15:43 MlxgzZ 阅读(140) 评论(0) 推荐(0) 编辑
摘要: ansible lineinfile 简介 lineinfile该模块是操作文件中的每一行内容,他是按照行为单位的,和下面的replace模块并不冲突。 修改匹配行,如果不存在就会添加 tasks: - name: Ensure SELinux is set to enforcing mode li 阅读全文
posted @ 2022-05-13 10:30 MlxgzZ 阅读(352) 评论(0) 推荐(0) 编辑
摘要: #!bin/bash date_Now=$(date +%Y%m%d) set -e set -x # 这里定义发送的消息艾特多个人, atMobiles=xxxxxxxx keyword="告警" dintalkurl="https://oapi.dingtalk.com/robot/send?a 阅读全文
posted @ 2022-04-08 15:33 MlxgzZ 阅读(65) 评论(1) 推荐(0) 编辑
摘要: 升级计划: https://docs.gitlab.com/ee/update/index.html#upgrade-paths 1. 安装gitlab(和源版本必须保持一致) wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/g 阅读全文
posted @ 2021-11-22 10:50 MlxgzZ 阅读(38) 评论(0) 推荐(0) 编辑
摘要: ssh -V cp -a /etc/ssh/sshd_config /etc/ssh/sshd_config.bak yum remove openssh-* -y yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqli 阅读全文
posted @ 2021-10-28 11:48 MlxgzZ 阅读(56) 评论(0) 推荐(0) 编辑
摘要: SELECT TABLE_NAME, DATA_LENGTH + INDEX_LENGTH, TABLE_ROWS, concat(round((DATA_LENGTH + INDEX_LENGTH) / 1024 / 1024,2),'MB') AS DATA FROM information_s 阅读全文
posted @ 2021-10-12 16:47 MlxgzZ 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 1. 在mysql服务器上生成证书 openssl genrsa 2048 > ca-key.pem openssl req -new -x509 -nodes -days 3600 -key ca-key.pem -out ca.pem openssl req -newkey rsa:2048 - 阅读全文
posted @ 2021-09-24 17:51 MlxgzZ 阅读(1372) 评论(0) 推荐(0) 编辑
摘要: 1. 下载easy-rsa生成证书使用 https://github.com/OpenVPN/easy-rsa/releases https://github.com/OpenVPN/easy-rsa 2. 安装openvpn 配置epel源 [epel] name=Extra Packages f 阅读全文
posted @ 2021-09-10 15:55 MlxgzZ 阅读(6) 评论(0) 推荐(0) 编辑