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:
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- My 10 UNIX Command Line Mistakes
- The Novice Guide To Buying A Linux Laptop

- 10 Tools To Add Some Spice To Your UNIX Shell Scripts
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!
- Email FAQ to a friend
- Download PDF version
- Printable version
- Comment RSS feed
- Last Updated: 01/5/07

Sign up for our daily email newsletter:
{ 3 comments… read them below or add one }
what can cause a nfs service to stop or freeze
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
and for Portmap:-
sudo service portmap restart
(likely just a Debian thing)