Skip to main content

Posts

Showing posts from September, 2016

Set Up an NFS Mount on CentOS 7

How To Set Up an NFS Mount on CentOS 7 Setup Master - SERVER: 192.168.0.81 Client: 192.168.0.119 Setting Up the NFS Server - 192.168.0.81 Step One—Download the Required Software 1 . yum install nfs-utils , rpcbind Subsequently, run several startup scripts for the NFS server: systemctl enable nfs-server.service systemctl start nfs-server.service systemctl start  rpcbind.service Step Two—Export the Shared Directory We need to export the directory: vi /etc/exports Add the following lines to the bottom of the file, sharing the directory with the client: /home/testdir   192.168.0.119(rw,sync,no_root_squash,no_subtree_check) These settings accomplish several tasks: rw: This option allows the client server to both read and write within the shared directory sync: Sync confirms requests to the shared directory only once the changes have been committed. no_subtree_check: This option prevents the subtree checking. When a shared directory is th