码迷,mamicode.com
首页 > 其他好文 > 详细

ELK 日志管理平台之 ElasticSearch 安装

时间:2016-11-08 17:37:45      阅读:238      评论:0      收藏:0      [点我收藏+]

标签:elasticsearch

1,安装环境

System Release Version:Ubuntu 14.04.4

Kernel Version: 4.2.0-27-generic

安装ElasticSearch

alvin@ubuntu:~$ ll

total 209300

-rw-rw-r-- 1 alvin alvin  32968292 Nov  8 11:04 elasticsearch-5.0.0.tar.gz

-rw-rw-r-- 1 alvin alvin 181352138 Nov  8 11:04 jdk-8u101-linux-x64.tar.gz

alvin@ubuntu:~$ tar xf jdk-8u101-linux-x64.tar.gz -C /opt/

alvin@ubuntu:~$ sudo vim /etc/profile

export JAVA_HOME=/opt/jdk1.8.0_101

export PATH=$JAVA_HOME/bin:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$PATH

alvin@ubuntu:~$ source /etc/profile

alvin@ubuntu:~$ sudo tar xf elasticsearch-5.0.0.tar.gz -C /opt/

alvin@ubuntu:~$ cd /opt/elasticsearch-5.0.0/

alvin@ubuntu:/opt/elasticsearch-5.0.0$ sudo chown alvin:alvin . -R

alvin@ubuntu:/opt/elasticsearch-5.0.0$ vim config/elasticsearch.yml

node.name: ubuntu

path.data: /tmp/elasticsearch/data

path.logs: /tmp/elasticsearch/logs

network.host: 192.168.1.31

http.port: 9200

alvin@ubuntu:/opt/elasticsearch-5.0.0$ sudo vim  /etc/security/limits.conf

alvin      soft    nofile     65536

alvin      hard    nofile     65536

alvin@ubuntu:/opt/elasticsearch-5.0.0$ sudo vim /etc/sysctl.conf

vm.max_map_count=262144

alvin@ubuntu:/opt/elasticsearch-5.0.0$ sudo sysctl -p

alvin@ubuntu:/opt/elasticsearch-5.0.0$ ulimit -n

1024

alvin@ubuntu:/opt/elasticsearch-5.0.0$ exit

logout

#exit this session, because you need  re-login to let the ulimit setting take effect.



先试试,看发表出来是怎样的,然后我再修改。

本文出自 “Alvin Technology Center” 博客,请务必保留此出处http://alvinwan.blog.51cto.com/11717371/1870626

ELK 日志管理平台之 ElasticSearch 安装

标签:elasticsearch

原文地址:http://alvinwan.blog.51cto.com/11717371/1870626

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!