Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Getting Started with RethinkDB

You're reading from  Getting Started with RethinkDB

Product type Book
Published in Mar 2016
Publisher Packt
ISBN-13 9781785887604
Pages 176 pages
Edition 1st Edition
Languages
Author (1):
Gianluca Tiepolo Gianluca Tiepolo
Profile icon Gianluca Tiepolo

Table of Contents (15) Chapters

Getting Started with RethinkDB
Credits
About the Author
Acknowledgement
About the Reviewer
www.PacktPub.com
Preface
1. Introducing RethinkDB 2. The ReQL Query Language 3. Clustering, Sharding, and Replication 4. Performance Tuning and Advanced Queries 5. Programming RethinkDB in Node.js 6. RethinkDB Administration and Deployment 7. Developing Real-Time Web Applications Index

Starting RethinkDB


To start your RethinkDB instance, open a terminal window and run the following command:

sudo /etc/init.d/rethinkdb start

Note

If you're running an OS that doesn't support the init start-stop daemon, such as OS X, you'll have to start RethinkDB by running the rethinkdb command followed by the appropriate command-line options. RethinkDB must be run with superuser privileges.

If the database starts up successfully, you will get an output similar to this:

rethinkdb: instance1: Starting instance. (logging to `/var/lib/rethinkdb/instance1/data/log_file')

As you can see from the previous output, RethinkDB gives you the path of the log file. If, by any chance, the database refuses to start, check the log for any error. In a clean installation and start up, the log will contain some statements like these:

notice: Running rethinkdb 2.0.3~0trusty (GCC 4.8.2)...
notice: Running on Linux 3.13.0-36-generic x86_64
notice: Loading data from directory /var/lib/rethinkdb/instance1/data
notice: Listening for intracluster connections on port 29015
notice: Listening for client driver connections on port 28015
notice: Listening for administrative HTTP connections on port 8080
notice: Listening on addresses: 127.0.0.1, 192.168.1.125
notice: Server ready, "rethinkdb1" fa0668f9-99cb-4516-b04a-1ee5466b572c

This a great deal of information. The log file tells us that the database has started running correctly, and we can access it from the specified IP addresses. It says that the server is ready and waiting for connections. Congratulations! Now, your RethinkDB server will be up and running. It's time to run your very first ReQL query.

You have been reading a chapter from
Getting Started with RethinkDB
Published in: Mar 2016 Publisher: Packt ISBN-13: 9781785887604
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}