CentOS下如何自动挂载NSF远程磁盘

安装工具

yum install nfs-utils

配置启动自挂载

[root@Server-1 cer]# vim /etc/fstab

如果nfs的地址是172.16.3.250,挂载根目录,本地挂载目录为/mnt/nas,参考下面末行配置

#
# /etc/fstab
# Created by anaconda on Thu Mar  7 06:38:37 2019
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=4b499d76-769a-40a0-93dc-4a31a59add28 /                       ext4    defaults        1 1
172.16.3.250:/                            /mnt/nas                nfs     defaults        1 1

发表评论