Starting and Stopping the NFS Daemons

You might run across instances when you need to stop NFS and restart it later. You can do this by using the startup scripts that are executed at boot time and shutdown. NFS's scripts are in /etc/init.d. To start the NFS services, run the following as root:

						[root@vestax /root]# /etc/init.d/nfs start
					

To stop NFS services, run the following as root:

						[root@vestax /root]# /etc/init.d/nfs stop
					

Status of NFS

There are other options that can be used with NFS to do other tasks. For example, you can get a status of NFS by running the following command:

							[root@vestax /root]# /etc/init.d/nfs status
						

This returns output that is something like this:

 rpc.statd (pid 965) is runnning... rpc.mountd (pid 987) is running... ...

Get Red Hat® Linux® 7 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.