CouchDB
CouchDB is a document-oriented noSQL database program.
In our example, we use the SSH access and consider the following information:
- Account name:
foo - CouchDB directory:
$HOME/couchdb/
Note
[foo] must be replaced by the name of your account.
Installation
Downloading and Compiling
Choose the tar.gz package of the latest version available from the official CouchDB site.
Configuring
Create a local.ini file in the $HOME/couchdb directory with the following directives:
Note
Replace mysuperpassword with the password of your choice.
Public Cloud users will need to point the service to a port between 8300 and 8499 and modify this value in the configuration file.
Service launch
Create a service with following details:
- Command:
./bin/couchdb -couch_ini /home/[foo]/couchdb/local.ini - Working directory:
/home/[foo]/couchdb/rel/couchdb
The address to connect to the CouchDB instance will be services-[foo].alwaysdata.net:[port]. For example, to list the databases:
Note
Replace [port] with the port indicated in the local.ini file.
Firewall rule creation
Private Cloud users will need to open the port by creating a firewall rule if they want to access it from the external network:
| Title | Value |
|---|---|
| Protocol | UDP/TCP |
| Type | ACCEPT |
| Direction | Input |
| Hosts | <specify nothing> |
| Ports | 5984 |
| IP version | IPv4/IPv6 |