sudo yum install -y nfs-utils
sudo systemctl enable rpcbind
sudo systemctl start rpcbind
sudo systemctl enable nfs
sudo systemctl start nfs
mkdir /data/nfs
配置 /etc/exports,添加如下內(nèi)容
成都創(chuàng)新互聯(lián)公司-專業(yè)網(wǎng)站定制、快速模板網(wǎng)站建設、高性價比北京網(wǎng)站開發(fā)、企業(yè)建站全套包干低至880元,成熟完善的模板庫,直接使用。一站式北京網(wǎng)站制作公司更省心,省錢,快速模板網(wǎng)站建設找我們,業(yè)務覆蓋北京地區(qū)。費用合理售后完善,十余年實體公司更值得信賴。
/data/nfs *(rw,sync,no_root_squash,no_all_squash)
/data/nfs: 共享目錄位置。
*: 客戶端 IP(18.8.1.0/30) 范圍,* 代表所有,即沒有限制。
rw: 權(quán)限設置,可讀可寫。
sync: 同步共享目錄。
no_root_squash: 可以使用 root 授權(quán)。
no_all_squash: 可以使用普通用戶授權(quán)。
重啟nfs服務。檢查本地共享目錄
showmount -e localhost
sudo yum install -y nfs-utils
sudo systemctl enable rpcbind
sudo systemctl start rpcbind
mkdir /data/nfs
掛載目錄
sudo mount -t nfs 18.8.1.1:/data/nfs /data/nfs
添加自動掛載
sudo vi /etc/fstab
添加一行
18.8.1.1:/data/nfs /data/nfs nfs defaults 0 0
當前文章:centos安裝部署nfs
文章鏈接:http://aaarwkj.com/article42/gjoohc.html
成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供搜索引擎優(yōu)化、網(wǎng)站設計公司、網(wǎng)站改版、企業(yè)網(wǎng)站制作、動態(tài)網(wǎng)站、定制開發(fā)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)