[Level 2] How to install nfs client/server on Ubuntu

NFS Server
1. apt-get install nfs-kernel-server
2. vi /etc/exports
ex.
/home/stanley *(rw,sync,no_root_squash)
3. /etc/init.d/nfs-kernel-server start


NFS Client
1. apt-get -y install nfs-common
2. vi /etc/vfstab
ex.
192.168.1.1:/home/stanley /mount/stanley nfs rw 0 0
3. mkdir -p /mount/stanley
4. mount /mount/stanley
5. mkdir -p /mount/stanley2
6. mount -t nfs 192.168.1.1:/home/stanley /mount/stanley2




Wish this helps.
regards,
Stanley Huang

Comments

Popular posts from this blog

[Level 1] Rar tool for Solaris.

[Level 2] iif in Python