nfs 文件共享

一、分别安装服务端及客户端

 客户端  安装:yum -y install showmount

二、服务端文件配置  /etc/exports   

/home/data/images/assetsTypeIcon 10.10.100.0/24(rw,sync,all_squash,anonuid=0,anongid=0)

三、启动服务 service nfs start

四、开机自启动 

# 启动 rpcbind 和配置开机自启动
systemctl start rpcbind
systemctl enable rpcbind

# 启动 nfs 和配置开机自启动
systemctl start nfs
systemctl enable nfs

四、客户端挂载   mount -t nfs 10.10.100.224:/home/data/images/assetsTypeIcon/ /home/data/images/assetsTypeIcon/

五、查看服务器授权给客户端那些目录

showmount -e 192.168.100.100

 

posted @ 2020-07-27 14:06  狭路相逢智者胜  阅读(111)  评论(0编辑  收藏  举报