Ubuntu架设nfs server

1. Install
$ sudo apt-get install nfs-common
$ sudo apt-get install nfs-kernel-server

2.设定/etc/exports (For example:将/mnt/iso share给all net使用)
$ sudo vi /etc/exports
/mnt/iso *(ro,sync)

3.启动nfs server
$ sudo /etc/init.d/nfs-kernel-server start

4.检查
$ showmount -e localhost
成功的话应该可以看到这样的讯息:
Export list for localhost:
/mnt/iso *