「Apache Cassandra」:修訂間差異
跳至導覽
跳至搜尋
第14行: | 第14行: | ||
curl -L https://www.apache.org/dist/cassandra/KEYS | sudo apt-key add -; echo "deb http://www.apache.org/dist/cassandra/debian 40x main" | sudo tee /etc/apt/sources.list.d/cassandra.list; sudo apt update; sudo apt install -y cassandra | curl -L https://www.apache.org/dist/cassandra/KEYS | sudo apt-key add -; echo "deb http://www.apache.org/dist/cassandra/debian 40x main" | sudo tee /etc/apt/sources.list.d/cassandra.list; sudo apt update; sudo apt install -y cassandra | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== 設定 == | |||
=== 防火牆 === | |||
{| class="sortable wikitable" | |||
! Port | |||
! Usage | |||
! Comment | |||
|- | |||
| 7000 | |||
| Cluster communication | |||
| | |||
|- | |||
| 7001 | |||
| Cluster communication (TLS mode) | |||
| | |||
|- | |||
| 9042 | |||
| Native protocol | |||
| | |||
|} | |||
== 連結 == | == 連結 == | ||
* {{Official|https://cassandra.apache.org/}} | * {{Official|https://cassandra.apache.org/}} |
於 2021年7月29日 (四) 13:43 的修訂
Apache Cassandra是一套資料庫。
安裝
先安裝OpenJDK 11:
sudo apt install -y openjdk-11-jdk; sudo apt clean
再來安裝Cassandra:
curl -L https://www.apache.org/dist/cassandra/KEYS | sudo apt-key add -; echo "deb http://www.apache.org/dist/cassandra/debian 40x main" | sudo tee /etc/apt/sources.list.d/cassandra.list; sudo apt update; sudo apt install -y cassandra
設定
防火牆
Port | Usage | Comment |
---|---|---|
7000 | Cluster communication | |
7001 | Cluster communication (TLS mode) | |
9042 | Native protocol |