`

windows下安装elasticsearch-6.4.3和elasticsearch-head插件

es 
阅读更多

 

 ElasticSearch下载地址:https://www.elastic.co/cn/downloads/elasticsearch

 

1.配置elasticsearch

修改一下es使用的参数。编辑config/elasticsearch.yml:

 

# 换个集群的名字,免得跟别人的集群混在一起

 

cluster.name: gqm

 

# 换个节点名字

 

node.name: node-001

 

# 修改一下ES的监听地址,这样别的机器也可以访问

 

network.host: 0.0.0.0

 

# 默认的就好

 

http.port: 9200

 

# 增加新的参数,这样head插件可以访问es

 

http.cors.enabled: true

 

http.cors.allow-origin: "*”

 

2.启动elasticsearch

双击elasticseatch目录下bin里的elasticsearch.bat

 

3.访问elasticsearch

在浏览器输入地址:127.0.0.1:9200

ElasticSearch-Head 下载地址:https://github.com/mobz/elasticsearch-head.git

 

二、安装Node.js步骤

https://www.cnblogs.com/zhouyu2017/p/6485265.html

 

二、安装head插件

https://www.cnblogs.com/hts-technology/p/8477258.html

 

三、安装中文分词器

https://blog.csdn.net/qq_32902741/article/details/89880696#%EF%BC%88%E4%BA%8C%EF%BC%89%E5%AE%89%E8%A3%85ElasticSearch-Head%E3%80%82

 

npm install 报错:

phantomjs-prebuilt@2.1.16 install: `node install.js`

解决方法:npm -g install phantomjs-prebuilt@2.1.16 --ignore-script

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics