Linux Systeembeheer/Bestanden en printers delen: verschil tussen versies

Verwijderde inhoud Toegevoegde inhoud
701247ld (overleg | bijdragen)
701247ld (overleg | bijdragen)
Regel 328:
van de nfs is.
Uiteraard moet de map die we willen delen bestaan.
 
''# mkdir p /shares/Public/upload''
 
Regel 335 ⟶ 336:
 
De nodige daemons starten.
 
''# service portmap start''
 
Regel 342 ⟶ 344:
 
De daemons automatisch starten bij boot.
 
# chkconfig list
''# chkconfig --list | grep portmap''
 
# chkcondig list
''# chkcondig --list | grep nfs''
 
# chkconfig nfs on
''# chkconfig listnfs on''
Als het bestand /etc/exports gewijzigd wordt, kan de nieuwe configuratie gebruikt worden zonder
 
nfs te herstarten aan de hand van het exportfs commando.
Als het bestand /etc/exports gewijzigd wordt, kan de nieuwe configuratie gebruikt worden zonder nfs te herstarten aan de hand van het exportfs commando.
# exportfs ra
 
''# exportfs ra''
 
Controleren of NFS draait.
 
''# rpcinfo p''
portmapper (tcp/udp), nfs (tcp/udp), nlockmgr (tcp/udp), mountd (tcp/udp)
 
'''Testprocedure & resultaten:'''
1. Op de CentOS server zelf:
 
# mount vt
''# mount -vt nfs4 192.168.1.115:/ /mnt''
 
''# ls /mnt''
 
file0 file1 file2 upload
# touch /mnt/writetest
Informatie afkomstig van https://nl.wikibooks.org Wikibooks NL.
Wikibooks NL is onderdeel van de wikimediafoundation.