AIX下配置NFS 環境:服務端:AIX 5.3.10用戶端:Red Hat Linux As 5 服務端1.建立檔案系統soft同時mount該檔案系統#mount /soft 2.編譯服務端的/etc/hosts檔案,添加NFS用戶端資訊 192.168.1.103 stdby 3.編輯/etc/exports,(預設情況下沒有這個檔案, 需要自己建立)vi /etc/exports/soft -rw,root=stdby,access=stdby 4.編輯/etc/xtab /soft -rw,root=stdby_1,access=stdby_1 www.2cto.com 5.啟、停NFS服務 立即啟動 #/usr/sbin/mknfs '-N' 立即啟動,restart也自動運行 #/usr/sbin/mknfs '-B'立即停止 #/usr/sbin/rmnfs '-N' 立即停止,系統停止也停止 #/usr/sbin/mknfs '-B' 6.伺服器上執行 #exportfs -a 該命令將匯出/etc/exports中寫入的所有目錄 用戶端配置:1.用戶端機器的host中寫入NFS伺服器的資訊,我的用戶端是linux,修改/etc/hosts 192.168.1.185 hxl 2.建立目錄並載入#mkdir data #mount hxl:/soft /data 載入成功www.2cto.com 3.查看載入目錄[root@stdby data]# pwd/data[root@stdby data]# ls -altotal 2511436drwxr-xr-x 7 202 202 4096 Sep 2 10:53 .drwxr-xr-x 27 root root 4096 Sep 2 15:53 ..-rw-r----- 1 202 202 1564425851 Aug 22 08:54 aix.ppc64_11gR2_database_1of2.zip-rw-r----- 1 202 202 1007010341 Aug 19 11:56 aix.ppc64_11gR2_database_2of2.zipdrwxr-xr-x 9 202 202 4096 Dec 21 2009 databasedrwxr-x--- 2 202 202 12288 Aug 19 12:03 DownloadDirectordrwxr-xr-x 3 203 202 256 Sep 2 10:55 gridsoft-rw-r----- 1 202 202 75320 Aug 20 10:22 gzip-1.2.4a-10.aix5.2.ppc.rpmdrwxr-xr-x 2 202 202 256 Sep 1 09:59 javadrwxr-xr-x 2 202 202 256 Aug 19 11:44 lost+found-rw-r----- 1 202 202 156854 Aug 20 10:22 unzip-5.51-1.aix5.1.ppc.rpm www.2cto.com 發現在用戶端能看到了服務端/soft的內容伺服器端用戶端載入成功後,可以查看載入的機器[hxl/root]#showmountstdby[hxl/root]# -- The End --