【转】 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
第六周1、自建yum仓库,分别为网络源和本地源(1)vim/etc/yum.repos.d/base.repo(2)yumrepolist2、编译安装http2.4,实现可以正常访问,并将编译步骤和结果提交。(1)下载源码wgethttp://archive.apache.org/dist/httpd/httpd-2.4.25.tar.gz(2)解包及准备所需安装包tarxvfhttpd-2.4.
分类:
其他好文 时间:
2020-11-12 13:46:18
阅读次数:
8
一、在Linux中输入命令, 编辑 ens33 网卡的网络配置文件 vim /etc/sysconfig/network-scripts/ifcfg-ens33 二、在配置中作如下修改 将 BOOTPORTO=dhcp 改为 BOOTPORTO=static 原本是自动获取ip,现在改成固定ip O ...
分类:
系统相关 时间:
2020-11-11 16:49:24
阅读次数:
34
1、使用vim创建测试数据 a.txt [root@linuxprobe test]# cat a.txt 1 w e t 2 s f h 3 z c g 4 e a g 5 a f w 6 k h d 7 w f r 2、删除指定的行 [root@linuxprobe test]# sed '3d ...
分类:
系统相关 时间:
2020-11-11 15:49:36
阅读次数:
9
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
导出数据1.导出指定表的数据 mysqldump -t database -u username -ppassword --tables table_name1 table_name2 table_name3 >D:\db_script.sql 导出数据不导出结构 mysqldump -t 数据库名 ...
分类:
数据库 时间:
2020-11-10 10:55:30
阅读次数:
11
#格式 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" ...