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

测试

相关推荐
未济5 天前
linux 配置环境变量
linux
傲世仙尊5 天前
目录即文件-Ext文件系统收尾篇
linux·c语言
虎头金猫5 天前
4K 视频总卡在公网带宽?用 N1 + OpenList 把网盘播放链路重新理顺
运维·服务器·网络·python·容器·beautifulsoup·pandas
_艾伦 耶格尔.5 天前
进程间通信
linux
Liuqy-055 天前
Linux IO编程——静态库、动态库
linux
wuyk5555 天前
《WiFi 嵌入式物联网开发全套实战》| 第 16 章 ESP32 AP+STA 双模共存原理与工程坑点
网络·stm32·物联网
彧azz5 天前
Linux 环境下 Redis 学习总结:数据类型、持久化、锁、事务、主从与缓存问题
linux·redis·笔记·学习·面试
-梅5 天前
linux(8) 软硬链接
linux·运维·服务器
Wang's Blog5 天前
Java 项目实战: 外卖平台-文件下载与ServletOutputStream回写浏览器
服务器·项目开发
AIgorithmGEEK5 天前
[Linux]线程三部曲(上):一个执行流的诞生——从操作系统一路拆到 pthread_create
linux·线程·pid