Linux builds NFS server In order to achieve data sharing among different operating systems, we usually build some servers for file sharing. NFS server is one of them, which realizes sharing between Linux and Linux. Today I will share the steps on how to build an nfs server on a linux system for your reference. Build steps 1. Install the required software packages for nfs yum install rpcbind nfs-utils 2. Create a test file and assign permissions mkdir /home/test chmod -R 777 /home/test/ cd /home/test/ vim aaa/bbb.txt 3. Modify the configuration file vim /etc/exports Write /home/test 192.168.121.0/24 (rw) The shared file path allows the shared network segment (shared file executable permissions) The shared file executable permissions are: ro Read-only access rw Read-write access sync All data is written to the share on request hide Do not share subdirectories in the NFS shared directory no_hide Share subdirectories of the NFS directory all_squash UID and GID mapping of shared files to anonymous users anonymous, suitable for public directories. no_all_squash preserves the UID and GID of shared files (default) root_squash All requests of the root user are mapped to the same permissions as the anonymous user (default) no_root_squas The root user has full administrative access to the root directory 4. Start the service systemctl start rpcbind nfs Set the system to start automatically at boot echo "192.168.121.38:/home/test /nfs nfs4 defaults 0 0" >> /etc/fstab mount -av 5. View shared information showmount -e 192.168.121.38 (the IP address here is the host address of the server) 6. Access the nfs server mount 192.168.121.38:/home/test/ /mnt/ df Summarize This is the end of this article about how to build an NFS file sharing server in Linux. For more information about building an NFS server in Linux, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Four methods of using JS to determine data types
>>: Detailed summary of mysql sql statements to create tables
With the continuous development of the Internet ec...
WeChat applet trajectory playback mainly uses pol...
This article introduces in detail some of the tech...
Method 1: float:right In addition, floating will ...
1. Add a hard disk 2. Check the partition status:...
Special statement: This article is translated bas...
MySQL5.6.40 installation process under CentOS7 64...
Installed Docker V1.13.1 on centos7.3 using yum B...
<br />The website access speed can directly ...
Preface Under the influence of some CSS interacti...
This article example shares the specific code of ...
This article shares the specific code of React to...
This article example shares the specific code of ...
In order to solve the problem mentioned last time...
<meta http-equiv="x-ua-compatible" co...