1 查看主机名称 在Ubuntu系统中,快速查看主机名有多种方法: 在终端窗口中,主机名通常位于@符号后:root@lzyws739307453:~#例如这个的主机名就是lzyws739307453。 或在终端窗口中输入命令:hostname、hostnamectl、uname –n、uname - ...
分类:
系统相关 时间:
2020-11-27 11:01:13
阅读次数:
9
跟着网上的步骤走就好了,这里就记录一个过程: 先加个docker的源 1 curl -fsSL https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian/gpg | sudo apt-key add - 2 3 echo 'deb htt ...
分类:
其他好文 时间:
2020-11-27 10:55:57
阅读次数:
5
层峦叠崎一一布隆过滤器 布隆过滤器( Bloom Filter )在起到去重作用的同时,在空间上还能节省 90% 以上,只是稍微有那么点不精确,也就是有一定的误判概率。 怎样理解布隆过滤器? 布隆过滤器理解为一个不怎么精确的 set 结构,当你使用它的 contains 法判断某个对象是否存在时,它 ...
分类:
其他好文 时间:
2020-11-27 10:51:16
阅读次数:
6
MapReduce既是一个编程模型,也是一个计算组件,处理的过程分为两个阶段,Map阶段:负责把任务分解为多个小任务,Reduce负责把多个小任务的处理结果进行汇总。其中Map阶段主要输入是一对Key-Value,经过map计算后输出一对Key-Value值;然后将相同Key合并,形成Key-Value集合;再将这个Key-Value集合转入Reduce阶段,经过计算输出最终Key-Value结果集。
分类:
其他好文 时间:
2020-11-26 14:53:23
阅读次数:
6
一、约束 1)主键 主键约束=非空约束+唯一约束 主键可以是一个列或者多个列 1)创表添加多个列作为主键 create table score1( sid int not null, cid int not null, PRIMARY key(sid,cid) ); 2)删除主键约束 alter t ...
分类:
数据库 时间:
2020-11-26 14:30:23
阅读次数:
8
1、把主键定义为自动增长标识符类型 MySql 在mysql中,如果把表的主键设为auto_increment类型,数据库就会自动为主键赋值。例如: create table customers(id int auto_increment primary key not null, name var ...
分类:
数据库 时间:
2020-11-26 14:09:06
阅读次数:
11
package com.atguigu.etl; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.NullWritable; impo ...
分类:
其他好文 时间:
2020-11-25 13:04:03
阅读次数:
26
node类 class Node{ private int v; private Object k; private Node next; private Node pre; public Node(Object key,int value) { this.v = value; this.k = k ...
分类:
其他好文 时间:
2020-11-25 13:01:35
阅读次数:
15
概述在复杂的网络环境中,需要通过抓包来排查网络问题,但是有时候https的包是tls加密,无法看到真实它在做什么,需要对其进行解密。工具tcpdumpwiresharkhttps请求工具浏览器curl设置解密变量exportSSLKEYLOGFILE=~/Downloads/ssl.key测试发送https请求curlhttps://baidu.com<html><head>
分类:
Web程序 时间:
2020-11-25 12:50:13
阅读次数:
14
Github使用记录 配置Git $ ssh-keygen -t rsa -C "your_email@youremail.com" 改为自己的name和地址,继续回车,默认路径和密码,继续回车,生成.ssh,打开id_rsa.pub,复制key到github的setting中。 $ ssh -T ...
分类:
其他好文 时间:
2020-11-25 12:05:08
阅读次数:
7