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 real-time web applications. It pushes JSON to the web application in real time and makes the JSON querying much more 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 the step-by-step installation of RethinkDB on a Ubuntu 14.04 server.
Prerequisites
- A server running one of the following operating systems: Ubuntu 14.04, and any other Debian-based distribution like Linux Mint.
- It’s recommended that you use a fresh OS install to prevent any potential issues.
- SSH access to the server (or just open Terminal if you’re on a desktop).
- A
non-root sudo user
or access to theroot user
. We recommend acting as anon-root sudo user
, however, as you can harm your system if you’re not careful when acting as the root.
Install RethinkDB on Ubuntu 14.04
Step 1. First, make sure that all your system packages are up-to-date by running the 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 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.
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 check the official RethinkDB website.