0
本方法集合来自网络,如有版权问题,请在后面跟帖,我将删除处理,并对您表示深深歉意。
下载文件 (已下载 238 次)
我的测试
[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
下载文件 (已下载 238 次)我的测试
[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
对服务器分离有一些新的认识[感谢Michael]
Lighttpd+Squid+Apache搭建高效率Web服务器[整理]


2008/06/17
09:38
4346



