ELK 日誌管理平臺之 ElasticSearch 安裝

1,安裝環境node

System Release Version:Ubuntu 14.04.4linux

Kernel Version: 4.2.0-27-genericubuntu

安裝ElasticSearchvim

alvin@ubuntu:~$ llsession

total 209300elasticsearch

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

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

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

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

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.



先試試,看發表出來是怎樣的,而後我再修改。

相關文章
相關標籤/搜索