Skip to content

Instantly share code, notes, and snippets.

@DaddyMoe
Created May 2, 2019 19:53
Show Gist options
  • Save DaddyMoe/f89fb04154c34e0ff5ce9d15f067c0bb to your computer and use it in GitHub Desktop.
Save DaddyMoe/f89fb04154c34e0ff5ce9d15f067c0bb to your computer and use it in GitHub Desktop.
Start Elastiscearch and kibana in the background
#!/usr/bin/env bash
#
# Start Elasticsearch and kibana in the background.
# But only for the instance of the running terminal.
#
echo "starting sonar"
~/dev/apps/sonarqube-7.7/bin/macosx-universal-64/sonar.sh start
echo "starting Elasticsearch deamon"
~/dev/apps/elasticsearch-2.4.5/bin/elasticsearch -d
echo "starting Kibana"
~/dev/apps/kibana-4.6.6-darwin-x86_64/bin/kibana &
echo "Sleeping for 10seconds"
sleep 10s
echo "opening browser"
open http://localhost:5601/app/sense
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment