|
机器1(10.10.70.18):
[root@example /]# cat /etc/exports
/t 10.10.70.19(sync,rw,no_root_squash)
[root@example /]# service nfs restart
Shutting down NFS mountd: [ OK ]
Shutting down NFS daemon: [ OK ]
Shutting down NFS quotas: [ OK ]
Shutting down NFS services: [ OK ]
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]
[root@example /]# service portmap restart
Stopping portmapper: [ OK ]
Starting portmapper: [ OK ]
[root@example /]# ll /t
total 4
-rwxrwxrwx 1 root root 5 Jan 10 14:02 txt
[root@example /]# cat /t/txt
haha
机器2(10.10.70.19):
[root@example /]# cat /etc/auto.master
/tt /etc/auto.tt
[root@example /]# cat /etc/auto.tt
* -fstype=nfs,rw,intr,soft 10.10.70.18:/t
[root@example /]# service autofs restart
Stopping automount:[ OK ]
Starting automount:[ OK ]
[root@example /]# ll /tt
total 0
[root@example /]# ll /tt/txt
total 4
-rwxrwxrwx 1 root root 4 Jan 10 11:26 txt
[root@example /]# cat /tt/txt
cat: /tt/txt: Is a directory
问题:机器1上的txt是个文件,可在机器2上怎么提示是个目录呢?而且不能cat.ll /tt也不能看到这个文件. |
|