Couchbase Server is NoSQL database software package that is used for interactive applications. It is an opensource NoSQL database that provides us with a mechanism for storage and recovery of data which is modelled in means other than the tabular relations used in relational databases. It has multiple data access paths to query and manage our JSON documents. It provides Eventual Consistency and Immediate Consistency methods to ensure consistency in a distributed system.
To install couchbase we first need to download the couchbase server setup file and after that, we will have to install that through a package manager, and then we will finally have to start the couchbase server in order to run it over localhost.
The installation procedure is as follows:
- Download couchbase Database from here.
- Move to the location where the file is downloaded and use the following command to install the downloaded file.
sudo apt install ./couchbase-server-community_6.5.1-ubuntu18.04_amd64.deb
Note:- Replace the version in the command with the downloaded version.
- After the successful installation, run the couchbase service using the following command.
sudo service couchbase-server start
- Now visit http://localhost:8091/ and if it gives the following result, then your installation is successful.
To create your own cluster:
- Click on setup new cluster button in order to create your own cluster.
- Enter your cluster details there.
- Read properly the terms and conditions of couchbase and accept them if found suitable.
- Enter the configuration you want for your cluster.
- If everything goes well you will have a dashboard like the one shown below.
Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.