sudo sh -c 'echo "deb https://www.griddb.net/apt griddb/5.7 multiverse" > /etc/apt/sources.list.d/griddb.list'
And then import the key:
wget -qO - https://www.griddb.net/apt/griddb.asc | sudo apt-key add -
Then install GridDB:
$ sudo apt update
$ sudo apt install griddb-meta
INFO
The griddb-meta package installs the following packages: griddb, griddb-c-client, griddb-cli, griddb-webapi, griddb-jdbc
$ sudo systemctl start gridstore
$ sudo su gsadm
$ gs_sh
Loading "/var/lib/gridstore/.gsshrc"
The connection attempt was successful(NoSQL).
The connection attempt was successful(NewSQL).
gs[public]>
If using GridDB in FIXED_LIST Mode (which is the default mode!), make the following changes to your web-api config:
$ cd /var/lib/gridstore/webapi/conf
$ sudo vim repository.json
{
"clusters" : [
{
"name" : "",
"mode" : "MULTICAST",
"address" : "239.0.0.1",
"port" : 31999,
"jdbcAddress" : "239.0.0.1",
"jdbcPort" : 41999,
"transactionMember": "",
"sqlMember": "",
"providerUrl": null
}
]
}
becomes
{
"clusters" : [
{
"name" : "myCluster",
"mode" : "FIXED_LIST",
"transactionMember": "127.0.0.1:10001",
"sqlMember": "127.0.0.1:20001",
"providerUrl": null
}
]
}
and to start and use:
$ sudo systemctl start griddb-webapi.service
$ curl --location -I 'http://localhost:8081/griddb/v2/myCluster/dbs/public/checkConnection' \
--header 'Authorization: Basic YWRtaW46YWRtaW4='
HTTP/1.1 200
Content-Length: 0
Date: Wed, 09 Apr 2025 16:37:44 GMT
the password here is admin:admin
encoded to base64 format