一、controller节点安装ntp 1 安装ntp服务 yum install chrony 2 Edit the chrony.conf file and add, change, or remove the following keys as necessary for your envir ...
分类:
其他好文 时间:
2020-02-02 17:37:28
阅读次数:
80
参考资料: https://www.cnblogs.com/xiaodai0/p/10564956.html https://www.cnblogs.com/huangbiquan/articles/7740894.html 1.remove: 删除单个元素,删除首个符合条件的元素,按值删除 举例说 ...
分类:
编程语言 时间:
2020-02-02 15:33:56
阅读次数:
59
本文将详细介绍如何在Java端、C++端和NodeJs端实现基于SSL/TLS的加密通信,重点分析Java端利用SocketChannel和SSLEngine从握手到数据发送/接收的完整过程。本文也涵盖了在Ubuntu系统上利用OpenSSL和Libevent如何创建一个支持SSL的服务端。文章中介 ...
分类:
其他好文 时间:
2020-02-02 14:09:48
阅读次数:
83
82. Remove Duplicates from Sorted List II Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from ...
分类:
其他好文 时间:
2020-02-02 12:06:41
阅读次数:
68
用户登录: [HttpPost] [CustomAllowAnonymous]//允许匿名登录(这个是自定义的) public ActionResult Login(string name, string password, string verify) { string formName = ba ...
分类:
其他好文 时间:
2020-02-02 11:57:56
阅读次数:
81
1 """ 2 Given the head of a linked list, we repeatedly delete consecutive sequences of nodes that sum to 0 until there are no such sequences. 3 4 Afte ...
分类:
其他好文 时间:
2020-02-01 23:18:44
阅读次数:
83
定义数组array: //创建数组var arr1=Array(1,2,3)//初始化赋值数组var arr2=New Array[Int](3)//初始化指定元素为Int,长度为3不可变//遍历数组for(i<-arr1.indices)print(i)//i表示从1到arr1的长度为止的数字序列 ...
分类:
编程语言 时间:
2020-02-01 19:40:36
阅读次数:
86
import os for files in os.listdir('output'): if files.endswith(".py"): os.remove(os.path.join('output',files)) 下面是删除所有以及子目录 import os,shutil def del_f ...
分类:
编程语言 时间:
2020-01-31 21:07:43
阅读次数:
256
题目:统计所有小于非负整数 n 的质数的数量. 来源:https://leetcode-cn.com/problems/count-primes/ 法一:自己的超时代码 思路:和官方的方法事实上一样,但是代码没有用标记0 1的方法,导致很费时.删除每个质数的倍数时,都需要判断是否存在,如果是用标记0 ...
分类:
其他好文 时间:
2020-01-31 12:31:09
阅读次数:
132