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

 

posted @ 2019-12-27 10:11  alexhe  阅读(953)  评论(0编辑  收藏  举报