https://www.elastic.co/guide/en/kibana/current/brew.html https://www.elastic.co/guide/en/elasticsearch/reference/current/brew.html
brew tap elastic/tap
brew install elastic/tap/elasticsearch-full
brew install elastic/tap/kibana-full
brew services start elastic/tap/elasticsearch-full
brew services start elastic/tap/kibana-full
sudo apt-get install apt-transport-https
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
sudo add-apt-repository "deb https://artifacts.elastic.co/packages/7.x/apt stable main"
sudo apt-get update
sudo apt-get install elasticsearch
# Edit the Elasticsearch config file
sudo vim /etc/elasticsearch/elasticsearch.yml
# Set the following values
# Replace the IP address with your servers
# If running on a remote host, use that host's IP
network.host: 165.227.182.118 # Or 0.0.0.0 if running locally
cluster.name: myCluster1
node.name: "myNode1"
cluster.initial_master_nodes: ["myNode1"]
# Enable and start ES:
sudo /bin/systemctl enable elasticsearch.service
sudo systemctl start elasticsearch.service
# To stop it:
sudo systemctl stop elasticsearch.service
# Test it:
curl -X GET "http://localhost:9200/?pretty"
# Now install Kibana
sudo apt-get install kibana
# Edit Kibana config
vim /etc/kibana/kibana.yml
server.host: "165.227.182.118" # Or "localhost" if running locally
elasticsearch.hosts: ["http://165.227.182.118:9200"]
server.name: "165.227.182.118" # Or "localhost" if running locally
# Start Kibana
sudo /bin/systemctl enable kibana.service
sudo systemctl start kibana.service