Windows上面掛載NFS共用

來源:互聯網
上載者:User

標籤:windows

導讀 眾所周知,nfs和smb是Linux伺服器上的檔案分享權限設定協議,smb使用的是samba協議和windows的檔案分享權限設定使用的是一種協議,也就是說smb是跨平台的檔案分享權限設定協議,而NFS個人認為是Linux系統或者類uinx系統的檔案分享權限設定協議。最近看到網路博文發現windows系統也可以掛載nfs系統,忍不住分享給大家。

實驗環境

主機 作業系統 IP地址 軟體包
NFS主機 Centos7.2 192.168.190.128 nfs-utils、rpcbind
Windows Client Windows server 2008 192.168.190.129 網路檔案系統

NFS主機操作

# 使用yum安裝nfs-utils和管理工具rpcbind[[email protected] ~]# yum -y install nfs-utilsrpcbind# 建立共用資料夾[[email protected] ~]# mkdir /nfs[[email protected] ~]# vim /etc/exports# nfs是共用的目錄名,*是指所有主機,rw是指讀寫權限,如果需要唯讀可以改為ro/nfs *(rw)

# 註:給需要共用的檔案設定存取權限,因為nfs會預設將所有的訪問使用者都映射到nobody使用者,但是我們剛剛建立的使用者對需要共用的檔案沒有存取權限,這裡設定為完全訪問,若需要再公網上使用則需要將使用權限設定為可以供生產環境使用即可

[[email protected] ~]# chmod 777 /nfs[[email protected] ~]# systemctl start nfs.service[[email protected] ~]# systemctl startrpcbind.service

Windows Server 2008 R2 操作

開啟“控制台” → 點擊“角色” → 點擊“添加角色” → 點擊“下一步” → 點擊“檔案服務” → 點擊“下一步“ →點擊”下一布” → 選擇“網路檔案系統服務” → 點擊“下一步“ → 點擊”安裝“,如所示:
650) this.width=650;" src="http://www.linuxprobe.com/wp-content/uploads/2017/05/1-2.png" width="640" height="359" class="alignnone size-full wp-image-70201" style="height:auto;" />

650) this.width=650;" src="http://www.linuxprobe.com/wp-content/uploads/2017/05/2-1.png" width="662" height="489" class="alignnone size-full wp-image-70202" style="height:auto;" />

650) this.width=650;" src="http://www.linuxprobe.com/wp-content/uploads/2017/05/3-1.png" width="645" height="464" class="alignnone size-full wp-image-70204" style="height:auto;" />

安裝完成後需要同時鍵入“Win + r”鍵開啟cmd
650) this.width=650;" src="http://www.linuxprobe.com/wp-content/uploads/2017/05/4-1.png" width="645" height="364" class="alignnone size-full wp-image-70206" style="height:auto;" />
# 註:192.168.190.128是nfs伺服器的地址,/nfs是伺服器的共用目錄,X是nfs在windows中的掛載點
輸入:mount 192.168.190.128:/nfs X:
650) this.width=650;" src="http://www.linuxprobe.com/wp-content/uploads/2017/05/5-1.png" width="666" height="412" class="alignnone size-full wp-image-70207" style="height:auto;" />

開啟電腦探索已經掛載成功
650) this.width=650;" src="http://www.linuxprobe.com/wp-content/uploads/2017/05/6.png" width="667" height="374" class="alignnone size-full wp-image-70209" style="height:auto;" />

若要開機自動掛載可以點擊“電腦” → 點擊“映射網路磁碟機” → “輸入網際網路共用檔案路徑“ → ”完成“
650) this.width=650;" src="http://www.linuxprobe.com/wp-content/uploads/2017/05/7.png" width="664" height="374" class="alignnone size-full wp-image-70227" style="height:auto;" />


原文地址:http://www.linuxprobe.com/windows-mount-nfs.html


本文出自 “小華的部落格” 部落格,請務必保留此出處http://coderhsf.blog.51cto.com/12629645/1932972

Windows上面掛載NFS共用

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.