Debian 8 - Install RethinkDB
What is RethinkDB
RethinkDB is a new database which is:
- JSON documents based.
- Easily scaled and distributed across multiple nodes.
- Queries are automatically parallelized.
- Simple administration tools, with a web UI (shown below)
Installation is a breeze and takes less than 5 minutes. The easiest way to install RethinkDB on Debian is by adding the apt repository which also allows us to update easily.
echo "deb http://download.rethinkdb.com/apt `lsb_release -cs` main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list wget -qO- http://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add - sudo apt-get update sudo apt-get install rethinkdb -y
To start the database, normally you would run:
However, we want to be able to connect to the database remotely, so we are going to set the database to bind to all network interfaces instead of just localhost.
rethinkdb --bind all
Now you can administer the server by navigating to the server's IP in your browser, on port 8080. For example
Next time, we will look into connecting PHP to our new database.