Network File System
OS : Redhat / Centos 7
NFS is one of the most popular protocol for Directory sharing among Linux/Unix based Servers and Operating system .
Configuring NFS Server :
Step 1 : Login to your EC2 instances and get root account access and Install software as given bleow
root@adhoclabs:~# yum install nfs-utils rpcbind
Step 2 : Create or choose a Directory which you want share
Note : in my case i am creating
root@adhoclabs:~# mkdir /test
Step 3 : Export this directory to /etc/exports , this file should be look like this use any text editor to edit .
i) share in Read only mode
root@adhoclabs:~# cat /etc/exports
/test *(ro)
ii) share in read write mode
[root@ip-172-31-31-234 ~]# chmod o+w /test
root@adhoclabs:~# cat /etc/exports
/test *(rw)
starting the nfs service
======================
[root@ip-172-31-31-234 ~]# systemctl start nfs-server
[root@ip-172-31-31-234 ~]# systemctl start rpcbind
OS : Redhat / Centos 7
NFS is one of the most popular protocol for Directory sharing among Linux/Unix based Servers and Operating system .
Configuring NFS Server :
Step 1 : Login to your EC2 instances and get root account access and Install software as given bleow
root@adhoclabs:~# yum install nfs-utils rpcbind
Step 2 : Create or choose a Directory which you want share
Note : in my case i am creating
root@adhoclabs:~# mkdir /test
Step 3 : Export this directory to /etc/exports , this file should be look like this use any text editor to edit .
i) share in Read only mode
root@adhoclabs:~# cat /etc/exports
/test *(ro)
ii) share in read write mode
[root@ip-172-31-31-234 ~]# chmod o+w /test
root@adhoclabs:~# cat /etc/exports
/test *(rw)
starting the nfs service
======================
[root@ip-172-31-31-234 ~]# systemctl start nfs-server
[root@ip-172-31-31-234 ~]# systemctl start rpcbind
Now client side :
Note : generally nfs is used for linux based clients sharing
Step 1: Installing client side software
[root@ip-172-31-31-134 ~]# yum install nfs-utils -y
Step 2: check with sharepoint
[root@ip-172-31-31-134 ~]# showmount -e 52.26.249.237
Export list for 52.26.249.237:
/test *
Step 3 : mount is somewhere
[root@ip-172-31-31-134 ~]# mkdir /mnt/d
[root@ip-172-31-31-134 ~]# mount 52.26.249.237:/test /mnt/d
No comments:
Post a Comment