0
本方法集合来自网络,如有版权问题,请在后面跟帖,我将删除处理,并对您表示深深歉意。

我的测试

[root@localhost etc]# vi exports
/tmp   *(rw,no_root_squash)
/home/public   192.168.10.*(rw)        *(ro)
/home/test     192.168.10.100(rw)


[root@localhost home]# mkdir test
[root@localhost home]# mkdir public
[root@localhost home]# cd ..
[root@localhost /]# /etc/rc.d/init.d/portmap start
Starting portmap:                                          [  OK  ]
[root@localhost /]# /etc/rc.d/init.d/nfs start
Starting NFS services:                                     [  OK  ]
Starting NFS quotas:                                       [  OK  ]
Starting NFS daemon:                                       [  OK  ]
Starting NFS mountd:                                       [  OK  ]
[root@localhost /]# showmount -e 192.168.10.2
Export list for 192.168.10.2:
/tmp         *
/home/public (everyone)
/home/test   192.168.10.100
[root@localhost /]# mount -t nfs 192.168.10.2:/public /mnt/nfs
mount: 192.168.10.2:/public failed, reason given by server: Permission denied
[root@localhost /]# mount -t nfs 192.168.10.2:/home/public /mnt/nfs
mount: mount point /mnt/nfs does not exist
[root@localhost /]# mount -t nfs 192.168.10.2:/home/public /var/www/html/pic

Tags: , , | 引用(0)
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]