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

测试

相关推荐
笑锝没心没肺17 小时前
fail2ban工具安装配置及使用
linux·运维·服务器
zt1985q18 小时前
本地部署开源智能家居集成平台 ioBroker 并实现外部访问( Windows 版本)
运维·服务器·智能家居
大卡片18 小时前
linux内核驱动开发
linux·运维·驱动开发
心心喵19 小时前
[linux] nohup和pm2的区别 进程保活
linux·运维·服务器
醉熏的石头21 小时前
Ubuntu 中的编程语言(中)
linux·ubuntu·scala
dddwjzx1 天前
嵌入式Linux C应用编程入门——信号
linux·嵌入式
fei_sun1 天前
开放最短路径优先OSPF----基于链路状态
网络
精明的身影1 天前
网络计划WebApp求解:融合Python与AI决策的项目管理系统
网络·python·web app
范什么特西1 天前
网络代理问题
java·linux·服务器
utf8mb4安全女神1 天前
【Redis数据库】哨兵集群/redis集群/安装配置/主从复制/数据持久化操作/数据结构/安全限制/PHP redis/
linux·服务器·数据结构·数据库·redis·缓存