码迷,mamicode.com
首页 > 其他好文 > 详细

Set nfs server on rhel7

时间:2018-08-24 11:41:34      阅读:141      评论:0      收藏:0      [点我收藏+]

标签:nfs-utils   art   syn   gui   zone   permanent   ide   -o   端口   

server 端安装:

# yum install nfs-utils rpcbind
# mkdir -p /opt/dir
# cat /etc/exports
/opt/dir   *(rw,sync,no_root_squash)

server端需要打开相关的端口firewalld配置

# firewall-cmd --add-service=nfs --zone=public --permanent
# firewall-cmd --add-service=mountd --zone=public --permanent
# firewall-cmd --add-service=rpc-bind --zone=public --permanent
# firewall-cmd --reload
# firewall-cmd --list-all
public
  target: default
  icmp-block-inversion: no
  interfaces: 
  sources: 
  services: ssh dhcpv6-client nfs mountd rpc-bind
# service rpcbind start; service nfs start
 ...

client 端配置:

# yum install nfs-utils rpcbind
# service rpcbind start
# mkdir -p /mnt/mig

client 端查看:

# rpcinfo -p ${server‘s ip}
 ...

#  showmount -e ${server‘s ip}
Export list for ...
/opt/dir *

# mount -t nfs ${server‘s ip}:/opt/dir  /mnt/mig -vvvv  ###for debug
...
# mount -t nfs ${server‘s ip}:/opt/dir  /mnt/mig -o vers=3 ###mount by v3

Set nfs server on rhel7

标签:nfs-utils   art   syn   gui   zone   permanent   ide   -o   端口   

原文地址:http://blog.51cto.com/11527071/2163721

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!