上接es安装;
https://www.elastic.co/cn/downloads/
kibana的安装,解压后就可以直接启动,不能用root启动,但可以通过修改配置用root启动,否则会报错”Kibana should not be run as root. Use –allow-root to continue.”
wget https://artifacts.elastic.co/downloads/kibana/kibana-7.12.0-linux-x86_64.tar.gz
tar -zxvf kibana-7.12.0-linux-x86_64.tar.gz -C /usr/local
ln -sf /usr/local/kibana-7.12.0-linux-x86_64 /usr/local/kibana
mkdir -p /data/kibana/logs/
修改配置vim /usr/local/kibana/config/config/kibana.yml
:
#kibana的监听IP和端口
server.port: 5601
server.host: "192.168.140.197"
#配置elasticsearch连接地址
elasticsearch.hosts: ["http://192.168.140.197:9200","http://192.168.140.198:9200","http://192.168.140.199:9200"]
#配置日志地址
logging.dest: /data/kibana/logs/vodjk.log
启动:
./bin/knohup ./bin/kibana > /dev/null 2>&1 &