Created
July 15, 2018 08:41
-
-
Save jibinpb/92b5cfb7c489bbed39e355add43ba8c1 to your computer and use it in GitHub Desktop.
Install Cassandra in CentOS
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
## 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