Install RethinkDB Realtime Database on RHEL / CentOS 7 & 8
RethinkDB stores JSON documents with dynamic schemas and is designed to facilitate pushing real-time updates for query results to applications. Today I’m going to share how to setup RethinkDB on RHEL / CentOS.
Table of Contents
- Install RethinkDB
- Configuration
- Config Firewall & Test
- Run RethinkDB
Install RethinkDB
Let’s add RethinkDB repository provided by RethinkDB team:
After adding the repository, we can install RethinkDB using yum or dnf package manager.
Configuration
You can read their configuration file documentation. Let’s create an instance of rethinkdb:
If you don’t have the sample .conf
file, you can download it from here. Now we have to customize the instance1.conf. Open instance1.conf file:
Comment out these lines:
runuser=rethinkdb
rungroup=rethinkdb
directory=/var/lib/rethinkdb/default
log-file=/var/log/rethinkdb
bind=all
driver-port=28015
http-port=8080
server-name=server1
Then set permissions:
Config Firewall & Test
If firewall is active on your server, you need to open 8080 on port.
Now run this command to enable run RethinkDB on port 8080.
Visit http://[server-ip-address]:8080
to see the web interface of RethinkDB.
Now stop exist from RethinkDB console and stop:
Run RethinkDB
Enable RethinkDB on start:
Start RethinkDB:
Check status:
Again visit http://[server-ip-address]:8080
to see the web interface of RethinkDB. You’ll see the screen like this: