鸡蛋学运维-5:nfs文件共享服务配置
2017-10-11 22:09
489 查看
nfs文件共享服务配置
服务端配置-(nfs-172.16.1.7)
1.软件包安装
yum -y install nfs-utils rpcbind nfs
2.启动服务
/etc/init.d/rpcbind start
/etc/init.d/rpcbind status
netstat -lntup|grep rpcbind
netstat -lntup|grep
3.创建共享目录
mkdir /data
vim /etc/exports
/data 172.16.1.*(rw,sync)
4.加载nfs
/etc/init.d/nfs reload
/etc/init.d/nfs restart
exportfs -rv
5.检查配置
rpcinfo localhost -p
showmount -e 172.16.1.7
6.授权
chown -R nfsnobody /data
客户端配置-(web-lamp-172.16.1.3,web-lnmp-172.16.1.4)
1.安装软件依赖包
yum -y install nfs-utils rpcbind nfs
2.启动rpcbind
/etc/init.d/rpcbind
chkconfig rpcbind on
chkconfig nfs on
echo "/etc/init.d/rpcbind start" >>/etc/rc.local
3.自动挂载共享目录
showmount -e 172.16.1.7
echo "mount -t nfs 172.16.1.7:/data" >>/etc/rc.local
source /etc/rc.local
服务端配置-(nfs-172.16.1.7)
1.软件包安装
yum -y install nfs-utils rpcbind nfs
2.启动服务
/etc/init.d/rpcbind start
/etc/init.d/rpcbind status
netstat -lntup|grep rpcbind
netstat -lntup|grep
3.创建共享目录
mkdir /data
vim /etc/exports
/data 172.16.1.*(rw,sync)
4.加载nfs
/etc/init.d/nfs reload
/etc/init.d/nfs restart
exportfs -rv
5.检查配置
rpcinfo localhost -p
showmount -e 172.16.1.7
6.授权
chown -R nfsnobody /data
客户端配置-(web-lamp-172.16.1.3,web-lnmp-172.16.1.4)
1.安装软件依赖包
yum -y install nfs-utils rpcbind nfs
2.启动rpcbind
/etc/init.d/rpcbind
chkconfig rpcbind on
chkconfig nfs on
echo "/etc/init.d/rpcbind start" >>/etc/rc.local
3.自动挂载共享目录
showmount -e 172.16.1.7
echo "mount -t nfs 172.16.1.7:/data" >>/etc/rc.local
source /etc/rc.local
相关文章推荐
- NFS 服务实现Linux主机之间的文件共享(配置过程)
- 三种常见的文件共享服务--ftp,nfs,samba 区别和配置
- Linux主机 NFS文件共享服务配置
- shell脚本实现nfs服务安装配置,共享文件分发
- Centos下安装配置nfs服务实现服务器间文件共享
- Linux总结笔记7-配置NFS服务实现Linux间文件共享
- 配置linux集群中的NFS文件共享服务 centos6.5Final
- 文件共享服务之NFS的配置与应用
- RHCE7学习笔记35――配置NFS和SMB文件共享服务
- NFS网络文件共享服务的配置和排错总结
- RHEL6.3配置文件共享(1) NFS服务 推荐
- NFS网络文件共享服务的配置和排错总结
- 运维笔记17 (文件共享(samb,cifs),ftp服务的配置和使用(vsftpd))
- NFS服务器安装配置实现Ubuntu 12.04与ARM文件共享
- 20170110L05-03老男孩linux实战运维培训-nfs网络文件系统服务介绍与实战01
- 鸡蛋学运维-6:nginx服务安装配置
- 运维之红帽工程师篇-----4. 配置Samba共享 、 配置NFS共享
- NFS网络文件系统服务配置、验证及错误解决
- 【Linux】 Samba 服务器安装配置实现与Windows系统的文件共享服务
- 企业级NFS网络文件共享服务