????????????Oracle Linux 5.7
???????????192.168.1.111
??????????192.168.1.171
????????????????
????1.???????portmap??nfs????
service portmap start
service nfs start
[root@OEL-ASM ~]#  service portmap status
portmap (pid 2543) is running...
[root@OEL-ASM ~]#  service nfs status
rpc.mountd is stopped
nfsd is stopped
rpc.rquotad is stopped
[root@OEL-ASM ~]# service nfs start
Starting NFS services:                                     [  OK  ]
Starting NFS quotas:                                       [  OK  ]
Starting NFS daemon:                                       [  OK  ]
Starting NFS mountd:                                       [  OK  ]
[root@OEL-ASM ~]# service nfs status
rpc.mountd (pid 10530) is running...
nfsd (pid 10527 10526 10525 10524 10523 10522 10521 10520) is running...
rpc.rquotad (pid 10504) is running...
????2.??????????????????????/etc/exports?????
??????????/etc/exports??????????????У?
????/usr2/nfs *(rw)
????????/etc/exports?????????nfs????
[root@OEL-ASM /]# mkdir -p /usr2/nfs
[root@OEL-ASM /]# cd /usr2/nfs
[root@OEL-ASM nfs]# ls
[root@OEL-ASM nfs]# pwd
/usr2/nfs
[root@OEL-ASM nfs]# touch 1 2
[root@OEL-ASM nfs]# vi 1
[root@OEL-ASM nfs]# vi 2
[root@OEL-ASM nfs]# more 1
Hello?? World! one~
[root@OEL-ASM nfs]# more 2
Hello?? World! two.
[root@OEL-ASM nfs]# pwd
/usr2/nfs
[root@OEL-ASM nfs]# ls -lh
total 8.0K
-rw-r--r-- 1 root root 19 10-09 10:02 1
-rw-r--r-- 1 root root 19 10-09 10:03 2
[root@OEL-ASM nfs]# vi /etc/exports
[root@OEL-ASM nfs]# more /etc/exports
/usr2/nfs *(rw)
[root@OEL-ASM nfs]# service nfs restart
Shutting down NFS mountd:                                  [  OK  ]
Shutting down NFS daemon:                                  [  OK  ]
Shutting down NFS quotas:                                  [  OK  ]
Starting NFS services:                                     [  OK  ]
Starting NFS quotas:                                       [  OK  ]
Starting NFS daemon:                                       [  OK  ]
Starting NFS mountd:                                       [  OK  ]
[root@OEL-ASM nfs]# showmount -e
Export list for OEL-ASM:
/usr2/nfs *
[root@OEL-ASM nfs]# exportfs
/usr2/nfs         <world>