Kibana配置和启动

2018-04-28 13:27:48 浏览数 (1)

代码语言:javascript复制
1、配置
server.port: 5601
server.host: "127.0.0.1"
server.basePath: ""
server.maxPayloadBytes: 1048576
server.name: "kibana"
elasticsearch.url: "http://192.168.56.102:9200"
elasticsearch.preserveHost: true
kibana.index: ".kibana"
kibana.defaultAppId: "discover"
elasticsearch.pingTimeout: 1500
elasticsearch.requestTimeout: 30000
pid.file: /var/run/kibana/kibana.pid
logging.dest: stdout
logging.silent: false
logging.quiet: false
logging.verbose: false
ops.interval: 5000
i18n.defaultLocale: "en"

2、启动
ps -p 1
配置开机启动
update-rc.d kibana defaults 95 10
/bin/systemctl daemon-reload
/bin/systemctl enable kibana.service
命令
service kibana stop
service kibana start
systemctl start kibana.service
systemctl stop kibana.service
3、使用nginx代理
server {
	listen 80 default_server;
	server_name kibana;
	location / {
		proxy_pass http://192.168.56.102:5601$request_uri;
		proxy_set_header Host $http_host;
	}
}
4、无法启动可以查看日志
/var/run/kibana/目录需要kibana写入权限

0 人点赞