龙空技术网

CentOS 7上安装Apache Cassandra

鬼谷子学术 182

前言:

此刻兄弟们对“如何在centos7安装apache”可能比较着重,看官们都想要了解一些“如何在centos7安装apache”的相关内容。那么小编在网摘上汇集了一些关于“如何在centos7安装apache””的相关内容,希望小伙伴们能喜欢,咱们一起来学习一下吧!

CentOS 7上安装Apache Cassandra

用户必须具有 sudo权限,才能安装软件包

首先安装依赖条件,javajdk

sudo yum install java-1.8.0-openjdk-devel
java -version
openjdk version "1.8.0_201"OpenJDK Runtime Environment (build 1.8.0_201-b09)OpenJDK 64-Bit Server VM (build 25.201-b09, mixed mode)

vim /etc/yum.repos.d/cassandra.repo

[cassandra]name=Apache Cassandrabaseurl=
sudo yum install cassandra
sudo systemctl enable cassandrasudo systemctl start cassandra
nodetool status
Datacenter: datacenter1=======================Status=Up/Down|/ State=Normal/Leaving/Joining/Moving--  Address    Load        Tokens       Owns (effective)  Host ID                               RackUN  127.0.0.1  103.68 KiB  256          100.0%            129a9437-377d-415b-b6b2-5dc46b73a763  rack1

标签: #如何在centos7安装apache