环境准备安装环境:LVS版本:LVS-1.4.21keepalived版本:keepalivedv1.3.5LVS:172.24.77.241(master)LVS:172.24.77.242(backup)VIP地址:172.24.77.245LVS安装:master和backup服务器安装LVS先检查/usr/src/kernels目录下是否有文件,没有则需要安装kernelsll/usr/s
分类:
其他好文 时间:
2020-06-29 18:30:22
阅读次数:
60
注意:备份和恢复使用的Gitlab 版本必须一致 1、停止数据相关服务gitlab-ctl stop unicorn gitlab-ctl stop sidekiq2、还原gitlab-rake gitlab:backup:restore BACKUP=/var/opt/gitlab/backups ...
分类:
其他好文 时间:
2020-06-29 16:58:11
阅读次数:
62
转:https://www.echoxu.cn/logrotate/#logrotate%E4%BB%8B%E7%BB%8D 说起日志切割,很多人会选择用crontab脚本定时执行已编写好的日志分割脚本,殊不知在linux上内置了日志分割工具,它就是logrotate且其在centos7上默认安装了 ...
分类:
其他好文 时间:
2020-06-29 11:37:31
阅读次数:
181
#vi /etc/keepalived/keepalived.conf RouteA(backup):192.168.224.6RouteB(backup):192.168.224.221RouteC(master):192.168.224.220VIP: 192.168.224.4RouteA配置 ...
分类:
其他好文 时间:
2020-06-29 00:50:10
阅读次数:
79
1 <?xml version="1.0" encoding="utf-8" ?> 2 <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-i ...
分类:
其他好文 时间:
2020-06-27 09:45:48
阅读次数:
53
crontab在/var/log/目录下没有cron.log文件 修改rsyslog文件: /etc/rsyslog.d/50-default.conf 将 rsyslog 文件中的 #cron.* 前的 # 删掉; 重启rsyslog服务: service rsyslog restart 重启cr ...
分类:
系统相关 时间:
2020-06-26 20:11:56
阅读次数:
59
aviary.sh 是一个基于bash的分布式配置管理工具,可以用来奇幻chef,puppet,ansible aviary.sh 利用了git 以及linux 的crontab,以前有介绍过类似的工具bashible 参考图 说明 aviary.sh 的好多特性类似ansible,同时集成了git ...
分类:
其他好文 时间:
2020-06-26 14:39:26
阅读次数:
85
xtrabackup 备份 MySQL 8.0.20 时报错: 200626 08:40:59 Connecting to MySQL server host: localhost, user: root, password: set, port: 3306, socket: /data/mysql ...
分类:
其他好文 时间:
2020-06-26 12:40:56
阅读次数:
88
#!/bin/bash #备份数据库 dir=/usr/share/nginx/html/project/ssh/backup/`date +%Y%m%d` mysqldb=test musqluser=root mysqlpwd=123456 mysqlicmd=/usr/bin/mysqldum ...
分类:
数据库 时间:
2020-06-25 21:46:08
阅读次数:
102
Backup and Recovery: Concepts ObjectivesAfter completing this lesson, you should be able to:? Identify the types of failure that can occur in an Oracl ...
分类:
数据库 时间:
2020-06-25 19:17:27
阅读次数:
296