How to install Windows RethinkDB
RethinkDB is a new family member Non-SQL that promises to improve the ecosystem lot with an excellent system of queries and its ability to be easily deployed on multiple nodes, so that we can create a database distributed with little effort.
A very convenient feature is that it includes a web-based manager, who by default is port 8080, where we can see statistics of our server, review the data, and test the console, which is very useful as it allows you to experiment with your code before deploying or testing.
RethinkDB is available for many operating systems, but for the moment has no native support for Windows.
But that’s no problem, since it is easily solved by mounting one of the operating systemssupported on a virtual machine, in the example I’ll use Linux Mint 17 as mounted on Oracle VM VirtualBox , both are free.
Once you have installed Oracle VM VirtualBox, we need to create a new virtual machine to which you assign the name you want, it is important to indicate that is of type Linux, and can be used as version Ubuntu.
Then you must allocate the amount of memory you will devote to the virtual machine, if your machine allows, I recommend allocating at least 2048 mb.
Then you must create and assign a virtual hard disk to the VM , I recommend you book at least 20GB .
The plan is to run a server RethinkDB on Linux and use the IP of the virtual machine to communicate with the server from Windows. One advantage is that we can create snapshots of our virtual machine, which are like ” save points “of how it’s all at some point. I recommend creating one when you have everything running for easy reference, remember to create a new snapshot before closing or you can start Linux and return to set up servers for the changes being erased.
To access the server without problem in the VM , I recommend using settings bridged adapter and select the adapter to use your computer to connect to the Internet, also reviewed the promiscuous mode shows ” Allow All “.
Another configuration that will facilitate the work much bidirectional mode is enabled both clipboard and drag and drop, thus can treat the VM as a window more than a normal application.
Now we will install Linux Mint not forget to download an image from the official site, this image can enter directly into the virtual machine, which recognize the start and you can install Linux Mint normally.
Once you have installed and started Linux Mint opens an instance of your console and follow the installation instructions RethinkDB for Mint 17.
echo "deb http://download.rethinkdb.com/apt trusty 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
Now that you have RethinkDB installed, just use the following command to start the server:
rethinkdb --bind all
From these addresses, the latter corresponds to the IP of the virtual machine on the network, write this IP and port 8080 in your favorite web browser on Windows, this would be 192.168.1.6 image : 8080 and this will show us the web administrator RethinkDB . Remember to use this combination of port and IP on your settings, for example, NodeJS.
Now you can use RethinkDB and other web services Linux in Windows without problems.