① docker启动 es实例 docker run --name elasticsearch -p 9200:9200 -p 9300:9300 \ -e "discovery.type=single-node" \ -e ES_JAVA_OPTS="-Xms64m -Xmx128m" \ -v ...
分类:
数据库 时间:
2020-04-09 09:13:06
阅读次数:
313
Given a non empty, singly linked list with head node head, return a middle node of linked list. If there are two middle nodes, return the second middl ...
分类:
其他好文 时间:
2020-04-08 22:19:40
阅读次数:
93
环境: OS:Centos 7 DB:18.0.0.0 1.停掉每个节点的crsRun "crsctl stop crs" on all nodes to stop CRS stack.2.关闭HAIPOn one node, run the following commands:在一个节点上执行如 ...
分类:
数据库 时间:
2020-04-07 20:55:31
阅读次数:
92
master是主机,只有master装jenkins slave是小弟机无需装jenkins,主要执行master分配的任务 一、新建slave 1.新建slave的方法:点击magian jenkis magian nodes 以下设置,需要注意下 启动方式,新版的jenkins只有一个选项,如下 ...
分类:
其他好文 时间:
2020-04-07 14:13:59
阅读次数:
73
函数参数中的值传递: void my_swap(int m,int n) { int tmp = 0; tmp = m;m = n;n = tmp; printf("m = %d,n = %d\n",m,n) ; } int main() { int a = 11,b = 22; my_swap(a ...
分类:
其他好文 时间:
2020-04-07 12:28:22
阅读次数:
78
内存使用率查看常用命令介绍 free topfree命令(1)free命令查看内存,单位都为kbuser1@SC02ZRC4KMD6N~%freetotalusedfreesharedbuff/cacheavailableMem:104857624092080574001916807656Swap:000available参数:指把buff/cache都释放调,系统还有多少空闲内存。swap交换分
分类:
其他好文 时间:
2020-04-07 00:10:27
阅读次数:
68
一、部署Rabbitmq集群Rabbitmq集群大概分为两种方式:1、普通模式:默认的集群模式,消息的尸体只存在一个节点上;2、镜像模式:把需要的队列做成镜像,存在于多个节点。ha-mode:?all:列队到所有节点;?exatly:随机镜像到其他节点上;?nodes:镜像到指定节点上。集群节点模式:1、内存节点:工作在内存上;2、磁盘节点:工作在磁盘上;例外:内存节点和磁盘节点共同存在,提高访问
分类:
其他好文 时间:
2020-04-06 17:16:39
阅读次数:
84
1、交换内存告警 该告警通常就是使用了swap分区导致的,在生产环境中,如果服务器内存是256G;建议关闭swap分区,减少跟数据盘之间的交互; 2、修改swap阈值 任何:表示只要使用了swap分区就告警; 从不:无论怎么使用swap分区都不告警,即关闭swap告警; 指定:举例说明:如果swap ...
分类:
其他好文 时间:
2020-04-06 10:14:24
阅读次数:
104
要求 给定链表中的一个节点,删除该节点 思路 通过改变节点的值实现 实现 1 struct ListNode { 2 int val; 3 ListNode *next; 4 ListNode(int x) : val(x), next(NULL) {} 5 }; 6 7 class Solutio ...
分类:
其他好文 时间:
2020-04-06 10:12:30
阅读次数:
67
Given 2 lists a and b. Each element is a pair of integers where the first integer represents the unique id and the second integer represents a value. ...
分类:
其他好文 时间:
2020-04-06 10:06:59
阅读次数:
72