(1)查看有没有安装nfs-utils的安装包
[root@localhost /]#rpm -q nfs-utils
返回表示已经安装了服务包,跳到第3步。
nfs-utils-1.0.9-24.e15
否则表示没有安装
(2)没有安装的话,安装服务包
[root@localhost /]#mount /dev/cdrom /mnt
[root@localhost /]#cd /mnt
[root@localhost mnt]#find ./ -name '*nfs*'
[root@localhost mnt]#rpm -ivh ./Server/nfs-utils-1.0.9-24.el5.i386.rpm
(3)NFS配置,加入允许被哪些计算机访问、访问的目录和访问权限。
[root@localhost mnt]#vi /etc/exports
/home 192.168.1.*(rw,sync,no_root_squash)
(4)启动nfs服务器
[root@localhost mnt]#/etc/init.d/nfs restart
(5)使用mount命令来挂载NFS服务器上的共享目录
将邻居的/home挂载到自家的/mnt目录下,然后就可以直接访问了。
[root@localhost mnt]#mount -t nfs 192.168.1.124:/home /mnt
[root@localhost /]#rpm -q nfs-utils
返回表示已经安装了服务包,跳到第3步。
nfs-utils-1.0.9-24.e15
否则表示没有安装
(2)没有安装的话,安装服务包
[root@localhost /]#mount /dev/cdrom /mnt
[root@localhost /]#cd /mnt
[root@localhost mnt]#find ./ -name '*nfs*'
[root@localhost mnt]#rpm -ivh ./Server/nfs-utils-1.0.9-24.el5.i386.rpm
(3)NFS配置,加入允许被哪些计算机访问、访问的目录和访问权限。
[root@localhost mnt]#vi /etc/exports
/home 192.168.1.*(rw,sync,no_root_squash)
(4)启动nfs服务器
[root@localhost mnt]#/etc/init.d/nfs restart
(5)使用mount命令来挂载NFS服务器上的共享目录
将邻居的/home挂载到自家的/mnt目录下,然后就可以直接访问了。
[root@localhost mnt]#mount -t nfs 192.168.1.124:/home /mnt