EXSI-NFS实验

A-EXSI-NFS实验

2022年3月25日

8:20

iptables -F

iptables-save

systemctl stop firewalld

#setenforce [0|1]命令修改SELinux当前的运行模式(0为禁用,1为启用)

getenforce

Enforcing

setenforce 0

getenforce

Permissive

NFS

两台CentOS 7即可

EXI-里面一台(客户机)

VM—里面一台(服务器)

需要网络互通

#服务器

#安装nfS和rpc服务

yum install -y nfs-utils

yum install -y rpcbind

systemctl start rpcbind

systemctl start nfs-server nfs-secure-server

systemctl enable nfs

systemctl enable rpcbind

firewall-cmd --permanent --add-service=nfs

firewall-cmd  --reload

cd /

mkdir /wqd

#配置(IP网段--改一下)

vi /etc/exports

/wqd 192.168.100.0/24(rw,sync,all_squash,anonuid=1000,anongid=1000)

/protected 192.168.100.0/24(rw,no_root_squash)

给共享目录赋权

cd /

chmod 777 wqd

重新加载:

systemctl reload nfs

#客户端

打开网页连接EXI(我的6.5_EXI)

打开左边导航栏第五个

新建数据存储

点击挂载NFS数据存储>

下一页

名称随便>

NSF服务器:服务器IP>

NFS共享:/wqd>

完成

等待之后可能就后出现

——————————————————————————————

exportfs -arv   #卸载挂载

vim /etc/exports

/wqd 192.168.100.0/24(rw,sync,all_squash,anonuid=1000,anongid=1000)

/protected 192.168.100.0/24(rw,no_root_squash)

service nfs stop   #停止nfs服务

yum erase nfs-utils.x86_64   #卸载nfs服务

2.

3.

4.

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

你可知这世上再难遇我

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值