[nfs] Setting Up an NFS Server and Client on CentOS
2020. 8. 27. 17:38ㆍIT/Linux
Server:
1. Install nfs-utils
# yum -y install nfs-utils
2. Setting config file
/etc/exports
[Directory] [Client_IP](rw,sync,no_root_squash,no_subtree_check)
/home 10.110.0.10(rw,sync,no_root_squash,no_subtree_check)
3. Apply the settings
# exportfs -a
Client:
1. Install nfs-utils
# yum -y install nfs-utils
2. Create a directory to mount
# mkdir -p /mnt/nfs/home
3. Mount
# mount [Server_IP]:[Server_Drectory] [Directory]
# mount 192.168.10.243:/home /mnt/nfs/home
4. Confirm
# df -h
Refer:
'IT > Linux' 카테고리의 다른 글
[vi] 주석 제거 (0) | 2020.10.15 |
---|---|
[Tip] CentOS 8 minimal 초기 설정 (0) | 2020.10.13 |
[php] How to Upgrade PHP 5.4 to PHP 7.0 on CentOS 7.8 (0) | 2020.08.14 |
[vsftpd] chroot를 설정하는 4가지 방법 (0) | 2020.07.30 |
[명령어] tar를 이용한 빠른 파일 복사(cp, rsync) (0) | 2020.03.10 |