- 博客(17)
- 资源 (7)
- 问答 (1)
- 收藏
- 关注
原创 closed: [index_closed_exception] closed, with { index_uuid=“dTwMZmOvQc-XI-XD& index=\“.kibana\“ }“,“
closed: [index_closed_exception] closed, with { index_uuid="dTwMZmOvQc-XI-XD& index=\".kibana\" }","statusCode":400,"error":"Bad Request"} 将.kibana索引打开,就可访问kibana 可以使用postman工具,记得是post请求.执行http://localhost:9200/.kibana/_open即可 ...
2020-08-17 09:13:37
1757
5
原创 总结:elasticsearch和ik分词器结合使用遇到的坑!自定义分词,远程热加载自定义分词
第一个坑本地自定义分词无法加载到es,或者加载了也无法使用. 注意你所建的dic文件路径是否正确,文件格式是否为(UTF-8-BOM) 修改IKAnalyzer.cfg.xml: <entry key="ext_dict">custom/mydic.dic</entry> 重庆es: [2020-08-12T10:20:51,226][INFO ][o.w.a.d.Monitor ] [Dict Loading] D:\software\elastic
2020-08-12 10:39:51
2292
2
原创 使用nginx搭建Tomcat集群.实现负载均衡
准备3个Tomcat并修改配置文件server.xml 第一个Tomcat <Server port="8007" shutdown="SHUTDOWN"> <Connector port="8083" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> <Connector port="8011" protocol="
2020-08-11 15:55:31
312
原创 在spring boot中如何自定义创建Elasticsearch 索引的mapping和setting文件,并使用多种分词器
es如何安装插件请自行解决.我使用了ik分词和拼音分词器(https://github.com/medcl/elasticsearch-analysis-pinyin) 在resources目录下创建所需要的json文件 enterprise-setting.json { "index": { "number_of_shards" : "10", "number_of_replicas" : "1", "analysis" : { "analyzer" :
2020-08-06 18:17:51
4089
3
原创 Docker操作mongoDB数据库,创建数据库问题
couldn't add user: command createUser requires authentication : _getErrorWithCode@src/mongo/shell/utils.js:25:13 分析,遇到此问题可能是创建数据库的时候没有获取到权限. 进入容器: root@VM-0-15-ubuntu:/# docker exec -it mongo mongo admin MongoDB shell version v4.2.5 connecting to: mong
2020-08-03 16:02:35
1125
原创 记录,动态获取Nacos配置文件的属性
注意: 首先是配置文件不要放在shared-configs,这个配置项的意思是公共配置,放在这个配置项里的配置文件都不会热更新.所有你获取的时候不会改变.需要热更新的配置文件都应该放在extension-configs extension-configs: - data-id: kaikeba-common-config.yaml refresh: true # shared-configs: # - data
2020-07-29 17:54:25
1898
1
原创 在docker中使用nginx搭建文件服务器
至于docker中下载nginx镜像就不多说了,直接进入主题: docker run --name nginx -d -p 8888:80 -v /home/files:/files nginx:1.19.0 一些简单的参数我就不说了,只说重点:/home/files:/files,将容器中的/files挂载到本机的/home/files.意思就是访问容器中的files其实就是访问/home/files. docker cp default.conf nginx:/etc/nginx/conf.d
2020-07-13 10:12:21
599
原创 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:testCompile (default-tes
2019-12-12 20:28:48
926
原创 Docker下搭建Harbor。容器内登陆报错:Error response from daemon: Get https://192.168.2.101/v2/: dial tcp 192.168.
Error response from daemon: Get https://192.168.2.101/v2/: dial tcp 192.168.2.101:443: connect: connection refused 网上一大推方法但是都不详细。在此记录下这个坑。 /etc/docker/daemon.json 在这个文件中添加:{ "insecure-registries":[...
2019-12-12 16:39:30
10675
7
原创 记录一个maven的坑。
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/...
2019-11-18 21:22:01
219
原创 Angular push元素出错。解决方法:
网上查了很多方法,没用。通过自己的瞎折腾。 首先定义一个数组: private contacts:Array<{contact: string,email:string,phone:string }> = []; //用户联系人 赋值给它: const contcatInfo={ contact:'', email:'', pho...
2019-09-27 09:33:10
892
原创 Angular8学习中的坑!import 'rxjs/add/operator/map'和访问JSON数据404.在此记录下。
在使用map进行对数据返回的Response处理中,发现导入import'rxjs/add/operator/map'没有报错。 import 'rxjs/add/operator/map' getData(){ this.http.get("../public/person.json") .map((res)=>res.json()) .subscribe...
2019-09-24 22:23:17
876
原创 遇到从数据库取出时间这样怎么办?2019-01-25T01:30:00.000+0000
在下从数据库取得时间变成2019-01-25T01:30:00.000+0000 面向百度编程了,也没找到答案。 前端可以解决: var dataee=new Date("2019-01-25T01:30:00.000+0000").toJSON(); console.log(dataee); var date = new Date(+new Date(dataee)+8*360...
2019-04-02 09:20:43
13224
6
原创 三天了,终于跳坑了。
### Error updating database. Cause: java.sql.SQLException: Could not retrieve transaction read-only status from server ### The error may involve cz.java.mapper.AdminMapper.addAdminNav-Inline ### The ...
2018-08-19 17:05:07
540
Cannot read property '__ob__' of undefined
2021-01-30
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅