https://github.com/google/guava/blob/master/guava/src/com/google/common/util/concurrent/RateLimiter.java 异常参数校验 Preconditions类 部分方法: checkArgument使用:P ...
分类:
其他好文 时间:
2020-07-20 22:29:07
阅读次数:
74
默认情况下Alertmanager使用了系统自带的默认通知模板,模板源码可以从https://github.com/prometheus/alertmanager/blob/master/template/default.tmpl获得。 Alertmanager的通知模板基于Go的模板系统。Aler ...
分类:
其他好文 时间:
2020-07-20 13:22:09
阅读次数:
107
问题描述:有需要mysql某几张表的需求,某个数据库某几张表,导出先检查相应的数据库和表是否存在 数据泵用法:默认导出的是表结构以及表中的数据 mysqldump -uroot -p -S /data/mysql/db_recovery/mysql.sock --default-character- ...
分类:
数据库 时间:
2020-07-20 10:17:58
阅读次数:
92
安装master节点 安装前的准备工作 关闭防火墙和selinux 配置hosts文件 关闭swap:swapoff -a 第一步:下载阿里云的kubernetes,下载地址请找阿里云的。(如下图)http://mirrors.aliyun.com/ vim /etc/yum.repos.d/kub ...
分类:
其他好文 时间:
2020-07-19 23:59:42
阅读次数:
144
目录 一.LinkedList介绍 二.LinkedList源码解析 2.1 链表元素类型-Node 2.2 重要的属性 2.3 构造方法 2.4 获取元素 2.4.1 getFirst和getLast 2.4.2 get 2.5 添加元素 2.5.1 add 2.5.2 addFirst和addL ...
分类:
编程语言 时间:
2020-07-19 17:46:23
阅读次数:
59
安装Homebrew /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" Homebrew更换国内镜像源 # 替换 brew.git 仓库地址 cd "$( ...
分类:
系统相关 时间:
2020-07-19 16:04:40
阅读次数:
307
[root@pxc3 mysql_gtid]# mysqldump -uroot -pmysql123 test >/tmp/test.sqlmysqldump: [Warning] Using a password on the command line interface can be inse ...
分类:
其他好文 时间:
2020-07-19 15:55:51
阅读次数:
70
1.es tar包传至linux上 并解压 tar -zxvf elasticsearch-7.4.0-linux-x86_64.tar.gz 2.新建用户 useradd xxxname passwd xxxpw 3.在root用户下将解压包的路径授权给新建的用户 chown -R xxxname ...
分类:
其他好文 时间:
2020-07-19 13:51:27
阅读次数:
82
一、preparation 1、download starter-template-master 2、command line-->cnpm install 3、change "{{ name }}"(package.json) to your project name 4、command line ...
分类:
其他好文 时间:
2020-07-19 13:50:08
阅读次数:
76
**vip配置可以采用两种方式:**1、通过keepalived的方式管理虚拟ip的浮动;2、通过脚本方式启动虚拟ip的方式(即不需要keepalived或者heartbeat类似的软件)1、keepalived方式管理虚拟ip#在编译安装Keepalived之前,必须先安装内核开发包kernel-devel以及openssl-devel、popt-devel等支持库[root@master~]#
分类:
数据库 时间:
2020-07-19 11:25:11
阅读次数:
70