Install RethinkDB on Ubuntu 14.04

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. It is very easy to install and run RethinkDB on a Linux VPS. Today we will show you how to do that on Ubuntu 14.04.

First thing you need to do is to login to your Ubuntu VPS and update all your system software to the latest version. If you do not know how to connect to your Linux VPS via SSH, you can check our guide. Upgrading your system software will make your system much secure, so go ahead and run the following commands:

sudo apt-get update
sudo apt-get upgrade

The upgrade should take few moments and once it is completed, you are ready to go with the next step. To install RethinkDB you need to add new repository to your system. This is because RethinkDB is not included in the default Ubuntu repositories. Therefore, run the following commands to do that:

After that, you can immediately update your package index by running the following command:

sudo apt-get update

Once the package index is up to date you are ready to install RethinkDB on your system. This can be achieved by running the last command:

sudo apt-get install rethinkdb

Congratulations, you have successfully installed RethinkDB on an Ubuntu VPS.

What’s next?

To start using RethinkDB you need to start the service. For that purpose you can use the following command:

rethinkdb --bind all &

RethinkDB will be started in the background so you can access the database web interface by entering your server IP address followed by port number 8080 in your favorite web browser. For example, if your server IP address is 12.34.56.78 you can open your favorite web browser and access the database web interface at:

http://12.34.56.78:8080

Although the RethinkDB is installed on your server, you need to install a client driver. RethinkDB allows querying JSON documents in your web application by using languages like Python, Ruby, JavaScript and many others, so make sure that the proper client driver is installed on your Ubuntu system.

Of course you don’t have to do any of this if you use one of our Linux VPS hosting services, in which case you can simply ask our expert Linux admins to install RethinkDB for you. They are available 24×7 and will take care of your request immediately.

PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.