Both the Elasticsearch and Kibana archives can be extracted by using the below commands. Alternatively, simply double-clicking them should do the trick.
cd /path/to/archive/directory
tar -zxf archive.tar.gz
cd /path/to/elasticsearch
bin/elasticsearch
If you lose the password for the elastic
user, it can be reset with the following commands.
cd /path/to/elasticsearch
bin/elasticsearch-reset-password -u elastic
If you need to generate a new enrollment token for Kibana, this can be done with the following commands.
cd /path/to/elasticsearch
bin/elasticsearch-create-enrollment-token --scope kibana
macOS contains a security feature named Gatekeeper, which prevents Kibana from starting up. We can disable it for just the Kibana directory, which allows Kibana to start up correctly. Simply use the following command to do so.
xattr -d -r com.apple.quarantine /path/to/kibana
cd /path/to/kibana
bin/kibana