Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cassandra/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在CentOS 7上安装Apache Cassandra?_Cassandra - Fatal编程技术网

如何在CentOS 7上安装Apache Cassandra?

如何在CentOS 7上安装Apache Cassandra?,cassandra,Cassandra,Cassandra安装文档提到从tarball或Debian包进行安装。既然DataStax不提供发行版,有没有办法使用yum安装它?据我所知,CentOS使用RPM作为软件包格式。看看: 从RPM软件包安装 对于,指定主版本号,不带点,并附加x。最新的是311x。对于旧版本,可以是30x、22x或21x中的一个 (并非所有版本的Apache Cassandra都可用,因为构建RPM是该项目的最新添加。) 将Cassandra的Apache存储库添加到/etc/yum.repos.d/Cassa

Cassandra安装文档提到从tarball或Debian包进行安装。既然DataStax不提供发行版,有没有办法使用yum安装它?

据我所知,CentOS使用RPM作为软件包格式。看看:

从RPM软件包安装

对于,指定主版本号,不带点,并附加x。最新的是311x。对于旧版本,可以是30x、22x或21x中的一个

(并非所有版本的Apache Cassandra都可用,因为构建RPM是该项目的最新添加。)

将Cassandra的Apache存储库添加到/etc/yum.repos.d/Cassandra.repo,例如最新的3.11版本:

[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
安装Cassandra,接受gpg密钥导入提示:

sudo yum install cassandra
启动Cassandra(不会自动启动):

基于Systemd的发行版可能需要运行一次systemctl后台程序重新加载,以使Cassandra作为Systemd服务可用。这应该通过运行上面的命令自动发生

使Cassandra在重新启动后自动启动:

chkconfig cassandra on
请注意,Apache Cassandra的官方RPM仅在最近可用,尚未在所有平台上进行全面测试。我们感谢您的反馈和支持,并请您在相应的Jira通知单中公布任何问题的详细信息。

可能吗?
chkconfig cassandra on