Difference between revisions of "NFS"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 12: Line 12:
 
</code>
 
</code>
  
* <code>showmount</code>
+
showmount
* <code>showmount -e</code>
+
clnt_create: RPC: Program not registered
* Restart service: <code>systemctl start nfs-server</code>
+
 
 +
showmount -e
 +
Restart service: <code>systemctl start nfs-server</code>
  
 
== Configuration files ==
 
== Configuration files ==

Revision as of 06:57, 3 March 2020

Network File System (NFS) is a distributed file system protocol that allow to share files and folders using a TCP network.

Installation

apt install nfs-common

Commands

Example output NFS share to everyone: HOST#exportfs /nfs <world>

showmount
clnt_create: RPC: Program not registered

showmount -e

Restart service: systemctl start nfs-server

Configuration files

  • /etc/exports [1]

Activities

Install server: apt-get install nfs-kernel-server
Install client (optional): apt-get install nfs-common
  • Mount a remote nfs share:
mount -t nfs -o proto=tcp,port=2049 REMOTE_IP_SERVER:/REMOTE_SHARE_DIR /YOUR/LOCAL_DIR/


See also

  • https://linux.die.net/man/5/exports
  • Advertising: