centos7 nfs安装


server:

yum -y install nfs-utils 

cat /etc/exports
/nfs 10.11.0.0/16(rw,sync,no_root_squash,no_subtree_check)

systemctl enable rpcbind

systemctl restart rpcbind

systemctl enable nfs

systemctl restart nfs

 

 

client:

 yum -y install nfs-utils

mount -t nfs 10.11.30.120:/nfs /log

vi /etc/rc.local

mount -t nfs 10.11.30.120:/nfs /log

 

 


ubuntu1804 nfs server:

 apt-get install  nfs-kernel-server nfs-common

mkdir /naslocal

vim /etc/exports 

/naslocal 10.0.0.0/8(rw,sync,no_root_squash,no_subtree_check)

 

systemctl enable rpcbind

systemctl restart rpcbind

systemctl enable nfs-server

systemctl restart nfs-server

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM