Linux NFS Server Configuration
View Video : link
Command configure NFS service :
NFS services : share file and folder from Linux to Linux
4. What is NES Server ?
NFS (Network File System ) is a service in linux use for share file and folder from linux to linux
#yum -y install nfs-utils : install NFS service
#mkdir /nfs_share : create folder share
#vi /etc/exports
/nfs_share 192.168.1.99(rw,no_root_squash)
+192.168.1.99 = client IP
+rw = read & write, ro = read only
+no_root_squash = make folder access as root
#service nfs restart
#service nfs status
#exportfs -a (update file /etc/exports)
#firewall-cmd --permanent --zone=public --add-service=nfs
#firewall-cmd --reload
Configure NFS Client : in computer client
#cd /etc/sysconfig/network-scripts/
#vi ifcfg-ens33
BOOTPROTo : static
ONBOOT=yes
IPADDR=192.168.1.99
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=8.8.8.8
#service network restart
#yum -y install nfs-utils
#mount 192.168.1.254:/nfs_share /mnt (192.168.1.254 = server IP)
#cd /mnt
#abc.txt
test share..
#ll
open server :
#ll /nfs_share : u can see file create by cilent in folder share from server
============================
- Remove Mount (client)
#umount /mnt/nfs_share
#df -h -F nfs
#mount | grep nfs
Subscribe to:
Post Comments (Atom)
EmoticonEmoticon