How To Install RethinkDB on Ubuntu 14.04

Install RethinkDB on Ubuntu 14.04

In this tutorial, we will show you how to install and configuration of RethinkDB on your Ubuntu 14.04 server.  For those of you who didn’t know, RethinkDB is an open-source non-SQL database for realtime web applications. It pushes JSON to the web application in realtime and makes the JSON querying much simplified. Therefore, the web application becomes much more stable and responds much faster.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation RethinkDB on a Ubuntu 14.04 server.

Install RethinkDB on Ubuntu 14.04

Step 1. First, make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.

sudo apt-get update
sudo apt-get upgrade

Step 2. Installing RethinkDB.

To install RethinkDB you need to add a new repository to your system. This is because RethinkDB is not included in the default Ubuntu repositories:

source /etc/lsb-release && echo "deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list
wget -qO- http://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add -

Once the package index is up to date you are ready to install RethinkDB on your system:

sudo apt-get update
sudo apt-get install rethinkdb

Start RethinkDB by running the command below. Note that we’re “binding to all” so that we don’t run into issues when trying to access RethinkDB’s web admin interface:

rethinkdb --bind all &

Step 3. Accessing RethinkDB.

RethinkDB will be available on HTTP port 8080 by default. Open your favourite browser and navigate to http://yourdomain.com:8080 or http://server-ip:8080. If you are using a firewall, please open port 8080 to enable access to the control panel.

Congratulations! You have successfully installed RethinkDB. Thanks for using this tutorial for installing RethinkDB on your Ubuntu 14.04 system. For additional help or useful information, we recommend you to check the official RethinkDB website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!