- 前提:java8 以上
- 下载安装包
curl -L http://downloads.datastax.com/community/dsc-cassandra-3.0.0.tar.gz | tar xz
#或者
# wget http://downloads.datastax.com/community/dsc-cassandra-3.0.0.tar.gz
# tar -zxvf dsc-cassandra-3.0.0.tar.gz
- 配置,非root用户
#进入安装路径
mkdir cassandra-data
cd cassandra-data
mkdir data saved_caches commitlog
#修改配置文件
cd path_to_install/conf/
vi cassandra.yaml
#修改配置:
data_file_directories:
- path_to_install/cassandra-data/data
commitlog_directory: path_to_install/cassandra-data/commitlog
saved_caches_directory: path_to_install/cassandra-data/saved_caches
- 启动
#进到安装路径
cd install_location
##加上 -f 则会在前台执行
bin/cassandra ## use -f to start Cassandra in the foreground
- 验证
#进到安装路径
cd install_location
#执行工具进行检查
./bin/nodetool status