Linux端配置為NFS伺服器,主要修改的文件/etc/export
1、從linux連接linux下的nfs共享:
#mount -t nfs ip:/share /test
2、從AIX端連接linux下的nfs共享:
#nfso -o nfs_use_reserved_ports=1
#mount IP:/share /test
由於AIX同linux連接NFS時使用的埠號不一致,所以在掛載之前需要執行第一步操作,否則會提示許可權不夠,掛載失敗。
3、從HP-UX連接linux下的nfs共享:
# mount -t nfs IP:/share /test
4、從solaris端連接linux下的共享:
#mount -f nfs -o vers=2 IP:/share /test
#mount -f nfs -o vers=3 IP:/share /test
vers = [2|3]指定 NFS 版本。預設值是在客戶機和伺服器之間使用的 NFS 協議的版本,是在兩個系統上可獲得的最大值。如果 NFS 伺服器不支持 NFS V3, NFS 安裝將使用 NFS V2。使用 vers = [2|3] 選項選擇 NFS 版本。
(責任編輯:A6)
[火星人 ] 實用技巧:UNIX和Linux實現NFS共享連接已經有416次圍觀