服務器端(192.168.1.98)
service portmap start
service nfs start
vi /etc/exports
/web *(rw,all_squash)
service portmap start
service nfs start
vi /etc/exports
/web *(rw,all_squash)
客戶端(192.168.1.188等)
service portmap start
mount -t nfs 192.168.1.98:/web /var/www/html
自動啓動mount
/etc/rc.d/rc.local
其它資料
unmount -l /var/www/html 卸載nfs
exportfs -arv 重新加載exportfs
exportfs -auv 卸載exportfs
showmount -e 192.168.1.98 查看nfs服務器信息
例一:顯示出目前這臺機器的 RPC 狀態
[root@linux ~]# rpcinfo -p localhost