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

Configuring an NFS client to use a shared filesystem


This recipe continues where the previous recipe left off, showing you how to configure NFS on a client system.

Getting ready

This recipe requires a CentOS system with a working network connection. It assumes that an NFS server has been configured as explained in the previous recipe. You'll also need administrative privileges provided by logging in with the root account.

How to do it...

Follow these steps to configure an NFS client:

  1. Install the nfs-utils and libnfsidmap packages:

    yum install nfs-utils libnfsidmap
    
  2. Create the directory which will serve as the mount point for the remote filesystem:

    mkdir /mnt/nfs
    
  3. Start the rpcbind service and register it so that it will start when the server boots:

    systemctl start rpcbind
    systemctl enable rpcbind
    
  4. Mount the NFS share to the mount point:

    mount -t nfs 192.168.56.100:/var/nfsshare /mnt/nfs
    

How it works...

Like the server side, the client side of NFS relies on RPC. So, we started and enabled the rpcbind...