How to start NFS on the Server ?

, , No Comments

 Configuring an NFS server is straightforward:

Use the chkconfig command to configure the required nfs and RPC rpcbind daemons
to start at boot and also activate NFS file locking to reduce the risk of corrupted data.
The following is the example:

root@# chkconfig nfs on
root@# chkconfig nfslock on
root@# chkconfig rpcbind on
Use the init scripts in the /etc/init.d directory to start the nfs and RPC rpcbind

The following are examples to use the start option, but by using stop and restart
options one can stop or restart the service as when needed.

root# service rpcbind start
root# service nfs start
root# service nfslock start

root# service rpcbind stop
root# service rpcbind restart

Test whether NFS is running correctly with the rpcinfo command or not. The
following I an example to list the running RPC programs.

root# rpcinfo -p localhost

program vers proto port

100000 2 tcp 111 portmapper

100000 2 udp 111 portmapper

100003 2 udp 2049 nfs

100003 3 udp 2049 nfs

100021 1 udp 1024 nlockmgr

100021 3 udp 1024 nlockmgr

100021 4 udp 1024 nlockmgr

100005 1 udp 1042 mountd

100005 1 tcp 2342 mountd

100005 2 udp 1042 mountd

100005 2 tcp 2342 mountd

100005 3 udp 1042 mountd

100005 3 tcp 2342 mountd

0 टिप्पणियाँ:

Post a Comment