「FoundationDB」:修訂間差異
跳至導覽
跳至搜尋
無編輯摘要 |
|||
第3行: | 第3行: | ||
== 安裝 == | == 安裝 == | ||
在[[Ubuntu]]下可以使用官方打包好的deb安 | 在[[Ubuntu]]下可以使用官方打包好的deb安裝7.1版: | ||
<syntaxhighlight lang="bash"> | |||
cd /tmp; wget -c https://github.com/apple/foundationdb/releases/download/7.1.65/foundationdb-clients_7.1.65-1_amd64.deb; sudo dpkg -i foundationdb-clients_7.1.65-1_amd64.deb; wget -c https://github.com/apple/foundationdb/releases/download/7.1.65/foundationdb-server_7.1.65-1_amd64.deb; sudo dpkg -i foundationdb-server_7.1.65-1_amd64.deb | |||
</syntaxhighlight> | |||
也可以安裝7.3版,但我無法跑起cluster模式: | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> |
於 2024年12月23日 (一) 17:36 的修訂
FoundationDB是Apple維護的NoSQL資料庫。
安裝
在Ubuntu下可以使用官方打包好的deb安裝7.1版:
cd /tmp; wget -c https://github.com/apple/foundationdb/releases/download/7.1.65/foundationdb-clients_7.1.65-1_amd64.deb; sudo dpkg -i foundationdb-clients_7.1.65-1_amd64.deb; wget -c https://github.com/apple/foundationdb/releases/download/7.1.65/foundationdb-server_7.1.65-1_amd64.deb; sudo dpkg -i foundationdb-server_7.1.65-1_amd64.deb
也可以安裝7.3版,但我無法跑起cluster模式:
cd /tmp; wget -c https://github.com/apple/foundationdb/releases/download/7.3.43/foundationdb-clients_7.3.43-1_amd64.deb; sudo dpkg -i foundationdb-clients_7.3.43-1_amd64.deb; wget -c https://github.com/apple/foundationdb/releases/download/7.3.43/foundationdb-server_7.3.43-1_amd64.deb; sudo dpkg -i foundationdb-server_7.3.43-1_amd64.deb
設定
測試
先進入CLI介面:
fdbcli
在CLI的預設是唯獨模式,透過指令允許送出寫入操作:
writemode on
接著可以進行操作:
get a/b/c
set a/b/c foo
get a/b/c
clear a/b/c
get a/b/c