1、關閉防火牆
2、檢視是否安裝nfs、rpcbind
2、安裝nfs:
yum -y install nfs-utils rpcbind
3、設定開機啟動
chkconfig rpcbind on
chkconfig nfs on
4、啟動服務
service rpcbind start
service nfs start
5、查詢nfs伺服器狀態
service nfs status
6、在其他節點
執行:yum -y install nfs-utils
設定recbind開機啟動:chkconfig rpcbind on
啟動rpcbind服務:service rpcbind start
7、在服務端設定共享目錄
vim /etc/exports
新增:/home/grid *(rw,sync,no_root_squash)
8、重啟服務
service rpcbind restart
service nfs restart
9、可在其他節點檢視共享的目錄
showmount -e 172.20.8.178
10、將共享目錄掛載到其他節點本地目錄中
建立目錄:mkdir /nfs_share
掛載目錄:mount -t nfs 172.20.8.178:/home/grid /nfs_share
11、在各個節點設定共享目錄開機自動掛載
vim /etc/fstab
在末尾新增:
12、在nfs伺服器,及各個節點生成秘鑰資訊
13、在nfs服務端,拷貝
id_rsa.pub檔案生成
authorized_keys檔案,並且將各節點公鑰資訊傳送並儲存在authorized_keys檔案中。
修改authorized_keys檔案的許可權
14、在各節點建立共享目錄檔案authorized_keys的軟連線
軟連線:相當於windows裡面的快捷方式
nfs伺服器配置
nfs伺服器可以讓linux作業系統之間資料的傳送,比如你跑有linux系統的開發板和你linux電腦間資料傳送 在 etc exports 檔案中加一句話 nfs ser 192.168.0.rw,no root squash 儲存退出 nfs ser 其他linux機器 比如你的開發板 訪問的資...
NFS伺服器配置
配置nfs伺服器 如同windows之間的共享一樣,首先要確定共享的是哪個資料夾,允許哪些訪問者,還有賦予訪問者什麼許可權。這些都是通過修改 etc exports檔案來決定的,還沒有配置過nfs的這個檔案時空白的。vim etc exports 新增 如下 tmp rw,sync,no root ...
配置NFS伺服器
1 檢視nfs伺服器是否啟動 service nfs status 如下 表示正常啟動 2 配置nfs伺服器 vim etc exports 新增 如下一行 tmp rw,sync,no root squash tmp 共享目錄 可以訪問的共享目錄的主機ip,代表所有使用者 rw,sync,no r...