Flipkart

Thursday, June 21, 2018

How to share folder in RHEL/CentOS Linux

# yum install nfs-utils

# mkdir /New/mount

# chmod -R 777 /New/mount

# /sbin/service nfs status

clip_image001

# /sbin/service nfs start

clip_image002

112.168.171.35 :-

# nano /etc/exports

Insert this into file

/New/mount 112.168.171.35(rw,sync,no_root_squash,no_all_squash)

112.168.171.231 : –

# nano /etc/exports

Insert this into file

/New/mount 112.168.171.231 (rw,sync,no_root_squash,no_all_squash)

# mount -t nfs 112.168.171.231:/New/mount /New/mount

Checking the mounting status using command

# df -h

clip_image003

No comments:

Post a Comment