≡ Menu

Redhat / RHEL / CentOS Linux: Start / Stop / Restart NFS Service [ server ]

How do I start and stop the NFS service and/or server using the command prompt? How do I make sure NFS always stars automatically when system boots or restarts under RHEL based systems?

You can use the following commands under RHEL based systems

Start / Stop / Restart portmap Service under RHEL

Type the following commands:
# /etc/init.d/portmap start
# /etc/init.d/portmap stop
# /etc/init.d/portmap restart

Start / Stop / Restart NFS Service under RHEL / CentOS Linux

Type the following commands:
# /etc/init.d/nfs start
# /etc/init.d/nfs stop
# /etc/init.d/nfs restart

Automatically Start the NFS Server

To start the NFS service automatically at the boot time, enter:
# ntsysv
Select Portmap and NFS and save the changes. ntsysv command is a simple interface for configuring runlevel services which are also configurable through chkconfig command.

Share this tutorial on:
{ 3 comments… add one }
  • john piroino April 19, 2007, 6:21 pm

    what can cause a nfs service to stop or freeze

  • Christian Dreyer November 7, 2007, 10:19 pm

    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


  • the_guv February 14, 2010, 12:02 am

    and for Portmap:-

    sudo service portmap restart

    (likely just a Debian thing)

Leave a Comment

You can use these HTML tags and attributes: <strong> <em> <pre> <code> <a href="" title="">

   Tagged with: , , , , , , , , ,