kibana-5.2.2安装

下载地址

https://www.elastic.co/downloads/kibana

安装

直接解压到 /usr/local/kibana-5.2.2-linux-x86_64

配置

测试

nginx代理

如果要在外网访问kibana的,最好通过nginx代理,这样的话可以加个账号密码,相对来说安全点吧

生成密码

 

logstash-5.2.2安装

下载地址

https://www.elastic.co/downloads/logstash

安装

直接解压到 /usr/local/logstash-5.2.2

配置

启动

./logstash -f logstash.conf

 

elasticsearch-5.2.2安装

linux版本

CentOS release 6.6 (Final)

删除linux自带的Java

yum remove java*

安装Java

点击:下载地址

选择:linux x64  jdk-8u40-linux-x64.rpm

rpm -ivh jdk-8u121-linux-x64.rpm  (–install–verbose–hash)

JDK默认安装在/usr/java中

查看是否安装成功

java -version

配置环境变量

执行source命令使配置生效

source /etc/profile

安装Elasticsearch

点击:下载地址

解压到:/usr/local/elasticsearch-5.2.2

elasticsearch不允许root启动,所以需要新增一个用户

启动elasticsearch

打开另外个终端进行测试

报错与配置

如果报类似 unable to install syscall filter:  seccomp unavailable: requires kernel 3.5+ with CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER compiled in这样的错误,先忽略它,可能是linux版本过低的原因。

报 Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000085330000, 2060255232, 0) failed; error=’Cannot allocate memory’ (errno=12) 错误

 

报 ERROR: bootstrap checks failed 错误

报 max number of threads [1024] for user [lish] likely too low, increase to at least [2048] 错误

报 max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144] 错误

报 ERROR: bootstrap checks failed system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk 错误

elasticsearch.yml配置