Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning RHEL Networking

You're reading from   Learning RHEL Networking Gain Linux administration skills by learning new networking concepts in Red Hat Enterprise Linux 7

Arrow left icon
Product type Paperback
Published in Jun 2015
Publisher
ISBN-13 9781785287831
Length 216 pages
Edition 1st Edition
Arrow right icon
Toc

Table of Contents (13) Chapters Close

Preface 1. Introducing Enterprise Linux 7 FREE CHAPTER 2. Configuring Network Settings 3. Configuring Key Network Services 4. Implementing iSCSI SANs 5. Implementing btrfs 6. File Sharing with NFS 7. Implementing Windows Shares with Samba 4 8. Integrating RHEL 7 into Microsoft Active Directory Domains 9. Deploying the Apache HTTPD Server 10. Securing the System with SELinux 11. Network Security with firewalld Index

The NFS server configuration


To configure the NFS server, we choose which directories we want to share. The terminology used in NFS to share a directory is to export the directory; therefore, shared directories are known as exports.

To permanently export a directory, we add the configuration to the /etc/exports file. This file exists, but will be empty on a new system. The nfs-server service will read this file on startup to determine which directories should be available to the network client. If /etc/exports is changed, reloading the nfs-server service will force the service to reread the file, as shown in the following command line:

$ sudo systemctl reload nfs-server

To display the current exports on the server, we can use the exportfs or showmount command. We will now take a little time to start the required services and create our first simple export.

Firstly, we will need to start the required services. We can start and enable each service independently, but in the spirit of automation...

lock icon The rest of the chapter is locked
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 £16.99/month. Cancel anytime