ELK分布式事务管理——ElasticSearch

ElasticSearch

视频教程:Elastic Stack 从入门到实践

1、官方文档:https://www.elastic.co/guide/cn/elasticsearch/guide/current/foreword_id.html

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

2、elasticsearch的启动和配置:https://blog.csdn.net/u014073556/article/details/80666393

3、著名的开源爬虫程序SolrNutchGrubAperture

 

4、启动程序是哪个?讲真的bin目录下太多文件,作为新手的我还真不知道点哪一个 elasticsearch.bat

5、如何修改端口:和大多数apache项目一样 elasticsearch 的配置文件和日志文件在config文件夹中elasticsearch.yml 

默认端口 9200

#设置本机端口
network.host: localhost
http.port: 9200

#磁盘不足警告
cluster.routing.allocation.disk.threshold_enabled: false
#cluster.routing.allocation.disk.watermark.low: 30gb
#cluster.routing.allocation.disk.watermark.high: 20gb

#跨域
http.cors.enabled: true
http.cors.allow-origin: "*"

6、最终效果:

elasticsearch-head

7、elasticsearch-head安装

elasticsearch-head是一个用于管理Elasticsearch的web前端插件

https://github.com/mobz/elasticsearch-head

运行环境准备NodeJS,Grunt

npm install -g grunt-cli

git clone git://github.com/mobz/elasticsearch-head.git

cd elasticsearch-head

npm install

修改elasticsearch.yml,增加跨域的配置(需要重启es才能生效)

http.cors.enabled: true

http.cors.allow-origin: "*"

编辑elasticsearch-head/Gruntfile.js,修改服务器监听地址,connect节点增加hostname属性,将其值设置为*

connect: {

    server: {

        options: {

            hostname:'*',

            port: 9100,

            base: '.',

            keepalive: true

        }

    }

}

编辑elasticsearch-head/_site/app.js, 修改默认es地址为http://http://localhost:9200/, 也可以不修改。

 启动

npm run start

浏览器打开http://localhost:9100/

 

注意下列信息需要在Logstash连接ES上后才可以展现。

 

ES数据默认存储位置:D:\xxxxxxx\elasticsearch-5.4.3\data

 

ElasticSearch可视化工具kibana(可以监听nginx等日志) 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值