![]() Remember that all commands should be executed as the root user. We begin by installing the nfs-utils package. Now we are ready to setup our NFS host server, so all actions in this section should be executed on the NFS server. In the file we opened, make sure that the SELINUX= line is set to disabled as shown.Īfter editing the SELinux configuration file, you must restart the servers to apply the new settings with the following command: SELinux has three modes: enforcing, permissive, and disabled. To disable SELinux, you must use a text editor in order to edit its configuration file, which controls the state of SELinux on the system: You can also modify Firewalld and SELinux to allow more complicated NFS sharing, but for a local system or a protected environment it is unnecessary. Do the following on the client and NFS server. We will disable the security measures SELinux and Firewalld on both of our servers, otherwise the client will run into a connection time out error when trying to access files. To the hosts file, add the following information, and replace the IP addresses we used for the IPs of your own machines:ġ0.10.0.135 nfs-server Setting Up the NFS Serverįor NFS to work, both servers must be able to access each other. In both the servers to be used, open the /etc/hosts file: In order for our two servers to be able to communicate in this tutorial, we need to add them to each other’s respective hosts files. Server 2 : nfs-server – 10.10.0.135 Initial Setup Please replace their IP addresses with those of your own servers when completing this tutorial. ![]() 2 Node ( Cloud Server or Dedicated Server) running CentOS 7.įor the purposes of this guide, we use the following details for our NFS server and client.This tutorial describes the process of setting up at NFS mount on CentOS7 using two servers to act as the NFS host and client, as well as give an example of typical usage.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |