This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
elk [2020/09/11 14:08] val создано |
elk [2020/09/11 15:44] val |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== ELK ====== | ====== ELK ====== | ||
+ | * [[https://www.elastic.co/downloads/elasticsearch|Download Elasticsearch]] | ||
+ | * [[https://stackoverflow.com/questions/40766301/run-elastic-search-as-root-user|Run elastic search as root user | ||
+ | <code> | ||
+ | # wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.9.1-amd64.deb | ||
+ | |||
+ | # dpkg -i elasticsearch-7.9.1-amd64.deb | ||
+ | |||
+ | # cat /etc/default/elasticsearch | ||
+ | 9a10 | ||
+ | > JAVA_HOME=/usr/share/elasticsearch/jdk/ | ||
+ | 52a54,58 | ||
+ | > | ||
+ | > START_DAEMON=true | ||
+ | > ES_USER=elasticsearch | ||
+ | > ES_GROUP=elasticsearch | ||
+ | |||
+ | # cat /etc/elasticsearch/elasticsearch.yml | ||
+ | 55a56 | ||
+ | > http.host: 0.0.0.0 | ||
+ | |||
+ | |||
+ | chown elasticsearch:elasticsearch -R /usr/share/elasticsearch | ||
+ | chown elasticsearch:elasticsearch -R /var/log/elasticsearch | ||
+ | chown elasticsearch:elasticsearch -R /var/lib/elasticsearch | ||
+ | chown elasticsearch:elasticsearch -R /etc/default/elasticsearch | ||
+ | chown elasticsearch:elasticsearch -R /etc/elasticsearch | ||
+ | |||
+ | |||
+ | systemctl enable elasticsearch | ||
+ | systemctl start elasticsearch | ||
+ | systemctl status elasticsearch | ||
+ | |||
+ | |||
+ | |||
+ | </code> |