然后关闭防火墙以及更改Selinux关于NIS的选项

/etc/init.d/iptables stop 防护墙服务关闭)

chkconfig iptables off

system-config-selinux 设置selinux)

2、客户端

编辑fstab文件,实现开机自动挂载

mount -t nfs IP:/目录  挂载到的目录  此为临时挂载)

如:mount -t nfs 192.168.0.9:/doce     /doc

编辑FSTAB文件

vim /etc/init.d/fstab

IP:/目录 挂载到的目录nfs defaults 0 0

然后关闭防火墙以及更改Selinux关于NIS的选项

/etc/init.d/iptables stop 防护墙服务关闭)

chkconfig iptables off

system-config-selinux 设置selinux)

至此,linux搭建NFS服务器完毕.


相关内容

    暂无相关文章