How to Install CouchDB in Ubuntu
Introduction
CouchDB is a database which is based on document oriented database architecture. It uses JSON to store data and JavaScript as it’s query language.
It is a project of Apache Software Foundation and first released in 2005.
In this tutorial, we will install CouchDB in Ubuntu operating system. This whole process, includes the following steps.
Prerequisites
- Ubuntu
- Login as admin user in terminal
Installation
Update local repository index of apt package manager.
install
Start CouchDB Server
After starting CouchDB, we can access database from the browser by using the localhost:5984. It will look like the following.
Create Database
To create project, enter this url localhost:5984/_utils to the browser. It will open the following interface that allows us to create database. As we can see, here, we are creating a new database tutoraspire.
The following output shows created database.
Well, we have successfully installed CouchDB in our operating system. Now, we can perform database related tasks.
Extra Info
Following are the useful commands that can be used to manage CouchDB server.
Start CouchDB
Use the following command to start CouchDB.
Stop CouchDB
Use the following command to stop CouchDB.
Restart CouchDB
Use the following command to restart CouchDB.
CouchDB Running Status