NFS Server Client Tutorial

NFS Server


Install NFS Server Support
[code lang="shell"]
sudo apt-get install nfs-kernel-server nfs-common portmap
[/code]
Editing /etc/exports
[code lang="shell"]
sudo vim /etc/exports
/files 192.168.1.0/24(rw,no_root_squash,async)
sudo /etc/init.d/nfs-kernel-server restart
sudo exportfs -a
[/code]

NFS client


Install NFS client support
[code lang="shell"]
sudo apt-get install portmap nfs-common
sudo mount server.mydomain.com:/files /files
sudo /etc/init.d/portmap restart
sudo /etc/init.d/nfs-common restart
[/code]

Mounting at boot using /etc/fstab


[code lang="shell"]
sudo vim /etc/fstab
server.mydomain.com:/files /files nfs rsize=8192,wsize=8192,timeo=14,intr
[/code]

Komentarze

Popularne posty z tego bloga

Set up JBoss AS 5.1.0 and Seam 2.2.0 in Ubuntu 9.04