How do I start and stop NFS service?

by Vivek Gite · 3 comments

Q. How do I start and stop NFS service from command prompt? How do I make sure NFS always stars automatically when system boots or restarts?

A. Make sure the portmap is running with the following command:
# /etc/init.d/portmap start
OR
# /etc/init.d/portmap restart

To start NFS Service type the command:
# /etc/init.d/nfs start

To restart NFS Service type the command:
# /etc/init.d/nfs restart

To STOP NFS Service type the command:
# /etc/init.d/nfs stop

To start NFS service automatically at boot time, use the following command:
# ntsysv

Select Portmap and NFS and save the changes.

See also:

Featured Articles:

Want to read Linux tips and tricks, but don't have time to check our blog everyday? Subscribe to our daily email newsletter to make sure you don't miss a single tip/tricks. Subscribe to our weekly newsletter here!

{ 3 comments… read them below or add one }

1 john piroino April 19, 2007

what can cause a nfs service to stop or freeze

Reply

2 Christian Dreyer November 7, 2007

IF you’re using the package nfs-kernel-server you have to substitute nfs for nfs-kernel-server instead. So you’d type
# /etc/init.d/nfs-kernel-server stop
instead

cheers

Reply

3 the_guv February 14, 2010

and for Portmap:-

sudo service portmap restart

(likely just a Debian thing)

Reply

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous post:

Next post: