服务器端(例如:192.168.1.98)
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 其它资料 umount -l /var/www/html 卸载nfs exportfs -arv 重新加载exportfs exportfs -auv 卸载exportfs showmount -e 192.168.1.98 查看nfs服务器信息 範例一:顯示出目前這部主機的 RPC 狀態 [root@linux ~]# rpcinfo -p localhost |
|