Given an array of integers nums and an integer threshold, we will choose a positive integer divisor and divide all the array by it and sum the result ...
分类:
其他好文 时间:
2020-11-13 13:21:44
阅读次数:
33
#!/binbash rpm -qa |grep expect > /dev/null #判断是否已下载expect 若没有则下载该服务 a=`echo $?` [ ! $a -eq 0 ] && yum -y install expectif [ ! -e /root/.ssh/id_rsa.pu ...
分类:
其他好文 时间:
2020-11-13 12:52:19
阅读次数:
9
【转】 springboot整合redis-sentinel支持Cache注解 一、前提 已经存在一个redis-sentinel集群,两个哨兵分别如下: /home/redis-sentinel-cluster/sentinel-1.conf port 26379 dir "/data" sent ...
分类:
编程语言 时间:
2020-11-12 14:17:04
阅读次数:
12
查找admin集合下前10条数据: db.admin.find().limit(10); 插入数据 > post={table: "activityzones", ... fields: [ ... { ... name: "_id", ... type: "ObjectId", ... hidde ...
分类:
数据库 时间:
2020-11-12 13:54:07
阅读次数:
13
驱动安装这里以安装万兆网卡X520驱动为例,具体步骤详见Ubuntu18.04中万兆网卡X520DA2驱动安装。查看网卡信息单纯查看网卡ip信息:ifconfigifconfig-aipaddipadd|grepnet查看网卡生产厂家和型号信息:#查看基本信息:lspci#查看详细信息:lspci-vvv#3个小写的v#查看网卡信息:lspci|grep-ieth查看系统驱动相关命令lspci-v
分类:
系统相关 时间:
2020-11-12 13:39:45
阅读次数:
11
常用命令-文件搜索 1. 文本搜索grep Linux系统中grep命令是一种强大的文本搜索工具, grep允许文本文件进行模式查找, 如果找到匹配模式, grep打印包含模式的所有行 grep一般格式为: grep [-选项] '搜索字符串' 文件名 在grep命令中输入字符串参数时, 最好引号或 ...
分类:
编程语言 时间:
2020-11-11 16:09:10
阅读次数:
8
public static boolean Find(int target, int [][] array) { if(array==null||array[0].length==0){ return false;//数组非空判断 } if (array[0][0]> target) { retur ...
分类:
编程语言 时间:
2020-11-10 11:01:49
阅读次数:
10
#格式 find /data -type f find /data -type f -name "name" [root@oldboyedu ~]# find ./ -type f # 查找当前目录 并且显示隐藏文件 默认显示目录及目录以下所有符合的文件 ##按照名称查找 [root@oldboye ...
分类:
其他好文 时间:
2020-11-10 10:49:49
阅读次数:
6
MongoDB 使用 update() 和 save() 方法来更新集合中的文档。接下来让我们详细来看下两个函数的应用及其区别。 update() 方法 update() 方法用于更新已存在的文档。语法格式如下: db.collection.update( <query>, <update>, { ...
分类:
数据库 时间:
2020-11-10 10:35:54
阅读次数:
9
查找软件: # 列出软件 tasklist # 查找 tasklist|findstr "string want to find" 关闭软件: taskkill /f /t /im "name of software" ...