配置密钥对的双向配置 HOST1配置: root下编辑/etc/ssh/sshd_config RSAAuthentication yes //启用RSA算法 PubkeyAuthentication yes //启用秘钥对验证 [root@host1 ~]# useradd hadoop //建立 ...
分类:
其他好文 时间:
2019-08-15 21:14:03
阅读次数:
126
#include #include #include #include #include #define LL long long #define rep(i,j,k) for(int i=j;i=k;i--) #define pb push_back #define pii pair #defin... ...
分类:
其他好文 时间:
2019-08-15 21:05:12
阅读次数:
94
B. Equal Rectangles 给定4*N个数,是否能构成N个矩形 面积均相等 每次取两个大的,两个小的 ...
分类:
其他好文 时间:
2019-08-14 23:20:25
阅读次数:
90
B - Oulipo HDU - 1686 题目链接:https://vjudge.net/contest/70325#problem/B 题目: The French author Georges Perec (1936–1982) once wrote a book, La disparitio ...
分类:
其他好文 时间:
2019-08-13 22:56:09
阅读次数:
202
Find the result of the following code: long long pairsFormLCM( int n ) { long long res = 0; for( int i = 1; i <= n; i++ ) for( int j = i; j <= n; j++ ...
分类:
其他好文 时间:
2019-08-13 00:17:31
阅读次数:
83
1、为什么要面密码登录ssh呢第一,方便使用第二,在云环境中,新加入的主机,要实现自动部署,则要由控制节点进行免密码管理,比如ceph中新节点的加入。2、免密码登录的原理是什么呢ssh登录有两种方式,密码和密钥文件,既然免密码,那么可以使用密钥文件来实现登录。3、那么如何实现呢在这里,我们有两台服务器。server01,地址是192.168.0.131server02,地址是192.168.0.1
分类:
系统相关 时间:
2019-08-11 23:21:53
阅读次数:
244
把一个pair里的values变成一个数组,然后k-v1 k-v2... 如果是mapValues会输出:【对比区别】 (mobin,List(22, male))(kpop,List(20, male))(lufei,List(23, male)) ...
分类:
其他好文 时间:
2019-08-11 13:37:25
阅读次数:
207
是cf933C的升级版。 平面图欧拉定理。over! f=e v+c+1 c是联通块,相交才视为一块。 e是圆弧数,v是顶点数。 c++ include define pii pair define mp make_pair define fi first define se second defi ...
分类:
其他好文 时间:
2019-08-09 23:50:44
阅读次数:
112
今天是这几天考试中唯一一次发挥正常一点儿的... T1:https://www.luogu.org/problem/T93119 这么小的数据,O(n^3)暴力就行 而我非常愚蠢加个二分,一样可以过 #include<cstdio> #include<iostream> #include<algor ...
分类:
其他好文 时间:
2019-08-09 21:48:33
阅读次数:
63