会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Mlxg
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
5
···
12
下一页
2022年11月4日
通过binlog恢复数据
摘要: 1. 通过binlog_rollback恢复数据 安装binlog_rollback(反向解析出SQL语句) 下载地址https://github.com/GoDannyLai/binlog_rollback/ 解压之后,chmod +x binlog_rollback即可 指定时间恢复数据(不指定
阅读全文
posted @ 2022-11-04 16:19 MlxgzZ
阅读(520)
评论(0)
推荐(0)
2022年10月27日
ansible执行带有参数的shell脚本
摘要: 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
阅读(437)
评论(0)
推荐(0)
2022年6月27日
ansible环境安装及数据恢复
摘要: 配置免密登录服务器及下载备份文件#!/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
阅读(167)
评论(0)
推荐(0)
2022年5月13日
ansible对文件内容操作
摘要: ansible lineinfile 简介 lineinfile该模块是操作文件中的每一行内容,他是按照行为单位的,和下面的replace模块并不冲突。 修改匹配行,如果不存在就会添加 tasks: - name: Ensure SELinux is set to enforcing mode li
阅读全文
posted @ 2022-05-13 10:30 MlxgzZ
阅读(424)
评论(0)
推荐(0)
2022年4月8日
监控域名,证书过期时间
摘要: #!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
阅读(92)
评论(1)
推荐(0)
2021年11月22日
gitlab备份迁移与升级
摘要: 升级计划: 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
阅读(49)
评论(0)
推荐(0)
2021年10月28日
openssh升级
摘要: 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
阅读(65)
评论(0)
推荐(0)
2021年10月12日
查询数据库表大小
摘要: 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
阅读(57)
评论(0)
推荐(0)
2021年9月24日
java程序使用ssl证书连接mysql
摘要: 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
阅读(1558)
评论(0)
推荐(0)
2021年9月10日
搭建openvpn连接公司内网
摘要: 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)
1
2
3
4
5
···
12
下一页
公告