Skip to content

Instantly share code, notes, and snippets.

@jibinpb
Created July 15, 2018 08:41
Show Gist options
  • Save jibinpb/92b5cfb7c489bbed39e355add43ba8c1 to your computer and use it in GitHub Desktop.
Save jibinpb/92b5cfb7c489bbed39e355add43ba8c1 to your computer and use it in GitHub Desktop.
Install Cassandra in CentOS
## Run as root
sudo su -
## Create file for Cassandra Repo
cat <<EOF >> /etc/yum.repos.d/cassandra.repo
[cassandra]
name=Apache Cassandra
baseurl=https://www.apache.org/dist/cassandra/redhat/311x/
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://www.apache.org/dist/cassandra/KEYS
EOF
## Intall Cassandra
sudo yum install cassandra
## Start Cassandra Servcie
service cassandra start
chkconfig cassandra on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment