Ubuntu nfs configuration

NFS stands for Network File-System, which enables file sharing between different machines and different systems through the network. Through NFS, you can access remote shared directories, just like accessing local disks. NFS is just a file system without transmission function. It is implemented based on the RPC (Remote Procedure Call) protocol and adopts the C/S architecture.
NFS on ubuntu is very useful, for example, you can share the same file on different servers, you can also increase the storage space of the service, and so on.
Since it is a network file system, nfs must use an actual physical space as the server, and other servers that mount this space are called clients.

nf server configuration:

Install nfs package###

sudo apt-get install nfs-kernel-server #Install NFS server side
sudo apt-get install nfs-common #Install NFS client

Configure mount point###

sudo vim /etc/exports

Add a line, for example, the mount point is /mnt/tem

/mnt/tem *(rw,sync,no_root_squash,no_subtree_check)

Restart service###

sudo /etc/init.d/nfs-kernel-server restart
sudo /etc/init.d/nfs-kernel-server status

nf client configuration:

Install nfs package###

sudo apt-get install nfs-common #Install NFS client

Mount###

sudo mount -t nfs $SERVER_IP:/mnt/tem /mnt/tem

Recommended Posts

Ubuntu nfs configuration
ubuntu 18.04 early configuration
Ubuntu20.04 configuration notes
Ubuntu 14.04 configuration record
ubuntu configuration python, Red
Ubuntu configuration development environment
Ubuntu development environment configuration
Network configuration under Ubuntu
023. Ubuntu common personalized configuration
Ubuntu16.04 installation and simple configuration
Ubuntu16.04 install SVN and configuration
Ubuntu PostgreSQL installation and configuration
Ubuntu environment variables and ADB configuration
Ubuntu 20.04 best configuration guide for engineers
Ubuntu 19.1 installation and configuration Chinese environment
Configuration and beautification after Ubuntu installation (1)
Nginx installation and configuration load (ubuntu12.04)
Ubuntu configuration source and installation software
How to build nfs service on ubuntu16.04
Ubuntu 20.04 best configuration guide (required for newbies)
JDK environment variable configuration method under ubuntu
Ubuntu software
Ubuntu17.04 configuration method to replace domestic sources
Ubuntu install PHP and PHP Nginx configuration method
Linux (ubuntu 12.04)
Ubuntu 18.04 LTS configuration network tutorial through Netplan
DLNA/UPnP Server installation and configuration under Ubuntu 12.04
Debian and Ubuntu installation source configuration file description
The basic configuration and interface beautification of Ubuntu
Virtual machine installation and configuration ubuntu shared folder_
Kaldi installation and configuration graphic tutorials under Ubuntu
Basic configuration and common software installation after ubuntu 18.04 installation
Installation, configuration and uninstallation of GitLab in Ubuntu19.1