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:
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 -
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.
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 18.104.22.168 you can open your favorite web browser and access the database web interface at:
To see the full list of official client drivers and community-supported drivers as well as the client driver installation instructions, please navigate to http://rethinkdb.com/docs/install-drivers/
Additionally, to learn about how to get started with RethinkDB and develop your first web application you should check the official RethinkDB documentation. It is available at:
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.