释放双眼,带上耳机,听听看~!
NFS服务端安装
1.nfs 安装
yum install -y nfs-utils
2.创建共享目录文件夹
mkdir /share
chmod 777 /share
3.修改配置文件传输规则
vi /ect/exports
/share *(rw,sync,no_root_squash)
4.开启nfs和rpcbind服务
重启服务
systemctl restart rpcbind
systemctl restart nfs-server
设置开机自启
systemctl enable rpcbind
systemctl enable nfs-server
5.检查 挂载
showmount -e localhost
6.查询NFS的状态
查询服务状态 systemctl status nfs
停止服务 systemctl stop nfs
开启服务 systemctl start nfs
重启服务 systemctl restrart nfs
NFS客户端安装
1.安装nfs-utils
yum install nfs-utils -y
2.创建目录,赋予权限
mkdir /client-share
chomod 777 /client-share
3.执行nfs挂载
mount -t nfs 192.168.81.184:/home/fugw /fugw
4.查看客户端挂载信息
df -h
NFS卸载挂载目录
普通卸载 umount /share
强制卸载 umount -lf /share
NFS挂载注意事项
1.在 mount 与 umount(解除挂载)操作时,用户的当前路径不能是操作的目标路径。
2.mount -t nfs 192.168.81.184:/home/fugw /fugw
本机的/fugw 和192.168.81.184的 /home/fugw 目录必须提前创建
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
其实美丽的故事都是没有结局的,只因为它没有结局所以才会美丽。