编译
emqx-3.2.8编译
wget 下载东西报证书错误
mysql编译
pika在arm环境编译
kibana-6.8.4编译
elasticsearch-6.8.4编译
logstash 6.8.4 编译
-
+
首页
kibana-6.8.4编译
## kibana-6.8.4编译 - what: kibana-6.8.4在arm环境编译 - where: centos8 aarch64 - when: 2022.1.14 - who: jiaorongtao - why: 记录 - how: 安装依赖 ``` yum install net-tools passwd java java-devel vim wget -y ``` ### 1.下载 ``` wget https://artifacts.elastic.co/downloads/kibana/kibana-6.8.4-linux-x86_64.tar.gz ``` ### 2.解压 ``` [root@b156873121b1 opt]# tar -xf kibana-6.8.4-linux-x86_64.tar.gz ``` ### 3.查看node架构 ```bash [root@b156873121b1 node]# cd /opt/kibana-6.8.4-linux-x86_64/node [root@b156873121b1 node]# file ./bin/node ./bin/node: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.18, BuildID[sha1]=f135ef59856912584f7b9668f5ff750135716af3, with debug_info, not stripped ``` ### 4.删除node ```bash [root@b156873121b1 kibana-6.8.4-linux-x86_64]# rm -rf node [root@b156873121b1 kibana-6.8.4-linux-x86_64]# ``` ### 5.下载arm架构的node 不知道该版本kibana需要什么版本的node,先随便下个 ```bash [root@b156873121b1 kibana-6.8.4-linux-x86_64]# wget https://nodejs.org/dist/v10.21.0/node-v10.21.0-linux-arm64.tar.gz [root@b156873121b1 kibana-6.8.4-linux-x86_64]# tar -xf node-v10.21.0-linux-arm64.tar.gz [root@b156873121b1 kibana-6.8.4-linux-x86_64]# mv node-v10.21.0-linux-arm64 node ``` ### 6.修改kibana配置文件 ```bash vim config/kibana.yml #放开对应字段,默认注释,并把对应字段修改成如下内容: #IP地址“XX.XX.XX.XX”请根据实际填写。 server.port: 5601 server.host: "0.0.0.0" elasticsearch.hosts: "http://XX.XX.XX.XX:9200" kibana.index: ".kibana" ``` ### 7.创建账号 ```bash #kibana默认禁止root启动,需要创建账号 useradd test passwd test usermod -G test:test chown -R test:test /opt/kibana-6.8.4-linux-x86_64 ``` ### 8.切换用户 ```bash [root@b156873121b1 kibana-6.8.4-linux-x86_64]# su test [test@b156873121b1 kibana-6.8.4-linux-x86_64]$ ``` ### 9.启动 ```bash [test@b156873121b1 kibana-6.8.4-linux-x86_64]$ ./bin/kibana ata/headless_shell-linux/chrome_debug.log" log [08:59:39.122] [info][task_manager] Installing .kibana_task_manager index template version: 6080499. log [08:59:39.144] [info][task_manager] Installed .kibana_task_manager index template: version 6080499 (API version 1) log [08:59:39.607] [info][migrations] Creating index .kibana_1. log [08:59:39.731] [info][migrations] Pointing alias .kibana to .kibana_1. log [08:59:39.764] [info][migrations] Finished in 157ms. log [08:59:39.765] [info][listening] Server running at http://0.0.0.0:5601 log [08:59:40.653] [info][status][plugin:spaces@6.8.4] Status changed from yellow to green - Ready ``` ### 10.报错 问题描述:启动时报Kibana does not support the current Node.js version v10.21.0. Please use Node.js v10.15.2. ```bash [test@b156873121b1 kibana-6.8.4-linux-x86_64]$ ./bin/kibana Kibana does not support the current Node.js version v10.21.0. Please use Node.js v10.15.2. [test@b156873121b1 kibana-6.8.4-linux-x86_64]$ ``` 问题解决: ```bash 1.在kibana主目录删除node文件夹 [test@b156873121b1 kibana-6.8.4-linux-x86_64]$ rm -rf node node-v10.21.0-linux-arm64.tar.gz 2.下载node [test@b156873121b1 kibana-6.8.4-linux-x86_64]$wget https://nodejs.org/dist/v10.15.2/node-v10.15.2-linux-arm64.tar.gz [test@b156873121b1 kibana-6.8.4-linux-x86_64]$ tar -xf node-v10.15.2-linux-arm64.tar.gz [test@b156873121b1 kibana-6.8.4-linux-x86_64]$ mv node-v10.15.2-linux-arm64 node 3.重新启动 [test@b156873121b1 kibana-6.8.4-linux-x86_64]$ ./bin/kibana 4.新起窗口 [root@b156873121b1 /]# netstat -nltp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:5601 0.0.0.0:* LISTEN 398/./bin/../node/b tcp 0 0 127.0.0.1:9200 0.0.0.0:* LISTEN 155/java tcp 0 0 127.0.0.1:9300 0.0.0.0:* LISTEN 155/java ```
JRT
2022年1月14日 17:15
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
Markdown文件
分享
链接
类型
密码
更新密码