服务器作业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) 重启系统

相关推荐
weixin_307779131 天前
Jenkins中的Jakarta Activation API插件:功能、使用与最佳实践
运维·开发语言·ci/cd·自动化·jenkins
Macbethad1 天前
工业触摸屏技术指南:选型、难点与实战解决方案
服务器·前端·数据库
王 富贵1 天前
【Linux】防火墙常用命令(iptables/firewalld/ufw)
linux·运维·服务器
一条咸鱼¥¥¥1 天前
【运维经济】思科交换机和路由器的密码重置方法
运维·网络·智能路由器
写代码的【黑咖啡】1 天前
Linux系统简介及常用命令分类详解
linux·运维·服务器
❀͜͡傀儡师1 天前
docker一键部署夜莺监控
运维·docker·容器
0思必得01 天前
[Web自动化] HTML列表标签
运维·python·自动化·html·web自动化
lang201509281 天前
Sentinel限流核心:ThrottlingController设计详解
服务器·网络·sentinel
松涛和鸣1 天前
DAY27 Linux File IO and Standard IO Explained: From Concepts to Practice
linux·运维·服务器·c语言·嵌入式硬件·ubuntu
GeniuswongAir1 天前
飞牛NAS死机排查
linux·运维·服务器