Created
October 11, 2012 12:58
-
-
Save rbf/3872107 to your computer and use it in GitHub Desktop.
Install OpsCenter from DataStax
This file contains 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
#!/bin/bash | |
# Run this script directly with: | |
# bash <(curl -sSL https://raw.github.com/gist/3872107/install-opscenter.sh) | |
OPSCENTER_NAME="opscenter" | |
OPSCENTER_TARBALL_NAME="$OPSCENTER_NAME.tar.gz" | |
echo | |
echo "Installing OpsCenter (last stable version)" | |
echo " retrieving version number..." | |
OPSCENTER_VERSION=`curl -O http://downloads.datastax.com/community/$OPSCENTER_TARBALL_NAME --write-out "%{redirect_url}" --silent | sed "s/[^0-9]*\([0-9][.0-9]*\)-free.tar.gz/\1/"` | |
echo " Version found: $OPSCENTER_VERSION" | |
echo " downloading..." | |
curl -OL http://downloads.datastax.com/community/$OPSCENTER_TARBALL_NAME | |
echo " unpacking..." | |
tar -xzf $OPSCENTER_TARBALL_NAME | |
echo " removing tarball..." | |
rm $OPSCENTER_TARBALL_NAME | |
echo | |
echo "Done!" | |
echo | |
echo "To launch the OpsCenter server in the background:" | |
echo " $OPSCENTER_NAME-$OPSCENTER_VERSION/bin/$OPSCENTER_NAME" | |
echo | |
echo "To launch the OpsCenter server in the foreground:" | |
echo " $OPSCENTER_NAME-$OPSCENTER_VERSION/bin/$OPSCENTER_NAME -f" | |
echo | |
echo "By default server runs on port 8888:" | |
echo " http://localhost:8888" | |
echo | |
echo "To setup the config file with the machine's IP:" | |
echo "sed -i.bak -e "s/127.0.0.1/`hostname -i`/" $OPSCENTER_NAME-$OPSCENTER_VERSION/conf/opscenterd.conf" | |
echo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment