用yum安装,配置yum源
[root@localhost ~]# cat >> /etc/yum.repos.d/cassandra.repo <<EOF
> [cassandra]
> name=Apache Cassandra
> baseurl=https://downloads.apache.org/cassandra/redhat/311x/
> gpgcheck=1
> repo_gpgcheck=1
> gpgkey=https://downloads.apache.org/cassandra/KEYS
> EOF
[root@localhost ~]# yum install cassandra