没有安装,从光盘中找到相应的RPM安装包并安装
[root@localhost Server]# rpm -ivh nfs-utils-1.0.9-24.el5.i386.rpm
warning: nfs-utils-1.0.9-24.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
package nfs-utils-1.0.9-24.el5 is already installed
NFS配置,加入允许其他计算机访问的目录和访问权限
[root@localhost Server]# vi /etc/exports
例
/home 192.168.1.* (rw,sync,no_boot_squash)
1、home:允许其它计算机访问的目录
2、192.168.1.*:被允许访问该目录的客户端IP地址
3、Rw:可读可写
4、no_boot_squash:表示客户端root用户对该目录具备写权限
启动NFS服务器
[root@localhost Server]# /etc/init.d/nfs start
Starting NFS services: exportfs: /etc/exports:1: unknown keyword "no_boot_squash"
[FAILED]
Starting NFS quotas: [ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]
重启NFS服务器
[root@localhost Server]# /etc/init.d/nfs restart
Shutting down NFS mountd: [ OK ]
Shutting down NFS daemon: [ OK ]
Shutting down NFS quotas: [ OK ]
Shutting down NFS services: [FAILED]
Starting NFS services: exportfs: /etc/exports:1: unknown keyword "no_boot_squash"
[FAILED]
Starting NFS quotas: [ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]
,使用mount命令来挂载NFS服务器上的共享目录
#mount -t nfs servername :/shared_dir /localdir
例如:
#mount -t nfs 10.168.1.100 :/home /mnt/nfs 本文出自 “qq200467” 博客,请务必保留此出处http://qq200467.blog.51cto.com/150998/745355
|