ELK企业应用-ekl快速搭建-kibana
1、安装Kibana
1.1.下载kibana安装包
tar xf kibana-6.2.4-linux-x86_64.tar.gz -C /usr/local
cd ~
1.2.修改kibana配置文件
vim /usr/local/kibana-6.2.4-linux-x86_64/config/kibana.yml#################################################
server.port: 5601
server.host: "10.0.0.131"
elasticsearch.url: "http://10.0.0.130:9200"
2、启动kibana
/usr/local/kibana-6.2.4-linux-x86_64/bin/kibana
设置开机启动。
echo "/usr/local/kibana-6.2.4-linux-x86_64/bin/kibana" >> /etc/rc.d/rc.local
3、检查端口
[root@k ~]# netstat -lntupActive Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 10.0.0.131:5601 0.0.0.0:* LISTEN 1830/node
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 936/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1082/master
tcp6 0 0 :::22 :::* LISTEN 936/sshd
tcp6 0 0 ::1:25 :::* LISTEN 1082/master
4、设置为systemctl服务
[root@k ~]# cat /etc/systemd/system/kibana.service
[Unit]
Description=kibana service[Service]
Type=simpleWorkingDirectory=/usr/local/kibana-6.2.4-linux-x86_64/bin
ExecStart=/usr/local/kibana-6.2.4-linux-x86_64/bin/kibana
ExecStop=/bin/kill -s QUIT $MAINPID
ExecReload=/bin/kill -s HUP $MAINPID[Install]
WantedBy=multi-user.target
[root@k ~]#
[root@k ~]# systemctl daemon-reload ####更新