當(dāng)前位置:
首頁 >
NFS 共享存储
發(fā)布時(shí)間:2025/3/8
22
豆豆
服務(wù)器客戶端
yum -y install rpcbind nfs-utils
服務(wù)器
vim /etc/exports /data 192.168.10.0/24(rw,sync,no_root_squash) * ro * rw * sync * async systemctl enable nfs-server systemctl enable rpcbind systemctl start nfs-server systemctl start rpcbind.serviceexportfschmod o+w /dataexportfs -v /data 192.168.10.0/24(rw,async,wdelay,hide,no_subtree_check,sec=sys,secure,root_squash,no_all_squash)常用選項(xiàng)
* -a:全部卸載或全部掛載 * -r:重新掛載 * -u:卸載某個(gè)目錄 * -v:顯示共享目錄 * 常用組合:exportfs -arv * 服務(wù)端更改配置文件后,不重啟服務(wù),直接執(zhí)行該命令就可以使更改后的配置文件生效。 注意: 在重啟nfs服務(wù)之前需要先將所有掛載點(diǎn)卸載,否則將發(fā)生程序錯(cuò)誤,嚴(yán)重者會(huì)拖垮系客戶端
yum -y install rpcbind nfs-utils systemctl start rpcbind.serviceshowmount -e 192.168.10.100mount 192.168.10.100:/data /data1 vim /etc/fstab 192.168.10.100:/data /data nfs rw服務(wù)器客戶端 # 使創(chuàng)建者 創(chuàng)建完之后,為創(chuàng)建者的用戶。
vim /etc/idmapd.conf 5 Domain = xx.comsystemctl restart rpcbind.service本文轉(zhuǎn)自 295631788 51CTO博客,原文鏈接:http://blog.51cto.com/hequan/2063689,如需轉(zhuǎn)載請(qǐng)自行聯(lián)系原作者
總結(jié)
- 上一篇: pg_resetxlog清理的pg_xl
- 下一篇: 使用 nvm 安装 nodejs 和 n