jeecg 分布式部署附件共享问题(linux下配置共享磁盘nfs服务)
来源:互联网 发布:京东店铺怎么优化 编辑:程序博客网 时间:2024/05/09 09:44
假设共享磁盘服务器192.168.1.100,目录/opt/resource/,只允许192.168.1.*网段访问。
修改/etc/exports文件,添加:/opt/resource 192.168.1.*(rw,async,no_root_squash)
执行:exportfs -a
修改/etc/sysconfig/nfs文件,将下列内容的注释去掉:
RQUOTAD_PORT=875
LOCKD_TCPPORT=32803
LOCKD_UDPPORT=32769
MOUNTD_PORT=892
重启nfs服务:service nfs restart
防火墙配置增加:
#portmap
iptables -A INPUT -p tcp --dport 111 -j ACCEPT
iptables -A INPUT -p udp --dport 111 -j ACCEPT
#nfsd
iptables -A INPUT -p tcp --dport 2049 -j ACCEPT
iptables -A INPUT -p udp --dport 2049 -j ACCEPT
#rquotad
iptables -A INPUT -p tcp --dport 875 -j ACCEPT
iptables -A INPUT -p udp --dport 875 -j ACCEPT
#mountd
iptables -A INPUT -p tcp --dport 892 -j ACCEPT
iptables -A INPUT -p udp --dport 892 -j ACCEPT
#lockd
iptables -A INPUT -p tcp --dport 32803 -j ACCEPT
进行挂载:mount -t nfs 192.168.1.100:/opt/resource /opt/web/resource
服务器启动自动挂载需修改/etc/fstab文件,添加如下内容:
192.168.1.100:/opt/resource /opt/web/resource nfs defaults 0 0
修改/etc/exports文件,添加:/opt/resource 192.168.1.*(rw,async,no_root_squash)
执行:exportfs -a
修改/etc/sysconfig/nfs文件,将下列内容的注释去掉:
RQUOTAD_PORT=875
LOCKD_TCPPORT=32803
LOCKD_UDPPORT=32769
MOUNTD_PORT=892
重启nfs服务:service nfs restart
防火墙配置增加:
#portmap
iptables -A INPUT -p tcp --dport 111 -j ACCEPT
iptables -A INPUT -p udp --dport 111 -j ACCEPT
#nfsd
iptables -A INPUT -p tcp --dport 2049 -j ACCEPT
iptables -A INPUT -p udp --dport 2049 -j ACCEPT
#rquotad
iptables -A INPUT -p tcp --dport 875 -j ACCEPT
iptables -A INPUT -p udp --dport 875 -j ACCEPT
#mountd
iptables -A INPUT -p tcp --dport 892 -j ACCEPT
iptables -A INPUT -p udp --dport 892 -j ACCEPT
#lockd
iptables -A INPUT -p tcp --dport 32803 -j ACCEPT
iptables -A INPUT -p udp --dport 32769 -j ACCEPT
进行挂载:mount -t nfs 192.168.1.100:/opt/resource /opt/web/resource
服务器启动自动挂载需修改/etc/fstab文件,添加如下内容:
192.168.1.100:/opt/resource /opt/web/resource nfs defaults 0 0
0 0
- jeecg 分布式部署附件共享问题(linux下配置共享磁盘nfs服务)
- jeecg 分布式部署附件共享问题(Linux软连接和硬链接)
- linux 下共享磁盘 nfs
- linux使用nfs、portmap服务共享远程磁盘的方法
- Linux下配置NFS共享文件系统
- 将linux系统磁盘共享到windows系统下【windows映射磁盘】|配置samba服务
- nfs共享三步, linux共享配置
- Linux中的磁盘共享---NFS与ISCSI
- linux磁盘共享nfs及iscsi
- 设置磁盘共享nfs
- 磁盘共享之NFS
- Linux NFS配置 远程共享
- Linux NFS 文件共享配置
- linux中NFS共享配置
- linux下设置nfs共享
- linux下配置samba共享服务
- NFS 服务实现Linux主机之间的文件共享(配置过程)
- 回顾Linux下NFS共享文件,搭TFTP服务共享文件。
- BZOJ 2216: [Poi2011]Lightning Conductor
- Jpcap的实现过程
- Xcode使用心得01:断点中断问题和调整编译目标
- JAX-RS编辑
- android学习杂记(3)--百度地图开发环境的配置
- jeecg 分布式部署附件共享问题(linux下配置共享磁盘nfs服务)
- C语言volatile、extern、auto、register的作用
- KNN算法总结
- Create Seamless Web Background Textures in Minutes
- 菜鸟调错(九)——POST方法提交参数丢失问题
- Android UI相关——BadgeView
- 最佳单例模式实现方式-单枚举类实现
- 在R中统计数据的频数或者密度分布并图形化
- 错误备忘录之List元素遍历改变