NFS服务企业级配置实战
1、服务器信息
由于我的是在虚拟机中实战的,服务器信息如下
[root@localhost~]# cat /etc/redhat-release
CentOSrelease 6.6 (Final)
[root@localhost~]# uname -r
2.6.32-504.el6.x86_64
[root@localhost~]# uname -m
x86_64
2、查看并启动rpcbind以及NFS服务,然后加入开机自启
[root@localhost~]# /etc/init.d/rpcbind status
rpcbind 已停
开启rpcbind服务
[root@localhost~]# /etc/init.d/rpcbind start
正在启动 rpcbind: [确定]
[root@localhost~]# /etc/init.d/rpcbind status
rpcbind(pid 3746) 正在运行...
查看NFS服务,并启动
[root@localhost~]# /etc/init.d/nfs status
rpc.svcgssd已停
rpc.mountd已停
nfsd 已停
rpc.rquotad已停
[root@localhost~]# /etc/init.d/nfs start
启动 NFS 服务: [确定]
关掉 NFS 配额: [确定]
启动 NFS mountd: &n

本文档详述了如何在CentOS 6.6系统上配置NFS服务端和客户端,包括启动rpcbind和NFS服务,设置开机自启,创建共享文件并授权,配置NFS服务器端的exports文件,以及客户端的安装和挂载操作。最后验证了读写数据的功能,并确保服务在开机时自动启动。
最低0.47元/天 解锁文章
1393





