vbox centos 与开发板nfs配置

来源:互联网 发布:python snmp 编辑:程序博客网 时间:2024/05/19 12:15

主机(192.168.1.103)配置:

1)安装nfs文件

yum -y install nfs-utils rpcbind

2)配置服务:

# cat /etc/exports 
/home/happyone/work/sharenfs  *(rw,sync,no_root_squash)

3)启动服务:

#service rpcbind start
#service nfs start

4)关闭iptables

#service iptables stop

--------------------------------

1) 临时生效,重启后复原
开启: service iptables start
关闭: service iptables stop

2) 永久性生效,重启后不会复原
开启: chkconfig iptables on
关闭: chkconfig iptables off

--------------------------------

5)设置连接方式为桥接对于连接开发的网卡


开发板(192.168.1.124)配置:

1)编辑脚本nfs.sh

t# cat nfs.sh 
#!/bin/sh
mount -t nfs -o nolock 192.168.15.103:/home/happyone/sharenfs  /mnt/nfs