Couchbase

From wikinotes

NoSQL database with replication.
See couchbase lite for an embeddable file database.

Documentation

official docs https://docs.couchbase.com/server/current/introduction/intro.html
officially supported OSs https://docs.couchbase.com/server/current/install/install-linux.html

Locations

http://localhost:8091 web console

Ports

8091 HTTP server

Install

Docker

docker pull couchbase
docker run -d --name couchbase -p 8091-8094:8091-8094 -p 11210:11210 couchbase

# admin page
http://localhost:8091

# N1QL query
docker exec -it couchbase sh
/opt/couchbase/bin/cbq

Archlinux

pacaur -S couchbase-server-community   # server
pacaur -S sync_gateway-git             # replication

Debian/Ubuntu

curl -O https://packages.couchbase.com/releases/couchbase-release/couchbase-release-1.0-amd64.deb
sudo dpkg -i ./couchbase-release-1.0-amd64.deb
sudo apt-get update
sudo apt-get install couchbase-server

# list avail releases, install
apt list -a couchbase-server  
sudo apt-get install couchbase-server=${version}  # ex: 6.0.0-1693-1

FreeBSD

Not officially supported, but technically possible with patches.

Usage

Verify Working

http://localhost:8091/  # web console
couchbase-cli           # query available