ElasticSearch-Head安装配置

简介

ElasticSearch是一个基于Lucene的搜索服务器。它提供了一个分布式多用户能力的全文搜索引擎,基于RESTful web接口。Elasticsearch是用Java开发的,并作为Apache许可条款下的开放源码发布,是当前流行的企业级搜索引擎。设计用于云计算中,能够达到实时搜索,稳定,可靠,快速,安装使用方便。

安装

1.elasticSearch安装

在官网下载https://www.elastic.co/cn/
节压后点击elasticSearch.bat即可运行,注意对应java版本
访问127.0.0.1:9200看到json数据则成功

2.图形化工具安装:

图形化工具https://github.com/mobz/elasticsearch-head

  1. node.js环境,下载node.js安装
    1.行npm install -g grunt-cli
    2.然后npm install
  2. 开启在bin目录执行grunt server;
    http://localhost:9100/即可访问
  3. 解决跨域问题
    在elasticSearch下的config/elasticsearch.yml添加
    http.cors.enabled: true
    http.cors.allow-origin: “*”
    重启即可
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
Elasticsearch-head是一个基于Web的Elasticsearch客户端,可以用来查询、管理、监控Elasticsearch集群。下面是在Linux系统上安装elasticsearch-head的步骤: 1. 安装Node.js和NPM Elasticsearch-head需要Node.js和NPM才能运行。如果你的系统中没有安装Node.js和NPM,可以使用以下命令安装: ``` sudo apt-get install nodejs sudo apt-get install npm ``` 2. 下载elasticsearch-head 你可以从elasticsearch-head的github仓库中下载最新的代码。使用以下命令将代码下载到你的Linux系统中: ``` git clone git://github.com/mobz/elasticsearch-head.git ``` 3. 安装依赖 进入elasticsearch-head的目录,使用以下命令安装依赖: ``` cd elasticsearch-head npm install ``` 4. 修改配置文件 在elasticsearch-head目录下,找到Gruntfile.js文件,并打开它。找到以下代码: ``` connect: { server: { options: { hostname: 'localhost', port: 9100, base: '.', keepalive: true } } }, ``` 将其中的hostname改为你的Elasticsearch服务器的IP地址或域名,port改为9200。修改后的代码如下: ``` connect: { server: { options: { hostname: 'your-elasticsearch-server-ip', port: 9200, base: '.', keepalive: true } } }, ``` 5. 启动elasticsearch-headelasticsearch-head目录下,使用以下命令启动elasticsearch-head: ``` npm run start ``` 6. 访问elasticsearch-head 在浏览器中输入以下地址,访问elasticsearch-head: ``` http://your-elasticsearch-server-ip:9100 ``` 如果一切正常,你应该能够看到elasticsearch-head的界面,并能够管理你的Elasticsearch集群了。
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值