当前位置: 技术问答>linux和unix
fedora 12 nfs问题 请各位达人指点,在线等,多谢!
来源: 互联网 发布时间:2016-10-22
本文导语: 主机fedora12,IP:192.168.1.11 目标板ip:192.168.1.26 步骤:1。service rpcbind restart [root@fedora12 ~]# service rpcbind restart Stopping rpcbind: [ OK ] Starting rpcbind: [ OK ] 2.service nfs restart [root@fedora12 ~]# service nfs restart Sh...
主机fedora12,IP:192.168.1.11
目标板ip:192.168.1.26
步骤:1。service rpcbind restart
[root@fedora12 ~]# service rpcbind restart
Stopping rpcbind: [ OK ]
Starting rpcbind: [ OK ]
2.service nfs restart
[root@fedora12 ~]# service nfs restart
Shutting down NFS mountd: [ OK ]
Shutting down NFS daemon: [ OK ]
Shutting down NFS quotas: [ OK ]
Shutting down NFS services: [ OK ]
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]
3.exportfs -rv
[root@fedora12 ~]# exportfs -rv
exporting 192.168.*.*:/mnt
exporting 192.168.*.*:/home
4.目标板配置ifconfig eth0 192.168.1.26
ifconfig查看:
ifconfig
eth0 Link encap:Ethernet HWaddr E0:BC:43:01:5F:7F
inet addr:192.168.1.26 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:30
RX bytes:0 (0.0 B) TX bytes:3540 (3.4 KiB)
Interrupt:17 Base address:0x4000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:11 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:788 (788.0 B) TX bytes:788 (788.0 B)
5.mount共享目录
mount -t nfs 192.168.1.11:/home /opt -o nolock
结果:
mount: RPC: Unable to receive; errno = Connection refused
防火墙已关:
[root@fedora12 ~]# service iptables stop
iptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Unloading modules: [ OK ]
请各位达人指点,在线等,多谢!
目标板ip:192.168.1.26
步骤:1。service rpcbind restart
[root@fedora12 ~]# service rpcbind restart
Stopping rpcbind: [ OK ]
Starting rpcbind: [ OK ]
2.service nfs restart
[root@fedora12 ~]# service nfs restart
Shutting down NFS mountd: [ OK ]
Shutting down NFS daemon: [ OK ]
Shutting down NFS quotas: [ OK ]
Shutting down NFS services: [ OK ]
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]
3.exportfs -rv
[root@fedora12 ~]# exportfs -rv
exporting 192.168.*.*:/mnt
exporting 192.168.*.*:/home
4.目标板配置ifconfig eth0 192.168.1.26
ifconfig查看:
ifconfig
eth0 Link encap:Ethernet HWaddr E0:BC:43:01:5F:7F
inet addr:192.168.1.26 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:30
RX bytes:0 (0.0 B) TX bytes:3540 (3.4 KiB)
Interrupt:17 Base address:0x4000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:11 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:788 (788.0 B) TX bytes:788 (788.0 B)
5.mount共享目录
mount -t nfs 192.168.1.11:/home /opt -o nolock
结果:
mount: RPC: Unable to receive; errno = Connection refused
防火墙已关:
[root@fedora12 ~]# service iptables stop
iptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Unloading modules: [ OK ]
请各位达人指点,在线等,多谢!
|
|
selinux暂时关闭试试。
setenforce 0
setenforce 0