Starting and Stopping NFS
To run an NFS server, the portmap service must be running. To verify that portmap is
active, type the following command as root:
[root@sujeet ~]# /sbin/service portmap status
If the portmap service is running, then the nfs service can be started.
To start an NFS server, as root type:
[root@sujeet ~]# /sbin/service nfs start
To stop the server, as root type:
[root@sujeet ~]# /sbin/service nfs stop
The restart option is a shorthand way of stopping and then starting NFS.
This is the most efficient way to make configuration changes take effect after
editing the configuration file for NFS.
To restart the server, as root type:
[root@sujeet ~]# /sbin/service nfs restart
The condrestart (conditional restart) option only starts nfs if it is currently running.
This option is useful for scripts, because it does not start the daemon if it is not
running.
To conditionally restart the server, as root type:
[root@sujeet ~]# /sbin/service nfs condrestart
To reload the NFS server configuration file without restarting the service,
as root type:
[root@sujeet ~]# /sbin/service nfs reload
By default, the nfs service does not start automatically at boot time.
To configure the NFS to start up at boot time, use an initscript utility,
such as /sbin/chkconfig, /sbin/ntsysv, or the Services Configuration Tool program.
How To Restart Linux NFS Server
[root@sujeet ~]# service nfslock stop
Stopping NFS locking: [ OK ]
Stopping NFS statd: [ OK ]
[root@sujeet ~]# service nfs stop
Shutting down NFS mountd: [ OK ]
Shutting down NFS daemon: [ OK ]
Shutting down NFS quotas: [ OK ]
[root@sujeet ~]# service portmap stop
Stopping portmap: [ OK ]
[root@sujeet ~]# umount /proc/fs/nfsd
[root@sujeet ~]#service portmap start
Starting portmap: [ OK ]
[root@sujeet ~]# service nfs start
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]
[root@sujeet ~]# service nfslock start
Starting NFS statd: [ OK ]
[root@sujeet ~]# mount -t nfsd nfsd /proc/fs/nfsd
Automatically Start the NFS Server
To start the NFS service automatically at the boot time, enter:
# ntsysv
Start / Stop / Restart portmap Service under RHEL
Type the following commands:
[root@sujeet ~]# /etc/init.d/portmap stop
Stopping portmap: [ OK ]
[root@sujeet ~]#/etc/init.d/portmap start
Starting portmap: [ OK ]
[root@sujeet ~]# /etc/init.d/portmap restart
Stopping portmap: [ OK ]
Starting portmap: [ OK ]
Start / Stop / Restart NFS Service under RHEL / CentOS Linux
[root@sujeet ~]# /etc/init.d/nfs start
[root@sujeet ~]# /etc/init.d/nfs stop
[root@sujeet ~]# /etc/init.d/nfs restart
To run an NFS server, the portmap service must be running. To verify that portmap is
active, type the following command as root:
[root@sujeet ~]# /sbin/service portmap status
If the portmap service is running, then the nfs service can be started.
To start an NFS server, as root type:
[root@sujeet ~]# /sbin/service nfs start
To stop the server, as root type:
[root@sujeet ~]# /sbin/service nfs stop
The restart option is a shorthand way of stopping and then starting NFS.
This is the most efficient way to make configuration changes take effect after
editing the configuration file for NFS.
To restart the server, as root type:
[root@sujeet ~]# /sbin/service nfs restart
The condrestart (conditional restart) option only starts nfs if it is currently running.
This option is useful for scripts, because it does not start the daemon if it is not
running.
To conditionally restart the server, as root type:
[root@sujeet ~]# /sbin/service nfs condrestart
To reload the NFS server configuration file without restarting the service,
as root type:
[root@sujeet ~]# /sbin/service nfs reload
By default, the nfs service does not start automatically at boot time.
To configure the NFS to start up at boot time, use an initscript utility,
such as /sbin/chkconfig, /sbin/ntsysv, or the Services Configuration Tool program.
How To Restart Linux NFS Server
[root@sujeet ~]# service nfslock stop
Stopping NFS locking: [ OK ]
Stopping NFS statd: [ OK ]
[root@sujeet ~]# service nfs stop
Shutting down NFS mountd: [ OK ]
Shutting down NFS daemon: [ OK ]
Shutting down NFS quotas: [ OK ]
[root@sujeet ~]# service portmap stop
Stopping portmap: [ OK ]
[root@sujeet ~]# umount /proc/fs/nfsd
[root@sujeet ~]#service portmap start
Starting portmap: [ OK ]
[root@sujeet ~]# service nfs start
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]
[root@sujeet ~]# service nfslock start
Starting NFS statd: [ OK ]
[root@sujeet ~]# mount -t nfsd nfsd /proc/fs/nfsd
Automatically Start the NFS Server
To start the NFS service automatically at the boot time, enter:
# ntsysv
Start / Stop / Restart portmap Service under RHEL
Type the following commands:
[root@sujeet ~]# /etc/init.d/portmap stop
Stopping portmap: [ OK ]
[root@sujeet ~]#/etc/init.d/portmap start
Starting portmap: [ OK ]
[root@sujeet ~]# /etc/init.d/portmap restart
Stopping portmap: [ OK ]
Starting portmap: [ OK ]
Start / Stop / Restart NFS Service under RHEL / CentOS Linux
[root@sujeet ~]# /etc/init.d/nfs start
[root@sujeet ~]# /etc/init.d/nfs stop
[root@sujeet ~]# /etc/init.d/nfs restart
No comments:
Post a Comment