linuxnfs掛載配置

來源:互聯網
上載者:User

linuxnfs掛載配置

nfs 掛載 在這裡不多 贅述,根據步驟依次進行即可。有圖有真相。

服務端配置:(ip 192.168.88.85)

1. 查看 軟體nfs 軟體包安裝

rpm -qa |grep nfs

2. 查看 rpcbind 是否安裝

3 如果沒安裝 安裝:

4. 查看 是否有 exports 檔案

cat /etc/exports

如果沒有 在 etc 下手動建檔案 exports 裡面 寫的內容是:需要掛載的檔案夾目錄

沒有 自己手動建檔案 。 裡面添加的內容 是
/opt/tp-manager/data 是要掛載的目錄 *(rw,no_root_squash) 檔案的許可權(... 自己查)

服務端配置完成

用戶端 :需要 nfs 的jar包 與 服務端 1,2 兩條 操作一致。
3. 查看 服務端是否 掛載(如果沒有掛載顯示請看注意事項)
showmount -e 192.168.88.15


4.用戶端掛載命令: mount -t nfs 192.168.88.15:/opt/tp-manager/data /opt/tp-worker/data


/opt/tp-manager/data 是服務端路徑 掛載到用戶端的路徑:/opt/tp-worker/data

掛載完成:

注意事項:
服務端修改 exports 檔案需要 操作命令

exportfs -rv(重新掛載 )

service rpcbind restart

service nfs restart

service iptables stop (防火強關閉 必須)

如果用戶端想取消 掛載:umount -f /opt/tp-worker/data



聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.