Book Image

CentOS 7 Server Deployment Cookbook

By : Timothy Boronczyk, IRAKLI NADAREISHVILI
Book Image

CentOS 7 Server Deployment Cookbook

By: Timothy Boronczyk, IRAKLI NADAREISHVILI

Overview of this book

CentOS is derived from Red Hat Enterprise Linux (RHEL) sources and is widely used as a Linux server. This book will help you to better configure and manage Linux servers in varying scenarios and business requirements. Starting with installing CentOS, this book will walk you through the networking aspects of CentOS. You will then learn how to manage users and their permissions, software installs, disks, filesystems, and so on. You’ll then see how to secure connection to remotely access a desktop and work with databases. Toward the end, you will find out how to manage DNS, e-mails, web servers, and more. You will also learn to detect threats by monitoring network intrusion. Finally, the book will cover virtualization techniques that will help you make the most of CentOS.
Table of Contents (18 chapters)
CentOS 7 Server Deployment Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

Setting up a MongoDB database


Although relational databases have dominated the world of data storage, there have always been other systems that specialize in alternative ways of working with data, for example document and object-oriented databases, key-value databases, and hierarchical databases. The popularity of these alternative databases has experienced a resurgence thanks to the recent NoSQL and Big Data movements. This recipe teaches you how to install MongoDB, a modern document-oriented database system.

Getting ready

This recipe requires a CentOS system with a working network connection and administrative privileges by either using the root account or sudo. It also assumes you have registered the EPEL repository (see the Registering the EPEL and Remi repositories recipe in Chapter 4, Software Installation Management).

How to do it…

Follow these steps to install MongoDB and create a new database:

  1. Install the mongodb-server and mongodb packages from the EPEL repository:

    yum install mongodb...