前言
简介
- Cassandra,预言女神.
- Apache Cassandra,Facebook开源的、分布式、无中心、弹性可扩展、高可用、容错、一致性可调以及面向行的数据库,许多知名厂商是她的用户,如Apple、Netflix、饿了么等.
Linux
部署
RPM
笔者环境是CentOS 6.8
vim /etc/yum.repos.d/cassandra.repo # 创建repo
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
sudo yum -y install cassandra # 常规安装
完成,无error,似乎很顺利。
service cassandra start # 启动女神
Bingo!
chkconfig cassandra on # 使女神自动启动,就这一句能搞定?
执行了,静观其变
好了,官网的部署教程至此为止。附源码:git clone https://gitbox.apache.org/repos/asf/cassandra.git
- 配置文件地址:
/etc/cassandra/conf
,vim cassandra.yaml
修改配置,如端口、监听Host. - 启动后的进程↓
- 开启远程访问
只需修改一处↓
要就是全改,反正再改listen_address就启动不了。
用客户端工具连接成功↓
其它方式部署
见http://cassandra.apache.org/doc/latest/getting_started/installing.html