mount.nfs: access denied by server while mounting
时间: 2023-11-09 10:28:11 浏览: 118
记录因为yml而产生的坑:java.sql.SQLException: Access denied for user ‘root’@’localhost’ (using password: YES)
There are several reasons why you might be getting the "access denied by server while mounting" error when trying to mount an NFS share:
1. Incorrect permissions: Make sure that the NFS server has permission to share the directory and that the client has permission to access it.
2. Firewall blocking the NFS traffic: Check if firewalls on either the server or client side are blocking the NFS traffic. You may need to allow the NFS traffic through the firewall.
3. Incorrect NFS version: Make sure that the client and server are using the same version of NFS. If they are not, you may need to specify the version in the mount command.
4. Incorrect mount options: Check that the mount options are correct. For example, if the NFS server is using a non-standard port, you may need to specify the port number in the mount command.
5. Network connectivity issues: Make sure that the server and client are connected to the same network and can communicate with each other.
6. SELinux or AppArmor: If you are using SELinux or AppArmor on either the server or client, make sure that NFS is allowed through the security policies.
7. DNS or hostname resolution issues: Ensure that the hostname or IP address of the server is correct in the mount command and that the client can resolve the hostname using DNS or /etc/hosts.
By troubleshooting and addressing the above issues, you should be able to resolve the "access denied by server while mounting" error when trying to mount an NFS share.
阅读全文