linux和solaris下配置NFS

来源:互联网 发布:pdf朗读软件 编辑:程序博客网 时间:2024/05/15 10:02

用linux做server端:

1、安装nfs

2、启动nfs,service nfs start

3、查看防火墙是否关闭,chkconfig -list | grep on

4、关闭防火墙,service iptables stop

5、修改/etc/exports文件,/home/aaa/share *(rw,sync,root_squash,no_all_squash)

 

solaris做client:

1、先umount /home,因为在solaris下,是自动mount到/home目录的,执行以下命令: svcadm disable svc:/system/filesystem/autofs:default umount -f /home mount -o rw,vers=3 192.168.70.252:/home/adminrep/share /home/adminrep/share

 

linux做client:

1、修改/etc/fstab文件

加上:192.168.70.250:/home/adminrep/share /a  nfs   rsize=8192,wsize=8192,timeo=14,intr,soft

2、执行showmount -e 192.168.70.250

           mount -a

这时nfs就配置成功了