首页 > 代码库 > ELK 日志管理平台之 ElasticSearch 安装
ELK 日志管理平台之 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 安装