[root@nfs01 ~]# /etc/init.d/nfs start
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS mountd: [ OK ]
Starting NFS daemon: [ OK ]
正在启动 RPC idmapd: [确定]
[root@nfs01 ~]# rpcinfo -p localhost
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 15306 status
100024 1 tcp 38420 status
100011 1 udp 875 rquotad
100011 2 udp 875 rquotad
100011 1 tcp 875 rquotad
100011 2 tcp 875 rquotad
100005 1 udp 11473 mountd
100005 1 tcp 62369 mountd
100005 2 udp 17528 mountd
100005 2 tcp 47308 mountd
100005 3 udp 11312 mountd
100005 3 tcp 51724 mountd
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100227 2 tcp 2049 nfs_acl
100227 3 tcp 2049 nfs_acl
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100227 2 udp 2049 nfs_acl
100227 3 udp 2049 nfs_acl
100021 1 udp 25181 nlockmgr
100021 3 udp 25181 nlockmgr
100021 4 udp 25181 nlockmgr
100021 1 tcp 20093 nlockmgr
100021 3 tcp 20093 nlockmgr
100021 4 tcp 20093 nlockmgr
1.6. 加入开始自启动
1.6.1. 使用 /etc/rc.local
[root@nfs01 ~]# tail /etc/rc.local
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
# start rpc and nfs server
/etc/init.d/rpcbind start
/etc/init.d/nfs start
1.6.2. 使用chkconfig