Linux mount.nfs: access denied by server while mounting

nfs远程挂载异常

mount -t nfs 172.*.*.13:/app/tomcat/webapps/test/fileUpload /app/tomcat/webapps/test/fileUpload
mount.nfs: access denied by server while mounting 172.*.*.13:/app/tomcat/webapps/test/fileUpload

解决方案

#修改NFS配置文件
vim /etc/exports
#增加一行 /app/tomcat/webapps/test/fileUpload/ 172.*.*.18(rw,sync,no_root_squash)

#重启服务
service nfs restart

#重启挂载
mount -t nfs 172.*.*.13:/app/tomcat/webapps/test/fileUpload /app/tomcat/webapps/test/fileUpload

你可能感兴趣的:(linux,linux)