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