nfs 及iptables设置
来源:互联网 发布:sqlserver导入数据库 编辑:程序博客网 时间:2024/06/05 08:20
/etc/exports文件设置如下:
/home/jychen/share/ *(rw,sync)
/media/ *(ro,sync)
防火墙设置
新建文件: /etc/sysconfig/nfs
MOUNTD_PORT="4002"
STATD_PORT="4003"
LOCKD_TCPPORT="4004"
LOCKD_UDPPORT="4004"
iptables -A INPUT 2 -p tcp --dport 111 -j ACCEPT
iptables -A INPUT 2 -p udp --dport 111 -j ACCEPT
iptables -A INPUT 2 -p tcp --dport 2049 -j ACCEPT
iptables -A INPUT 2 -p udp --dport 2049 -j ACCEPT
iptables -A INPUT 2 -p tcp --dport 4002:4004 -j ACCEPT
iptables -A INPUT 2 -p udp --dport 4002:4004 -j ACCEPT
启动服务:
service nfs start
service portreserve start
客户端:
mount -t nfs 192.168.56.1:/home/jychen/share /mnt/nfs
或者:mount -t nfs -o 'vers=3' 192.168.56.1:/home/jychen/share /mnt/nfs
后者为版本问题。
- nfs 及iptables设置
- nfs服务所需要的的iptables设置
- NFS服务器及防火墙设置
- NFS 设置方法及问题
- iptables设置
- iptables设置
- iptables 设置
- IPTABLES设置
- iptables 设置
- iptables 设置
- NFS 设置
- nfs 设置
- Linux grub 命令引导过程及Iptables设置
- Ubuntu双网卡连接内外网及iptables设置(转)
- linux系统下修改SSH端口及iptables设置方法
- NFS服务器设置及mount命令挂载
- Windows下NFS客户端的安装及设置
- ubuntu ping通开发板及上nfs 服务设置
- JQuery学习笔记
- 做的小游戏 猜数字
- velocity模板的使用简单的语法
- 自定义抽屉控件
- farewell
- nfs 及iptables设置
- 关于如何选好游戏3D引擎编程的一些经验
- 绚丽的JQuery插件
- java基础1
- oracle优化,hint的使用! (系统自动优化有时不是最好的,我们可以手动添加hint来提高查询效率
- 创新源于模仿之五:做一个自己的QuickAction
- firefox 配置
- having
- lv 算法与回溯法相结合解决n皇后问题