install nfs server
    
  
    
    
    
    
      - nfs服务器安装- ENV: Linux - CentOS-7
- Setup 1: Install package
- Setup 2: Create DIR & Configuration
- Setup 3: Start Service
- Setup 4: Check
 
      
    
    nfs服务器安装
ENV: Linux - CentOS-7
Setup 1: Install package
| 1
 | yum install nfs-utils -y
 | 
Setup 2: Create DIR & Configuration
| 12
 3
 
 | mkdir /var/nfsshareecho "/var/nfsshare 182.140.210.0/24(rw,sync,no_root_squash)" >> /etc/exports
 multi host eg: /var/nfsshare 121.40.169.81/32(rw,sync,no_root_squash) 101.37.26.244/32(rw,sync,no_root_squash) 121.40.232.51/32(rw,sync,no_root_squash) 101.37.38.115/32(rw,sync,no_root_squash)
 
 | 
Setup 3: Start Service
| 12
 3
 4
 5
 6
 7
 8
 9
 
 | systemctl enable rpcbindsystemctl enable nfs-server
 systemctl enable nfs-lock
 systemctl enable nfs-idmap
 
 systemctl start rpcbind
 systemctl start nfs-server
 systemctl start nfs-lock
 systemctl start nfs-idmap
 
 | 
Setup 4: Check
| 12
 3
 4
 
 | mount -t nfs 182.140.210.216:/var/nfsshare /mnt  -o vers=3,nfsvers=3mkdir -p /mnt/xx
 ls /var/nfsshare
 umount /mnt
 
 | 
    page PV:  ・ 
    site PV:  ・ 
    site UV: