|
/etc/exports的内容:
/mnt/cdrom (ro,insecure,all_squash)
/mnt/win_f (ro,insecure,all_squash)
#rpcinfo -p (看服务是否启动,显示
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 32768 status
100024 1 tcp 32768 status
391002 2 tcp 32769 sgi_fam
100011 1 udp 834 rquotad
100011 2 udp 834 rquotad
100011 1 tcp 837 rquotad
100011 2 tcp 837 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100021 1 udp 32770 nlockmgr
100021 3 udp 32770 nlockmgr
100021 4 udp 32770 nlockmgr
100005 1 udp 32771 mountd
100005 1 tcp 32770 mountd
100005 2 udp 32771 mountd
100005 2 tcp 32770 mountd
100005 3 udp 32771 mountd
100005 3 tcp 32770 mountd
可见:nfs nfslock rpc.mountd都启动了.
#showmount -e 192.168.0.2 (查看本机共享了什么)
Export list for station2:
/mnt/win_f (everyone)
/mnt/cdrom (everyone)
#ls -l /mnt/cdrom
total 0
-rw-r--r-- 1 root root 0 7ÔÂ 3 16:13 1
-rw-r--r-- 1 root root 0 7ÔÂ 3 16:13 2
#mount -t nfs 192.168.0.2:/mnt/cdrom /mnt/cdrom1 (cdrom1是自己创建的)
mount: 192.168.0.2:/mnt/cdrom failed, reason given by server: Permission denied
问题:为什么不灵呢? |
|