Centos 7.9 mounts Synology NAS

1. Create a shared folder
insert image description here

2. After creating the folder, click Edit to configure NFS permissions
insert image description here
PS:
server name or IP address: Here is the ip address of your linux server, you can also fill in
the representative so
Permissions: Here you need to give readable and writable
Squash: Yes Map root as an administrator account, or not map
Security: default sys
*

3. Go back to the Linux server, create a mounted file directory, and give it the highest authority

mkdir /data
chmod +777 /data

insert image description here

Fourth, install the NFS service

yum install -y nfs-utils

insert image description here

Five, after the installation is complete, you can execute the mount command

mount -t nfs 192.168.67.35:/volume1/Git /data/ -o nfsvers=3

insert image description here

insert image description here

PS:
nfs: nfs protocol
192.168.67.35: NAS server address
/volume1/Git: created NAS shared directory
/data/: mounted directory created by Linux
nfsvers=3: nfs version

Stepping on the pit diary:

			以上操作只是作为可写可读,但是,你创建的文件夹子目录不会继承root,当然你也改不了属主属组信息,如果大家在使用Linux挂载的过程中因程序需要,就可以改变一下Squash 的映射方式,把它改为不映射 就可以了!

insert image description here

Guess you like

Origin blog.csdn.net/weixin_44200830/article/details/127803429