1.下载apache-cassandra-0.7.8-bin.tar.gz,解压得到cassandra-0.7.8 /home/nh/Downloads/cassandra-0.7.8
2.修改/home/nh/Downloads/cassandra-0.7.8/conf/log4j-server.properties中:
log4j.appender.R.File = /home/nh/Downloads/cassandra-0.7.8/log/system.log (其中sysytem.log是一个文件而非一个目录)
3.修改/home/nh/Downloads/cassandra-0.7.8/conf/cassandra.yaml文件中:
data_file_directories:
-/home/nh/Downloads/cassandra-0.7.8/data(你存放数据的目录)
commitlog_directory: /home/nh/Downloads/cassandra-0.7.8/commitlog(你存放日志的目录)
saved_caches_directory: /home/nh/Downloads/cassandra-0.7.8/saved_caches(缓冲目录)
4.nh@55ubuntu:/home/nh/Downloads/cassandra-0.7.8/bin/cassandra 这样就可以运行cassandra了。
同时/home/nh/Downloads/cassandra-0.7.8/下多了三个目录(commitlog, data, 和saved_caches)以及
日志文件(/home/nh/Downloads/cassandra-0.7.8/log/system.log)。