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.
Step 2. Installing RethinkDB.
To install RethinkDB you need to add 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"|sudotee/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:
Start RethinkDB by running 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:
Step 3. Accessing RethinkDB.
RethinkDB will be available on HTTP port 8080 by default. Open your favorite 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.
Congratulation’s! 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 web site.