hostnamectl set-hostname srv1
su 사용자 변경 보통 루트 계정으로 들어감 이미 루트 계정이니까 호스트 네임만 변경됨
srv3은 서버로 사용할 것이니까 특히 더 getenforce 확인
systemctl stop firewalld
systemctl disable firewalld systemctl status firewalld 확인
yum install -y nfs-utils
mkdir /shared chmod 777 -R /shared chmod : (파일이나 폴더 권한 변경 하는 명령어)
777 : rwxrwxrwx (이진수 111은 7) 소유자,속한 그룹,그 외 사람들이 read write execute 다 가능함.
(ls -al / )눌러보기
*vi /etc/exports (나는 이 폴더를 누구에게 공유 해줄거야) /shared (rw)
전체 대상에게 rw 권한 준다는 뜻 그리고 wq하고 나와서
exportfs -r 이거 함
systemctl status nfs-server systemctl restart nfs-server systemctl enable nfs-server
showmount -e (마운트 할 수 있는 대상 보여주라)
srv1 ,srv2 둘 다 염 인 스톨 nfs-utils