ElasticSearch-6.5.3系列 安装篇二

准备资料:JDK ElasticSearch-6.5.3 Kibana Logstash

链接:https://pan.baidu.com/s/1TMpMvXjMvUbpVnpfBIJDXA 
提取码:e1jz 
安装环境:CentOS 7.3

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.5.3.tar.gz
wget https://artifacts.elastic.co/downloads/kibana/kibana-6.5.3-linux-x86_64.tar.gz
wget https://artifacts.elastic.co/downloads/logstash/logstash-6.5.3.tar.gz

第一步:安装Kibana

新来的朋友,转上一章:ElasticSearch-6.5.3系列 安装篇一

还是一样,此次我们还是用es账号来做操作

[es@izwz99z5o9dc90keftqhlrz ~]$ tar -zxvf kibana-6.5.3-linux-x86_64.tar.gz 

[es@izwz99z5o9dc90keftqhlrz ~]$ ll
total 469052
drwxrwxr-x  3 es es      4096 Oct 23 20:49 elastic
-rwxrwxr-x  1 es es 113336066 Oct 23 20:46 elasticsearch-6.5.3.tar-1.gz
drwxrwxr-x 11 es es      4096 Dec  7  2018 kibana-6.5.3-linux-x86_64
-rwxrwxr-x  1 es es 206664008 Oct 23 20:46 kibana-6.5.3-linux-x86_64.tar.gz
-rwxrwxr-x  1 es es 160285660 Oct 23 20:45 logstash-6.5.3.tar.gz
[es@izwz99z5o9dc90keftqhlrz ~]$ cd kibana-6.5.3-linux-x86_64
[es@izwz99z5o9dc90keftqhlrz kibana-6.5.3-linux-x86_64]$ 

第二步:配置Kibana

[es@izwz99z5o9dc90keftqhlrz kibana-6.5.3-linux-x86_64]$ vi config/kibana.yml

server.port: 5601
server.host: "0.0.0.0"
elasticsearch.url: "http://localhost:9200"
kibana.index: ".kibana"

当Elastic、Kibana安装在一起,直接用127.0.0.1

第三步:启动Kibana

控制台式:测试时使用,看是否有问题
[es@izwz99z5o9dc90keftqhlrz bin]$ ./kibana

后台运行式:生成时用
[es@izwz99z5o9dc90keftqhlrz bin]$ nohup ./kibana &

 启动成功日志:

  log   [14:53:51.210] [warning][admin][elasticsearch] No living connections
  log   [14:53:51.211] [warning][admin][elasticsearch] Unable to revive connection: http://localhost:9200/
  log   [14:53:51.211] [warning][admin][elasticsearch] No living connections
  log   [14:53:51.814] [warning][admin][elasticsearch] Unable to revive connection: http://localhost:9200/
  log   [14:53:51.815] [warning][admin][elasticsearch] No living connections
  log   [14:53:54.546] [info][status][plugin:elasticsearch@6.5.3] Status changed from red to green - Ready
  log   [14:53:54.580] [info][migrations] Creating index .kibana_1.
  log   [14:53:54.811] [info][license][xpack] Imported license information from Elasticsearch for the [data] cluster: mode: basic | status: active
  log   [14:53:54.811] [info][status][plugin:xpack_main@6.5.3] Status changed from red to green - Ready
  log   [14:53:54.812] [info][status][plugin:searchprofiler@6.5.3] Status changed from red to green - Ready
  log   [14:53:54.813] [info][status][plugin:ml@6.5.3] Status changed from red to green - Ready
  log   [14:53:54.817] [info][status][plugin:tilemap@6.5.3] Status changed from red to green - Ready
  log   [14:53:54.818] [info][status][plugin:watcher@6.5.3] Status changed from red to green - Ready
  log   [14:53:54.819] [info][status][plugin:index_management@6.5.3] Status changed from red to green - Ready
  log   [14:53:54.819] [info][status][plugin:rollup@6.5.3] Status changed from red to green - Ready
  log   [14:53:54.820] [info][status][plugin:graph@6.5.3] Status changed from red to green - Ready
  log   [14:53:54.821] [info][status][plugin:grokdebugger@6.5.3] Status changed from red to green - Ready
  log   [14:53:54.821] [info][status][plugin:logstash@6.5.3] Status changed from red to green - Ready
  log   [14:53:54.821] [info][status][plugin:beats_management@6.5.3] Status changed from red to green - Ready
  log   [14:53:54.822] [info][status][plugin:reporting@6.5.3] Status changed from red to green - Ready
  log   [14:53:54.822] [info][kibana-monitoring][monitoring-ui] Starting monitoring stats collection
  log   [14:53:54.825] [info][status][plugin:security@6.5.3] Status changed from red to green - Ready
  log   [14:53:55.656] [info][migrations] Pointing alias .kibana to .kibana_1.
  log   [14:53:55.761] [info][migrations] Finished in 1181ms.
  log   [14:53:55.763] [info][listening] Server running at http://0.0.0.0:5601
  log   [14:53:56.586] [info][status][plugin:spaces@6.5.3] Status changed from red to green - Ready

第四步:问题处理

端口被占用:
[es@izwz99z5o9dc90keftqhlrz bin]$ ./kibana
 error  [14:47:18.357] [fatal][root] Error: Port 5601 is already in use. Another instance of Kibana may be running!
    at Root.shutdown (/home/es/kibana-6.5.3-linux-x86_64/src/core/server/root/index.js:53:26)
    at Root.start (/home/es/kibana-6.5.3-linux-x86_64/src/core/server/root/index.js:45:24)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)
    at Function.Module.runMain (module.js:696:11)
    at startup (bootstrap_node.js:204:16)
    at bootstrap_node.js:625:3

 FATAL  Error: Port 5601 is already in use. Another instance of Kibana may be running!

解决:找到占用的进程,干掉
[es@izwz99z5o9dc90keftqhlrz bin]$ fuser -n tcp 5601
5601/tcp:            31210
[es@izwz99z5o9dc90keftqhlrz bin]$ kill -9 31210
[es@izwz99z5o9dc90keftqhlrz bin]$




启动不了,要你搞nodejs什么的
[elastic@izwz99z5o9dc90keftqhlrz bin]$ ./kibana
  log   [08:54:45.397] [info][optimize] Optimizing and caching bundles for ml, stateSessionStorageRedirect, status_page, timelion, graph, monitoring, space_selector, login, logout, dashboardViewer, apm, canvas, infra and kibana. This may take a few minutes
Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist`
 
解决:
说什么的都有,但是我们还是要按照提示执行:
[elastic@izwz99z5o9dc90keftqhlrz bin]$ npm update caniuse-lite browserslist

结果是不行的。然后 重点是然后
remove kibana,然后重新装一下,配置:两分钟之后,启动成功。

原因:可能是上一次你安装时,你的nodejs执行不了,然后tar失败导致的。

第五步:外网访问

阿里云的朋友,自己记得开端口组策略:5601端口

第六步:访问使用

http://47.106.213.719:5601  

http://IP:5601

自动会跳转:http://47.106.213.179:5601/app/kibana#/home?_g=()

就可以自己玩了,这个版本的我也是初次使用。业余学习学习新版本有哪些特性。

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值