Atlantic.Net Blog

How To Install RethinkDB on CentOS 8

Hitesh Jethva
by Atlantic.Net (198posts) under Dedicated Server Hosting
0 Comments

RethinkDB is a free and open-source No-SQL database manager that can be used in applications that require continuous access to data. It has very minimal response times and updates and supports the most popular languages, including PHP, Java, Ruby, and Python. RethinkDB is designed with automatic failover and robust fault tolerance. It uses a new database access model instead of polling for changes. RethinkDB also offers a built-in web interface to manage the database.

In this tutorial, we will show you how to install RethinkDB on CentOS 8.

Prerequisites

  • A fresh CentOS 8 VPS on the Atlantic.net Cloud Platform
  • A root password configured on your server

Step 1 – Create an Atlantic.Net Cloud Server

First, log in to your Atlantic.Net Cloud Server.  Create a new server, choosing CentOS 8 as the operating system with at least 2GB RAM. Connect to your Cloud Server via SSH and log in using the credentials highlighted at the top of the page.

Once you are logged in to your CentOS 8 server, run the following command to update your base system with the latest available packages.

dnf update -y

Step 2 – Install RethinkDB

By default, RethinkDB is not available in the CentOS 8 default repository, so you will need to install it from the RPM package. You can run the following command to download and install the RethinkDB RPM package in your system.

dnf localinstall https://download.rethinkdb.com/repository/centos/8/x86_64/rethinkdb-2.4.1.x86_64.rpm -y

Once installed, you should get the following output:

Step 3 – Configure RethinkDB

First, you will need to copy RethinkDB sample configuration file with the following command:

cp /etc/rethinkdb/default.conf.sample /etc/rethinkdb/instances.d/instance1.conf

Next, edit the configuration file using the following command:

nano /etc/rethinkdb/instances.d/instance1.conf

Change the following lines to enable the RethinkDB web console:

http-port=8080
server-name=server1

directory=/var/lib/rethinkdb/default
log-file=/var/log/rethinkdb
bind=0.0.0.0

 

Save and close the file when you are finished. Next, create the necessary files and provide proper permissions with the following command:

touch /var/log/rethinkdb
chown -R rethinkdb:rethinkdb  /var/log/rethinkdb /var/lib/rethinkdb
chmod -R 775 /var/log/rethinkdb /var/lib/rethinkdb

Now, start the RethinkDB service and enable it to start at system reboot with the following command:

systemctl enable --now rethinkdb
systemctl start rethinkdb

You can now verify the status of the RethinkDB service with the following command:

systemctl status rethinkdb

You should get the following output:

Step 4 – Access RethinkDB Web Interface

Now, open your web browser and access RethinkDB using the URL http://your-server-ip:8080. You should see the following page:

Now, click on the Tables button. You should see the following page:

Click on the Add Database button. You should see the following page:

Provide your database name and click on the Add button. You should see your database in the following page:

Conclusion

Congratulations! You have successfully installed RethinkDB on CentOS 8. You can now easily use RethinkDB to build your large-scale applications. For more information, visit the RethinkDB official documentation. Install RethinkDB on your Atlantic.Net dedicated server today.

Get A Free To Use Cloud VPS

Free Tier Includes:
G3.2GB Cloud VPS Free to Use for One Year
50 GB of Block Storage Free to Use for One Year
50 GB of Snapshots Free to Use for One Year


Looking for a Hosting Solution?

We Provide Cloud, Dedicated, & Colocation.

  • Seven Global Data Center Locations.
  • Flexible Private, Public, & Hybrid Hosting.
  • 24x7x365 Security, Support, & Monitoring.
Contact Us Now! Med Tech Award FTC
SOC Audit HIPAA Audit HITECH Audit

Recent Posts

Get started with 12 months of free cloud VPS hosting

Free Tier includes:
G3.2GB Cloud VPS Server Free to Use for One Year
50 GB of Block Storage Free to Use for One Year
50 GB of Snapshots Free to Use for One Year


New York, NY

100 Delawanna Ave, Suite 1

Clifton, NJ 07014

United States

San Francisco, CA

2820 Northwestern Pkwy,

Santa Clara, CA 95051

United States

Dallas, TX

2323 Bryan Street,

Dallas, Texas 75201

United States

Ashburn, VA

1807 Michael Faraday Ct,

Reston, VA 20190

United States

Orlando, FL

440 W Kennedy Blvd, Suite 3

Orlando, FL 32810

United States

Toronto, Canada

20 Pullman Ct, Scarborough,

Ontario M1X 1E4

Canada

London, UK

14 Liverpool Road, Slough,

Berkshire SL1 4QZ

United Kingdom

Resources