参考 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 狀態
# rpcinfo -p localhost
服务器端(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 狀態
# rpcinfo -p localhost
本文详细介绍了如何在服务器端配置NFS服务,并实现文件共享。包括启动服务、设置共享目录权限、客户端挂载操作及常见命令如卸载、重新加载共享目录等。
6万+

被折叠的 条评论
为什么被折叠?



