一、下载安装好JDK
https://blog.youkuaiyun.com/huangbaokang/article/details/79487890
二、下载Cassandra
到官网下载http://www.apache.org/dyn/closer.lua/cassandra/3.11.3/apache-cassandra-3.11.3-bin.tar.gz
[root@localhost hbk] wget http://mirrors.hust.edu.cn/apache/cassandra/3.11.3/apache-cassandra-3.11.3-bin.tar.gz
解压
[root@localhost hbk]# tar -zxvf apache-cassandra-3.11.3-bin.tar.gz
[root@localhost hbk]# cd apache-cassandra-3.11.3
[root@localhost apache-cassandra-3.11.3]# ls
bin CASSANDRA-14092.txt CHANGES.txt conf doc interface javadoc lib LICENSE.txt NEWS.txt NOTICE.txt pylib tools
三、启动服务端
[root@localhost apache-cassandra-3.11.3]# cd bin/
[root@localhost bin]# ./cassandra -R
四、启用CQL
[root@localhost bin]# ./cqlsh
Connected to Test Cluster at 127.0.0.1:9042.
[cqlsh 5.0.1 | Cassandra 3.11.3 | CQL spec 3.4.4 | Native