ELK框架的搭建基于ubuntu14.04
2017-04-29 15:52
267 查看
elasticsearch的安装
elasticsearch需要java 8的支持,应先安装jdk1.8
1.下载并安装.tar.gz
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.3.2.tar.gz
tar -xzf elasticsearch-5.3.2.tar.gz
cd elasticsearch-5.3.2
2.运行elasticsearch
在elasticsearch文件夹根目录下
./bin/elasticsearch
elasticsearch的安装过程还是很简单的,一下列出一些常见的问题与解决方法
[WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.RuntimeException: can not run elasticsearch as root
elasticsearch不允许使用root启动,su到普通用户即可
main ERROR Could not register mbeans java.security.AccessControlException: access denied
因为elasticsearch需要读写配置文件,应给予elasticsearch文件夹权限
su
chmod -R 777 elasticsearch-5.3.2
正常运行elasticsearch后,在浏览器地址栏输入localhost:9200即可查看状态,可是此时通过外网 并不能访问
修改config/elasticsearch.yml配置
network.host:0.0.0.0
即可成功通过外网访问
ERROR: bootstrap checks failed
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
ERROR: bootstrap checks failed elastic_1 | max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
以上两个问题总会一起出现
1.通过root用户修改配置文件sysctl.conf
vim /etc/sysctl.conf
添加配置 vm.max_map_count=655360
执行命令 sysctl -p
2.添加文件
vim /etc/security/limits.d/90-nproc.conf
添加配置
* hard nproc 64000
* soft nproc 64000
3.修改配置文件 /etc/security/limits.conf
* soft nofile 65536
* hard nofile 65536
* soft nproc 2048
* hard nproc 2048
即可解决
elasticsearch需要java 8的支持,应先安装jdk1.8
1.下载并安装.tar.gz
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.3.2.tar.gz
tar -xzf elasticsearch-5.3.2.tar.gz
cd elasticsearch-5.3.2
2.运行elasticsearch
在elasticsearch文件夹根目录下
./bin/elasticsearch
elasticsearch的安装过程还是很简单的,一下列出一些常见的问题与解决方法
[WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.RuntimeException: can not run elasticsearch as root
elasticsearch不允许使用root启动,su到普通用户即可
main ERROR Could not register mbeans java.security.AccessControlException: access denied
因为elasticsearch需要读写配置文件,应给予elasticsearch文件夹权限
su
chmod -R 777 elasticsearch-5.3.2
正常运行elasticsearch后,在浏览器地址栏输入localhost:9200即可查看状态,可是此时通过外网 并不能访问
修改config/elasticsearch.yml配置
network.host:0.0.0.0
即可成功通过外网访问
ERROR: bootstrap checks failed
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
ERROR: bootstrap checks failed elastic_1 | max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
以上两个问题总会一起出现
1.通过root用户修改配置文件sysctl.conf
vim /etc/sysctl.conf
添加配置 vm.max_map_count=655360
执行命令 sysctl -p
2.添加文件
vim /etc/security/limits.d/90-nproc.conf
添加配置
* hard nproc 64000
* soft nproc 64000
3.修改配置文件 /etc/security/limits.conf
* soft nofile 65536
* hard nofile 65536
* soft nproc 2048
* hard nproc 2048
即可解决
相关文章推荐
- 基于Ubuntu 14.04的机器学习环境搭建
- 开源深度学习框架Caffe在Ubuntu14.04下的搭建
- Ubuntu14.04下搭建CPU版本的基于anaconda2的深度学习框架tensorflow
- 基于nginx+HLS的流媒体服务器搭建(Ubuntu 14.04系统)
- Ubuntu14.04搭建ELK日志分析系统
- 基于Ubuntu14.04的RK3288_PopMetal Android开发环境搭建过程小记
- ubuntu14.04 下基于Nginx搭建mp4/flv流媒体服务器
- 基于Ubuntu 14.04的Android Build Server搭建
- Ubuntu 14.04搭建ELK日志分析系统(Elasticsearch+Logstash+Kibana)
- ssm框架学习---使用ubuntu环境下基于Intel idea搭建ssm环境一些问题总结
- 基于ubuntu14.04搭建OpenWrt开发环境
- 基于ubuntu14.04的Mobilenet_SSD环境搭建
- 嵌入式环境搭建之基于Ubuntu 14.04下NFS安装配置
- Caffe搭建手记_基于Ubuntu14.04LTS
- linux ffmpeg开发环境搭建(基于ubuntu14.04和ffmpeg3.2)
- ubuntu快速搭建基于pyton的Flask框架环境
- PIXHAWK开发环境搭建(基于Ubuntu14.04系统)
- Ubuntu14.04下基于MPICH2框架的集群搭建