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 37: Line 37:


/var/nfs            192.168.1.0/24(rw,no_root_squash)
/var/nfs            192.168.1.0/24(rw,no_root_squash)
Serveri reloadiks kasuta järgmist käsklust:
<pre>
sudo /etc/init.d/nfs-kernel-server restart
</pre>
Kui muudad faili /etc/exports, saad muudatused rakendada käsuga
<pre>
sudo exportfs -a
</pre>

Revision as of 12:35, 10 November 2009

Network File System 3

Tekst

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