|
一:简介
用于unix/linux系统之间通过网络进行文件共享,用户可以把网络中NFS服务器提供的共享目录挂载到本地文件目录中,可以象对本地文件系统一样操作NFS文件系统中的内容。
二、安装
1
2
3
4
5
| rpm -qa | grep rpcbind
yum install rpcbind
rpm -qa | grep nfs
yum list | grep nfs
yum install nfs-utils
|
三、启动NFS
1
2
| service rpcbind start
service nfs start
|
注意:因为nfs服务依赖于rpcbind分配端口所以rpcbind一定要优先于nfs启动
由于NFS是通过RPC(Remote Procedure Call,远程过程调用)协议来使用远程计算机上的文件,因此系统中的RPC服务必须启动
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
| [iyunv@localhost ~]# rpcinfo -p
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
100005 1 udp 44822 mountd
100005 1 tcp 36036 mountd
100005 2 udp 33203 mountd
100005 2 tcp 54815 mountd
100005 3 udp 39965 mountd
100005 3 tcp 49958 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 34854 nlockmgr
100021 3 udp 34854 nlockmgr
100021 4 udp 34854 nlockmgr
100021 1 tcp 44841 nlockmgr
100021 3 tcp 44841 nlockmgr
100021 4 tcp 44841 nlockmgr
|
四、配置
设置NFS服务器共享目录/etc/exports
|
|
|
|
|
|
|