Created
April 21, 2020 00:42
-
-
Save Zobber/f4573d824785091aa2a561aba38485d8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #### Install JAVA | |
| JAVA 11 | |
| apt-get install default-jre | |
| nano /etc/environment | |
| add -> JAVA_HOME"/usr7lib/jvm/java-11-openjdk-amd64/" | |
| source /etc/environment | |
| echo $JAVA_HOME | |
| #### Install ElasticSearch and Test | |
| wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - | |
| echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list | |
| sudo apt-get update && sudo apt-get install elasticsearch | |
| sudo update-rc.d elasticsearch defaults 95 10 | |
| sudo -i service elasticsearch start | |
| curl localhost:9200 | |
| #### Install Kibana and Test | |
| apt-get install kibana | |
| nano /etc/kibana/kibana.yml | |
| define -> server.host: 0.0.0.0 | |
| define _> server.name:"servername" | |
| systemctl enable kibana | |
| systemctl start kibana.service | |
| curl -I http://localhost:5601/status | |
| #### Security | |
| stop kibana | |
| stop elasticsearch | |
| nano /etc/elasticsearch/elasticsearch.yml | |
| add -> xpack.security.enabled:true | |
| cd /usr/share/elasticsearch | |
| ./bin/elasticsearch-setup-passwords auto | |
| nano /etc/kibana/kibana.yml | |
| define -> elasticsearch.username:"kibana" | |
| define -> elasticsearch.password:"password" | |
| sync |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment