Elasticsearch下载安装与插件安装

前言:今天是个令人愉悦的星期五,而且明天还不加班。


下载:

    地址:https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.1.1.msi

安装(windows):

    步骤:

        1.安装目录爱咋咋地

    

    2.不安装为系统服务,改为手动启动


    3.这里爱改不改


    4.这个页面啥都别选,选了第一个反正我是失败了。



启动运行:

        1.我这里直接粗犷的到\elasticsearch\6.1.1\bin下,手动点击elasticsearch.exe执行文件(人家都是命令行启动),出现started说明启动成功啦,然后就是地址localhost:9200检验一下。



安装elasticsearch-head插件:

    网上都是各种github地址下载,但是_(:з」∠)_,我翻不出去T_T,然后就给大家提供一个elasticsearch-head插件以及其他插件的下载地址elasticsearch相关插件

安装head之前的必备操作:

  •     nodejs:不解释
  •     grunt:在nodejs目录路径下,shift+右键,选择在此处打开命令窗口,指令:npm install -g grunt  -cli
   

 安装head:

        cmd命令窗口下调到elasticsearch-head-master目录下,执行:npm install(之前没有安装grunt就会报错)


   修改配置:

        因为es和head插件本身是独立进程,访问存在跨域问题。需要修改配置\elasticsearch\6.1.1\config\elasticsearch.yml,新增如下内容:

http.cors.enabled: true
http.cors.allow-origin: "*"


运行:

    重启es,然后再elasticsearch-head-master目录下,执行npm run start,然后访问localhost:9100。



猜你喜欢

转载自blog.csdn.net/kiana168/article/details/80776014
今日推荐