11.13zy

服务端

客户端

复制代码
[root@localhost ~] mkdir /nfs/shared
[root@localhost ~] mount 192.168.150.130:/nfs/shared /nfs/shared


[root@localhost ~] mount 192.168.150.130:/nfs/shared /nfs/shared
[root@localhost ~] ls /nfs/shared

服务端

复制代码
[root@localhost ~] mkdir /nfs/upload
[root@localhost ~] chmod 777 /nfs
[root@localhost ~] chmod 777 /nfs/upload
[root@localhost ~] vim /etc/exports
-----------------------------------------------------
/nfs/upload     192.168.200.0/24(rw,anonuid=210,anongid=210,all_squash)
-----------------------------------------------------
[root@localhost ~] exportfs -ra

[root@localhost ~] groupadd -g 210 nfs-upload
[root@localhost ~] useradd -u 210 -g nfs-upload nfs-upload

[root@localhost ~] tail -n 1 /etc/passwd

客户端

复制代码
[root@localhost /] mkdir /nfs/shared
[root@localhost /] mkdir /nfs/upload

[root@localhost ~] mount 192.168.200.128:/nfs/upload /nfs/upload
[root@localhost ~] cd /nfs/upload/
[root@localhost upload] touch abc

服务端

复制代码
[root@localhost ~] useradd tom
[root@localhost ~] chmod 770 /home/tom
[root@localhost ~] vim /etc/exports

[root@localhost ~] exportfs -ra
[root@localhost ~] cd /home/tom
[root@localhost ~] touch test

客户端

复制代码
[root@localhost ~] useradd tom
[root@localhost ~] mkdir /tom
[root@localhost ~] mount 192.168.150.130:/home/tom /tom

测试

相关推荐
zbtlink4 分钟前
Mesh组网:真需求还是被制造的需求?
网络·智能路由器
赋缘汇(fableshare)-黄从庆26 分钟前
Ubuntu重启后进入initramfs导致无法开机
linux·运维·ubuntu
CHINA红旗下33 分钟前
固定虚拟机的IP地址
运维·服务器·网络
网络研究院34 分钟前
美国网络安全趋势与发展
网络·安全·美国·趋势·发展
DO_Community34 分钟前
百亿参数开源模型托管成本账:从按 Token 计费到单卡 GPU 服务器怎么选?
运维·服务器·开源·llm·agent
1024+35 分钟前
在 ‌Ubuntu 24.04‌ 上安装 ‌Python 3.8‌
linux·python·ubuntu
着迷不白38 分钟前
十、网络客户端工具curl, wget, ssh, scp, sftp, rsync
运维·网络·ssh
the sun3441 分钟前
集群架构实操:MySQL主、从节点配置
运维·服务器
袁小皮皮不皮1 小时前
6.HCIP OSPF域间防环机制与虚链路
服务器·网络·笔记·网络协议·学习·智能路由器
ai安歌1 小时前
鸿蒙PC:Linux 搭建 Rust 开发环境并实现计算器项目
linux·rust·harmonyos