服务器作业2

关闭防火墙

root@localhost \~\]# systemctl stop firewalld \[root@localhost \~\]# setenforce 0 配置文件 ![在这里插入图片描述](https://i-blog.csdnimg.cn/direct/56b38d4eb5fb4e8292e1399cf8135d2f.png) 创建用户nfs-upload \[root@localhost \~\]# useradd -u 210 nfs-upload \[root@localhost \~\]# groupmod -g 210 nfs-upload 创建tom用户 \[root@localhost \~\]# useradd tom 查看tom用户id \[root@localhost \~\]# id tom 重启nfs服务: \[root@localhost \~\]# systemctl restart nfs-server 加载新的配置内容信息 \[root@localhost \~\]# exportfs -ra 客户端: 查看可挂载文件 \[root@localhost \~\]# showmount -e 192.168.61.128 挂载 \[root@localhost t\]# mount 192.168.61.128:/nfs/shared /s \[root@localhost t\]# mount 192.168.61.128:/nfs/upload /n \[root@localhost \~\]# mount 192.168.61.128:/home/tom /t 自动挂载: \[root@localhost \~\]# vim /etc/fstab ![在这里插入图片描述](https://i-blog.csdnimg.cn/direct/3ff1b61226644d8ea81291073e9eecae.png) 重启系统

相关推荐
JuiceFS6 小时前
从 MLPerf Storage v2.0 看 AI 训练中的存储性能与扩展能力
运维·后端
chen94512 小时前
mysql 3节点mgr集群部署
运维·后端
LH_R13 小时前
OneTerm开源堡垒机实战(三):功能扩展与效率提升
运维·后端·安全
dessler14 小时前
Hadoop HDFS-高可用集群部署
linux·运维·hdfs
少妇的美梦1 天前
logstash教程
运维
chen9451 天前
k8s集群部署vector日志采集器
运维
chen9451 天前
aws ec2部署harbor,使用s3存储
运维
christine-rr2 天前
linux常用命令(4)——压缩命令
linux·服务器·redis
東雪蓮☆2 天前
深入理解 LVS-DR 模式与 Keepalived 高可用集群
linux·运维·服务器·lvs
qq_264220892 天前
LVS负载均衡群集和LVS+Keepalived群集
运维·负载均衡·lvs