Network File System v.3: Difference between revisions

From ICO wiki
Jump to navigationJump to search
Ajoonsaa (talk | contribs)
No edit summary
Ajoonsaa (talk | contribs)
No edit summary
Line 16: Line 16:
apt-get install nfs-kernel-server nfs-common portmap
apt-get install nfs-kernel-server nfs-common portmap
</pre>
</pre>


=NFS serveri seadistamine=
=NFS serveri seadistamine=
Line 43: Line 44:
<pre>
<pre>
sudo exportfs -a
sudo exportfs -a
</pre>
=NFS kliendi seadistamine=
Installeerimine apt abil:
<pre>
sudo apt-get install portmap nfs-common
</pre>
Loo kataloog /var/files salvestatavate failide jaoks
<pre>
mkdir /var/files
</pre>
Testimiseks tuleb mountida loodud kataloog käsitsi kasutades mount käsku
<pre>
mount <serveri ip>:/var/nfs /var/files
</pre>
Kontrollimiseks sisesta käsk
<pre>
df -h
</pre>
</pre>

Revision as of 12:52, 10 November 2009

Töö käik

Logime ennast root kasutajaks:

sudo -i

Enne installerimist tasub uuendada tarkvara nimekirja:

apt-get update

NFS serveri installeerimine

Installeerimine apt abil:

apt-get install nfs-kernel-server nfs-common portmap


NFS serveri seadistamine

Luua jagatavate failide jaoks kataloog

mkdir /var/nfs

Ava nanoga fail /etc/exports

 
nano /etc/exports

Lisada faili lõppu rida

/var/nfs            192.168.1.0/24(rw,no_root_squash)

Serveri reloadiks kasuta järgmist käsklust:

sudo /etc/init.d/nfs-kernel-server restart

Kui muudad faili /etc/exports, saad muudatused rakendada käsuga

sudo exportfs -a


NFS kliendi seadistamine

Installeerimine apt abil:

sudo apt-get install portmap nfs-common

Loo kataloog /var/files salvestatavate failide jaoks

mkdir /var/files

Testimiseks tuleb mountida loodud kataloog käsitsi kasutades mount käsku

mount <serveri ip>:/var/nfs /var/files

Kontrollimiseks sisesta käsk

df -h