当前位置: > CentOS > CentOS服务器 > 环境配置 >

centos7 nfs server

时间:2015-10-10 12:24来源:www.it.net.cn 作者:IT

必须配置nfs server,才能让板子挂载到。

 

(1)yum -y install nfs-utils

(2)

[root@localhost testscbsp]# cat /etc/exports
/home/itnetcn/nuf/nfshome *(rw,sync,no_root_squash,no_all_squash)

(3)systemctl restart nfs-server

(4)

[root@localhost wheezy]# firewall-cmd –permanent –zone=public –add-service=nfs

success
[root@localhost wheezy]#
[root@localhost wheezy]# firewall-cmd –reload
success
[root@localhost wheezy]#

firewall-cmd –permanent –zone=public –add-service=nfs
firewall-cmd –reload

 

 
1 [root@c7 itnetcn]# firewall-cmd --permanent --zone=public --add-service=nfs
2 success

 

 
1 firewall-cmd --permanent --zone=public --add-service=nfs

 

 

 
1 [root@c7 itnetcn]# firewall-cmd --reload
2 success
3 [root@c7 itnetcn]#
(责任编辑:IT)
------分隔线----------------------------