nfs配备(centos5 测试通过)

nfs配置(centos5 测试通过)
参考 http://linux.vbird.org/linux_server/0330nfs.php#What_NFS_perm
­
服务器端(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
­
­
其它资料
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