码迷,mamicode.com
首页 > 其他好文 > 详细

NFS

时间:2020-01-14 09:32:48      阅读:66      评论:0      收藏:0      [点我收藏+]

标签:plugin   fas   com   sync   emd   pack   plugins   util   wal   

服务端:

[root@linuxprobe ~]# yum install nfs-utils -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Package 1:nfs-utils-1.3.0-0.el7.x86_64 already installed and latest version
Nothing to do
[root@linuxprobe ~]# systemctl restart rpcbind
[root@linuxprobe ~]# systemctl enable rpcbind
[root@linuxprobe ~]# systemctl restart nfs-server
[root@linuxprobe ~]# systemctl enable nfs-server
ln -s /usr/lib/systemd/system/nfs-server.service /etc/systemd/system/nfs.target.wants/nfs-server.service
[root@linuxprobe ~]# iptables -F
[root@linuxprobe ~]# service iptables save
iptables: Saving firewall rules to /etc/sysconfig/iptables:[  OK  ]
[root@linuxprobe ~]# mkdir /nfsfile
[root@linuxprobe ~]# ll -d /nfsfile
drwxr-xr-x. 2 root root 6 Jan 14 08:53 /nfsfile
[root@linuxprobe ~]# chmod 777 /nfsfile
[root@linuxprobe ~]# ll -d /nfsfile
drwxrwxrwx. 2 root root 6 Jan 14 08:53 /nfsfile
[root@linuxprobe ~]# echo "welcom to linuxprobe.com" > /nfsfile/readme
[root@linuxprobe ~]# vim /etc/exports
/nfsfile 192.168.10.*(rw,sync,root_squash)
[root@linuxprobe ~]# systemctl restart rpcbind
[root@linuxprobe ~]# systemctl restart nfs-server

客户端:

 

NFS

标签:plugin   fas   com   sync   emd   pack   plugins   util   wal   

原文地址:https://www.cnblogs.com/dinghailong128/p/12190273.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!