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.
總結
以上是生活随笔為你收集整理的EXSI-NFS实验的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 中国SaaS服务TOP30出炉
- 下一篇: 学习通A类程序题答案(旧的,不是考试题库