首页 > 系统服务 > 详细

Linux学习笔记十四周一次课(5月9日)

时间:2018-05-10 11:09:45      阅读:216      评论:0      收藏:0      [点我收藏+]
14.1 NFS介绍

技术分享图片

技术分享图片

技术分享图片技术分享图片

技术分享图片技术分享图片


14.2 NFS服务端安装配置

技术分享图片

技术分享图片

服务端安装nfs-utils和rpcbind;客户端只安装nfs-utils

#yum install -y nfs-utils rpcbind

#vim /etc/exports 

/home/nfstestdir

192.168.133.0/24(rw,sync,all_squash,anonuid=1000,anongid=1000)

#mkdir /home/nfstestdir

#chmod 777 /home/nfstestdir

查看监听端口#netstat -lntp

#systemctl start rpcbind

#systemctl start nfs

查看运行进程服务#ps aux | grep nfs

开机启动#systemctl enable rpcbind

#systemctl enable nfs


14.3 NFS配置选项

技术分享图片

技术分享图片技术分享图片

技术分享图片

#yum install -y  nfs-utils

#showmount -e 192.168.133.130

关闭防火墙服务#systemctl stop firewalld

关闭防火墙#setenforce 0

#mount -t nfs 192.168.133.130:/home/nfstestdir /mnt

#df -h

#touch /mnt/aminglinux.txt

#ls -l /mnt/aminglinux.txt


Linux学习笔记十四周一次课(5月9日)

原文:http://blog.51cto.com/12059818/2114653

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!