Kibana 7.11安装部署
1.解压
tar -zxvf kibana-7.11.1-linux-x86_64.tar.gz
2.kibana.yml配置
vim config/kibana.yml
Kibana设置中文页面
i18n.locale: "zh-CN"
3.启动
后台启动脚本
在kibana安装目录下bin目录下面新建run.sh脚本
#!/bin/sh
nohup ./kibana &
# 修改权限
chmod 755 run.sh
Elasticsearch是不能用root用户启动的,
我们需要重新创建一下用户
# 1.创建用户
useradd jack
# 2.查看用户
vim /etc/passwd
# 3.给新建的用户权限
chown -R jack /usr/
# 4.切换用户 su是switch user缩写
su jack
# 5.启动kibana(目录对应好,此时在/usr/local/kibana-7.11.1-linux-x86_64/bin下面)
./run.sh
查看端口是否运行
fuser -n tcp 5601
访问网址: http://1x.xxx.xxx.xxx:5601/
4.报错
如果你的服务器是CentOS7 应该不会出现下面问题
如果是CentOS6 需要升级一下即可
./../node/bin/node: /lib64/libc.so.6: version `GLIBC_2.16' not found (required by ./../node/bin/node)
./../node/bin/node: /lib64/libc.so.6: version `GLIBC_2.17' not found (required by ./../node/bin/node)
./../node/bin/node: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by ./../node/bin/node)
./../node/bin/node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by ./../node/bin/node)
./../node/bin/node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by ./../node/bin/node)
./../node/bin/node: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.5' not found (required by ./../node/bin/node)
./../node/bin/node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by ./../node/bin/node)
4.1 解决libc.so.6:
参考链接:https://blog.csdn.net/huaishuming/article/details/102900254
下载:https://ftp.gnu.org/gnu/glibc/glibc-2.17.tar.gz
tar -zxvf glibc-2.17.tar.gz
cd glibc-2.15
mkdir build;
cd build
../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
make -j 8
make install
# 查看是否安装成功
strings /lib64/libc.so.6 | grep GLIBC
4.2 解决libstdc++.so.6
参考链接: https://blog.csdn.net/xiguatony/article/details/108507498
下载http://ftp.tsukuba.wide.ad.jp/software/gcc/releases/
tar -zxvf gcc-8.3.0.tar.gz
cd gcc-8.3.0/
chmod +x ./contrib/download_prerequisites
./contrib/download_prerequisites
mkdir build
cd build
chmod +x ../configure
../configure --enable-checking=release --enable-languages=c,c++ --disable-multilib
chmod +x ../move-if-change
chmod +x ../libgcc/*.sh
make && make install
cp /usr/local/lib64/libstdc++.so.6.0.25 /usr/lib64
cd /usr/lib64
rm -rf libstdc++.so.6
ln -s libstdc++.so.6.0.25 libstdc++.so.6
# 检测动态库
strings /usr/lib64/libstdc++.so.6 | grep GLIBC
node -v