Linux NFS mount shared folders Synology

Recent going to do a file upload service, anytime, anywhere by way of the interface, upload files to Synology, and then announced to the external network.

idea:

1. By Synology Virtual Machine Manager provides an interface to install Linux virtual machine services.

2. Interface upload files directly to Linux saved Synology.

Prerequisites:

1. Turn on the Synology NFS Service

Open Synology NFS Service

2. The guest user authorization

Guest User Authorization .png

3. Add Folder NFS rules

Add Folder NFS rules .png

Linux NFS mount folder

#安装nfs服务
yum install nfs-utils -y
#显示远程主机共享文件
showmount -e 192.168.1.15
#创建本地目录
mkdir /NFSfile
#将远程文件夹挂载到本地目录
mount -t nfs 192.168.1.15:/volume4/Swap  /NFSfile -o proto=tcp -o nolock
#开启开机挂载
vi /etc/fstab
192.168.1.15:/volume4/Swap  /NFSfile	nfs	defaults	0	0

Linux open interfaces, the results show:

Upload file .png

Upload successful .png

Published 122 original articles · won praise 238 · views 760 000 +

Guess you like

Origin blog.csdn.net/c__chao/article/details/97755397