How to install RethinkDb in Ubuntu
To install RethinkDb in Ubuntu
RethinkDB is a NoSQL Database like mongodb an open source database which is simple and easy to use with a graphical user interface. This database can be access from the web browser and is used to create databases and tables. Installation of RethinkDb is explained in this article.
To install RethinkDb
Update your repositories by running the following command.
root@linuxhelp:~# apt-get update
Hit http://security.ubuntu.com wily-security InRelease
Hit http://in.archive.ubuntu.com wily InRelease
Hit http://security.ubuntu.com wily-security/main Sources
Hit http://in.archive.ubuntu.com wily-updates InRelease
Hit http://security.ubuntu.com wily-security/restricted Sources
Hit http://in.archive.ubuntu.com wily-backports InRelease
Hit http://security.ubuntu.com wily-security/universe Sources
Hit http://security.ubuntu.com wily-security/multiverse Sources
Hit http://in.archive.ubuntu.com wily/main Sources
Hit http://security.ubuntu.com wily-security/main amd64 Packages
Hit http://in.archive.ubuntu.com wily/restricted Sources
.
.
.
Hit http://in.archive.ubuntu.com wily-backports/main i386 Packages
Hit http://in.archive.ubuntu.com wily-backports/restricted i386 Packages
Hit http://in.archive.ubuntu.com wily-backports/universe i386 Packages
Hit http://in.archive.ubuntu.com wily-backports/multiverse i386 Packages
Hit http://in.archive.ubuntu.com wily-backports/main Translation-en
Hit http://in.archive.ubuntu.com wily-backports/multiverse Translation-en
Hit http://in.archive.ubuntu.com wily-backports/restricted Translation-en
Hit http://in.archive.ubuntu.com wily-backports/universe Translation-en
Reading package lists... Done
Utilise the following command, to add the repository.
root@linuxhelp:~# source /etc/lsb-release & & echo " deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list
deb http://download.rethinkdb.com/apt wily main
Add the key file
root@linuxhelp:~# wget -qO- http://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add -
OK
Update your repositories again.
root@linuxhelp:~# apt-get update
Hit http://security.ubuntu.com wily-security InRelease
Hit http://in.archive.ubuntu.com wily InRelease
Ign http://download.rethinkdb.com wily InRelease
Hit http://in.archive.ubuntu.com wily-updates InRelease
Hit http://security.ubuntu.com wily-security/main Sources
Hit http://in.archive.ubuntu.com wily-backports InRelease
Get:1 http://download.rethinkdb.com wily Release.gpg [490 B]
Hit http://in.archive.ubuntu.com wily/main Sources
.
.
.
Hit http://in.archive.ubuntu.com wily-backports/main i386 Packages
Hit http://in.archive.ubuntu.com wily-backports/restricted i386 Packages
Hit http://in.archive.ubuntu.com wily-backports/universe i386 Packages
Hit http://in.archive.ubuntu.com wily-backports/multiverse i386 Packages
Hit http://in.archive.ubuntu.com wily-backports/main Translation-en
Hit http://in.archive.ubuntu.com wily-backports/multiverse Translation-en
Hit http://in.archive.ubuntu.com wily-backports/restricted Translation-en
Hit http://in.archive.ubuntu.com wily-backports/universe Translation-en
Fetched 9,797 B in 19s (494 B/s)
Reading package lists... Done
Install the package for RethinkDb by using the following command.
root@linuxhelp:~# apt-get install rethinkdb -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
rethinkdb
0 upgraded, 1 newly installed, 0 to remove and 252 not upgraded.
Need to get 11.0 MB of archives.
.
.
.
Processing triggers for man-db (2.7.4-1) ...
Setting up rethinkdb (2.3.4~0wily) ...
The RethinkDB startup service is installed but disabled. To enable it,
follow the instructions in the guide located at http://www.rethinkdb.com/docs/guides/startup/
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (225-1ubuntu9) ...
Start the services for Rethinkdb.
root@linuxhelp:~# rethinkdb --bind all &
[1] 4276
root@linuxhelp:~# Recursively removing directory /home/user1/rethinkdb_data/tmp
Initializing directory /home/user1/rethinkdb_data
Running rethinkdb 2.3.4~0wily (GCC 5.2.1)...
Running on Linux 4.2.0-16-generic x86_64
Loading data from directory /home/user1/rethinkdb_data
warn: Cache size does not leave much memory for server and query overhead (available memory: 500 MB).
warn: Cache size is very low and may impact performance.
Listening for intracluster connections on port 29015
Listening for client driver connections on port 28015
Listening for administrative HTTP connections on port 8080
Listening on cluster addresses: 127.0.0.1, 127.0.1.1, 192.168.5.222, ::1, fe80::20c:29ff:fe19:8057%2
Listening on driver addresses: 127.0.0.1, 127.0.1.1, 192.168.5.222, ::1, fe80::20c:29ff:fe19:8057%2
Listening on http addresses: 127.0.0.1, 127.0.1.1, 192.168.5.222, ::1, fe80::20c:29ff:fe19:8057%2
Server ready, " linuxhelp_gxh" 04c68389-8c2e-49b4-8ffe-fd72dcde959f
Open the browser and dive into http://< IP_address> :8080
RethinkDB Administration page as follows.
Now click “ tables” .
To create New Database
Click Add database to add new database.
Add a name for the database and click add.

To create New Table
Click Add table.
Give a name for the table and click create table.
Now click “ Servers” tabs.
It list the servers connected to the clusters.
To view logs, click log tab.
Comments ( 0 )
No comments available