Linux Systeembeheer/Bestanden en printers delen: verschil tussen versies
Verwijderde inhoud Toegevoegde inhoud
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 | grep nfs''
Als het bestand /etc/exports gewijzigd wordt, kan de nieuwe configuratie gebruikt worden zonder▼
▲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 nfs4 192.168.1.115:/ /mnt''
''# ls /mnt''
file0 file1 file2 upload
# touch /mnt/writetest
|