安装cassandra

[重点]下载orcle java8
保证java version是稳定的 “1.8.0”
否则运行cassandra时会产生报错:
[0.001s][error][logging] Error opening log file ‘/var/log/cassandra/gc.log’: Permission denied
[0.001s][error][logging] Initialization of output ‘file=/var/log/cassandra/gc.log’ using options ‘filecount=10,filesize=10485760’ failed.
Invalid -Xlog option ‘-Xlog:gc=info,heap*=trace,age*=debug,safepoint=info,promotion*=trace:file=/var/log/cassandra/gc.log:time,uptime,pid,tid,level:filecount=10,filesize=10485760’, see error log for details.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

安装步骤:
1.将Cassandra的Apache存储库添加到中/etc/apt/sources.list.d/cassandra.sources.list,例如,以获取最新的3.11版本:
echo “deb https://downloads.apache.org/cassandra/debian 311x main” | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list

2.添加Apache Cassandra存储库密钥:
curl https://downloads.apache.org/cassandra/KEYS | sudo apt-key add -
3.更新存储库:
sudo apt-get update

4.安装Cassandra:
sudo apt-get install cassandra
5 运行cassandra

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值