基于此:win10下redis集群 application.yml 1 spring: 2 redis: 3 cluster: 4 ## 集群ip端口 5 nodes: 127.0.0.1:7001,127.0.0.1:7002,127.0.0.1:7003,127.0.0.1:7004,127.0 ...
分类:
编程语言 时间:
2020-04-22 00:09:10
阅读次数:
86
1、_cluster接口命令heakth: 集群健康状况:state: 查看集群节点:stats: 统计数据; 部分截图查看单个节点状况:[root@node1 ~]# curl -X GET 'http://node1:9200/_nodes/stats?pretty'2、Plugins(插件)插... ...
分类:
其他好文 时间:
2020-04-21 23:43:07
阅读次数:
91
问题: 给定一个非负整数,求只交换一次某两位的数字,使得值最大,求该最大值。 Example 1: Input: 2736 Output: 7236 Explanation: Swap the number 2 and the number 7. Example 2: Input: 9973 Out ...
分类:
其他好文 时间:
2020-04-21 15:26:28
阅读次数:
63
CentOS安装系统时硬盘分区建议 一.常见挂载点的情况说明 一般来说,在linux系统中都有最少两个挂载点,分别是/ (根目录)及 swap(交换分区),其中,/ 是必须的; 详细内容见下文: 安装系统时选择creat custom layout 自定义分区 建议挂载的几大目录: / 根目录,存放 ...
分类:
其他好文 时间:
2020-04-21 15:06:57
阅读次数:
68
Collections 集合工具类 - 操作Set、List、Map等集合的工具 - 提供了排序、查询、修改、操作,提供对对象设置不可变对集合容器对象实现同步控制等方法 排序操作: - static reverse(List list) 反转集合顺序 - static shuffle(List li ...
分类:
编程语言 时间:
2020-04-21 13:08:48
阅读次数:
55
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). For example:Given binary tree [3 ...
分类:
其他好文 时间:
2020-04-21 09:51:36
阅读次数:
66
1:值传递,并未实现真正的交换 void Swap(int a,int b)//这里a,b的地址与主函数的地址不同,仅仅是函数名相同 { int tmp = a; a = b; b = tmp; } int main() { int a=5; int b=10; Swap(a,b);//a还是5,b ...
分类:
编程语言 时间:
2020-04-21 00:06:48
阅读次数:
168
数据链路层服务 术语 + 主机和路由器:结点(nodes) + 连接相邻结点的通信信道:链路(links) + 有线链路(wired links) + 无线链路(wireless links) + 局域网(LANs) + 链路层(第2层)数据分组:帧(frame),封装网络层数据报 数据链路层负责通 ...
分类:
其他好文 时间:
2020-04-20 20:08:58
阅读次数:
129
1 void siftdown(int i)//删除一个最小的数并新增一个数 2 {//传入一个需要向下调整的节点编号i, 3 int t,flag = 0; 4 while(i*2 <= n &&flag == 0) 5 { 6 if(h[i] > h[i*2])//判断左子 7 t = i*2; ...
分类:
其他好文 时间:
2020-04-20 18:50:00
阅读次数:
65
Paths on the treeProblem Descriptionbobo has a tree, whose vertices are conveniently labeled by 1,2,…,n.** There are m paths on the tree. bobo would l ...
分类:
其他好文 时间:
2020-04-19 18:07:45
阅读次数:
62