1、首先要开启portmap和nfs服务。
service portmap start
service nfs start
2、查看服务是否开启。
netstat -ntpl
3、修改
/etc/exports
vi /etc/exports
#/home/temp *(rw,sync,no_root_squash,all_squash)
#/home/temp *(ro,sync,no_root_squash,all_squash)
(/home/temp
4、exportfs -a
(导出所有共享的目录)
5、
showmount -e
127.0.0.1 (查被共享的目录)
Export list for 127.0.0.1:
/mnt/inst *
/home/temp *
温馨提示:答案为网友推荐,仅供参考