首页 > 其他 > 详细

配置NFS Server

时间:2017-09-12 14:44:39      阅读:273      评论:0      收藏:0      [点我收藏+]

1. 环境设置

1.1 关闭防火墙

# service iptables stop

# chkconfig iptables off

1.2 关闭SELinux

# vim /etc/selinux/config

   SELINUX=disabled

1.3 重启系统

2. 安装NFS

# rpm -qa | grep nfs

 技术分享

3. 服务器配置

3.1 配置/etc/exports

# mkdir nfs_share

# vim /etc/exports

  /root/nfs_share *(rw,no_root_squash)

4. 启动NFS

4.1 启动NFS

# service rpcbind start

# service nfs start

4.2 查看NFS状态

# service rpcbind status

# service nfs status

技术分享

5. 客户端挂载NFS

5.1 查看可挂载的目录

# showmount -e 172.16.55.176

注:如果看不到可挂载目录,就在server节点重启nfs服务

# service nfs restart

5.2 挂载NFS目录

# mount -t nfs -o rw 172.16.55.176:/root/nfs_share /nfs

 

配置NFS Server

原文:http://www.cnblogs.com/seaBiscuit0922/p/7506319.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!