1、查看所有索引 GET _cat/indices 2、创建一个新的索引 PUT /test { "mappings": { "_doc": { "properties": { "id": {"type": "keyword"}, "title": {"type": "keyword"}, "esD ...
分类:
其他好文 时间:
2021-06-21 21:11:29
阅读次数:
0
pom.xml配置 需要添加spring-boot-starter-actuator很重要不要然报错 <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-nacos-co ...
分类:
其他好文 时间:
2021-06-21 21:11:16
阅读次数:
0
Android使用开源的与操作系统无关的SQL数据库——SQLite 一:在命令行下创建数据库: 1.启动模拟器后,打开命令行,执行adb shell 2.进入所在工程目录 3.执行sqlite3 mydb创建数据库文件 :表示结尾,--表示注解 二:包Android.database.sqlite ...
分类:
数据库 时间:
2021-06-21 20:47:00
阅读次数:
0
升级原因:为了在本地安装跟公司测试服一样的服务器环境,需要把本地PHP版本从5.4升级到5.5。 操作步骤: 1. 查看当前centos版本 [root@localhost ~]# cat /etc/redhat-release 2. 根据当前centos版本,更换对应版本的RPM 源(软件仓库) ...
分类:
Web程序 时间:
2021-06-21 20:30:16
阅读次数:
0
server: port: 8080 spring: application: name: gateway cloud: gateway: routes: - id: guo-system4 uri: https://www.baidu.com predicates: - Query=smile # ...
分类:
其他好文 时间:
2021-06-21 20:30:01
阅读次数:
0
url的hash和HTML5的history URL的hash URL的hash也就是锚点(#), 本质上是改变window.location的href属性. 我们可以通过直接赋值location.hash来改变href, 但是页面不发生刷新 history H5的history接口是HTML5新增 ...
分类:
Web程序 时间:
2021-06-21 20:05:45
阅读次数:
0
函数获取使用高德天气接口 import requests 爬取数据 def read_location(name): centerurl = "https://restapi.amap.com/v3/config/district?keywords=" centerurl2 = "&subdistr ...
分类:
其他好文 时间:
2021-06-21 20:05:25
阅读次数:
0
1、创建topic 使用 kafka-topics.sh脚本 kafka-topics.sh --create --partitions 3 --replication-factor 2 --topic test --zookeeper hadoop01:2181,hadoop02:2181,had ...
分类:
其他好文 时间:
2021-06-20 18:38:22
阅读次数:
0
首先检查Nginx是否启动成功 [root@web1 extra]# ps aux|grep nginx (一切正常)root 3269 0.0 0.1 46764 1464 ? Ss 09:34 0:00 nginx: master process nginx -c /application/ng ...
分类:
其他好文 时间:
2021-06-20 18:09:23
阅读次数:
0
今天完成内容: 开发家庭小账本 1.编写代码 package com.edu.entity; import java.util.Date; public class User {private int id;private String username;private String useruse ...
分类:
其他好文 时间:
2021-06-20 17:56:05
阅读次数:
0