Diferències
Ací es mostren les diferències entre la revisió seleccionada i la versió actual de la pàgina.
Ambdós costats versió prèvia Revisió prèvia Següent revisió | Revisió prèvia | ||
linux:tcpip:nfs [08/02/2019 04:47] – [apuntes] mate | linux:tcpip:nfs [14/08/2021 11:20] (actual) – [+ info] mate | ||
---|---|---|---|
Línia 8: | Línia 8: | ||
== puesta en marcha de server/ | == puesta en marcha de server/ | ||
- | * server : <code bash> | + | * server |
- | sudo apt-get install nfs-kernel-server nfs-common | + | * configuración servicio:<code bash> |
- | sudo vim / | + | sudo apt-get install nfs-kernel-server nfs-common |
+ | sudo vim / | ||
sudo exportfs -ra | sudo exportfs -ra | ||
sudo service nfs-kernel-server start | sudo service nfs-kernel-server start | ||
Línia 16: | Línia 17: | ||
showmount -e | showmount -e | ||
</ | </ | ||
+ | * configuración directorio compartido:< | ||
+ | mkdir / | ||
+ | chown nobody: | ||
* client : <code bash> | * client : <code bash> | ||
sudo apt-get install nfs-common | sudo apt-get install nfs-common | ||
Línia 21: | Línia 25: | ||
sudo mount -t nfs < | sudo mount -t nfs < | ||
</ | </ | ||
+ | <code bash; / | ||
+ | < | ||
+ | </ | ||
+ | * flags: | ||
+ | * rw: Read/write filesystem. | ||
+ | * ro: Read-only filesystem. Remote NFS clients can’t modify the filesystem. | ||
+ | * hard: Applications using files stored on an NFS will always wait if the server goes down. User cannot terminate the process unless the option intr is set. | ||
+ | * soft: Applications using files stored on an NFS will wait a specified time (using the timeo option) if the server goes down, and after that, will throw an error. | ||
+ | * intr: Allows user interruption of processes waiting on a NFS request. | ||
+ | * timeo=< | ||
+ | * nolock: Disable file locks. Useful with older NFS servers. | ||
+ | * noexec: Disable execution of binaries or scripts on an NFS share. | ||
+ | * nosuid: Prevents users from gaining ownership of files on the NFS share. | ||
+ | * rsize=< | ||
+ | * wsize=< | ||
+ | |||
+ | == / | ||
+ | <code bash; / | ||
+ | / | ||
+ | </ | ||
+ | * flags: | ||
+ | * rw : lectura-escritura | ||
+ | * ro : solo lectura | ||
+ | * root_squash : impide que un cliente remoto con permiso ROOT pueda ejercerlos | ||
+ | * subtree_check : Disable file location checks on partial volume exports. This option will speed up transfers on full volume exports. | ||
+ | * sync : Force all transfers to operate in synchronous mode, so all clients will wait until their operations are really done. This can avoid data corruption in the event of a server crash. | ||
- | === apuntes | + | == apuntes |
* quien puede montar (**/ | * quien puede montar (**/ | ||
<code bash; / | <code bash; / | ||
Línia 30: | Línia 60: | ||
== + info | == + info | ||
* [[https:// | * [[https:// | ||
+ | * [[https:// |