部署altermanager组件 [root@zabbix ~]# tar -xf alertmanager-0.21.0.linux-amd64.tar.gz -C /opt/monitor/[root@zabbix ~]# cd /opt/monitor/[root@zabbix monitor ...
分类:
其他好文 时间:
2021-04-13 11:58:34
阅读次数:
0
import java.util.HashMap; import java.util.HashMap; import java.util.LinkedHashSet; import java.util.Map; public class Station { private String name; ...
分类:
其他好文 时间:
2021-04-12 12:54:28
阅读次数:
0
现在的大多数网站都有校验,以及信息提示:为了给用户更好的体验可以不用alert提示消息,采用jQuery提示完消息,自动消失。 CSS <style> #tip_message { z-index: 9999; position: fixed; left: 0; top: 40%; text-ali ...
分类:
Web程序 时间:
2021-04-12 12:47:55
阅读次数:
0
1. vi /etc/my.cnf 2. update mysql.user set authentication_string=password('123456') where user='root' and host='localhost'; 3. FLUSH PRIVILEGES; ...
分类:
数据库 时间:
2021-04-12 12:44:01
阅读次数:
0
二叉树——105. 从前序与中序遍历序列构造二叉树 题目: 思路: 这题就是考察两种遍历的特点,前序遍历的第一个为root结点,知道了root结点,就可以在中序遍历中知道在root结点之前的为左子树,在root结点之后的为右子树。然后就可以递归的构造出左子树和右子树。 具体实现的时候,就是要借助哈希 ...
分类:
其他好文 时间:
2021-04-12 12:33:14
阅读次数:
0
calls=array( 'id' => null, 'nid' => null, 'name' => '', 'cur_time' => '', 'context' => '', 'switch' => '', ); //用户 $this->user=array( 'nid'=>null, 'na ...
分类:
其他好文 时间:
2021-04-12 12:28:30
阅读次数:
0
主从集群 在搭建主从集群前,我们先把Redis安装起来: #解压Redis压缩包 [root@master lf]# tar -zxvf redis-6.2.1.tar.gz …… #安装gcc [root@master redis-6.2.1]# yum install gcc …… [root@ ...
分类:
其他好文 时间:
2021-04-12 12:08:05
阅读次数:
0
二叉树——144. 二叉树的前序遍历 题目: 思路: 前序遍历用递归,递归逻辑就是前序遍历的顺序:中左右,然后就行了。 代码: class Solution { public: void traversal(TreeNode* node, vector<int>& vec){ // 终止条件 if( ...
分类:
其他好文 时间:
2021-04-12 11:54:04
阅读次数:
0
根据题目意思,实际上我们计算出左右子树的高度相加后即为结果(实际还需-1) 1.深度优先遍历 时间O(n),空间O(h) class Solution { int max= 0; public int diameterOfBinaryTree(TreeNode root) { def(root); ...
分类:
其他好文 时间:
2021-04-12 11:46:11
阅读次数:
0
1045 Access denied for user 'root'@'localhost' (using password:YES) 这个意思是说:用户“root”@本地主机的访问被拒绝 1、首先修改my.ini,在文件中加入skip-grant-tables,重新启动MySQL服务 2、cmd ...
分类:
数据库 时间:
2021-04-12 11:38:52
阅读次数:
0