fstab挂载nfs

### 配置fstab
cat /etc/fstab 
myhuaweicloud.com:/share/standard/ /webser/www/FineReport/WEB-INF/reportlets/standard nfs vers=4,minorversion=0,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,_netdev,noresvport 0 0
myhuaweicloud.com:/share/tenant/   /webser/www/FineReport/WEB-INF/reportlets/tenant nfs   vers=4,minorversion=0,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,_netdev,noresvport 0 0

### 挂载时报错
[root@report-prod reportlets]# mount -a
mount.nfs: Protocol not supported

### 查看mountvers
cat /etc/nfsmount.conf
# Server Mountd Version
# mountvers=3

### 修改/etc/fstab,两边要保持一致
vers=4 -> vers=3
posted @ 2021-11-04 15:17  chenzechao  阅读(4439)  评论(1编辑  收藏  举报