새소식

인기 검색어

💻 Linux

CentOS7 NFS mount

  • -
반응형
# CentOS7_Third > CentOS7_First 마운트
NFS 설정 (CentOS7_First)
yum -y install nfs-utils

systemctl restart nfs-server
systemctl status nfs-server
systemctl enable nfs-server

mkdir /share

chmod 707 /share
cd /share
touch test1

netstat -natlp | grep rpc
lsof -i tcp:111 # nfs는 rpc라고 붙는다

vim /etc/exports 
	> /share 192.168.111.*(rw,sync) # 192.168.111.* 대역만 폴더 공유한다 / 쓰고읽기 가능

systemctl restart nfs-server
exportfs -v

systemctl stop firewalld
setenforce 0

NFS 설정 (CentOS7_Third)
yum -y install nfs-utils

systemctl restart nfs-server
systemctl status nfs-server
systemctl enable nfs-server

showmount -e 192.168.111.100 # 받을수 있는지 확인

mkdir /mnt/share 
mount -t nfs 192.168.111.100:/share /mnt/share # 192.168.111.100의 /share폴더와 /mnt/share폴더 마운트
df # 마운트 확인
반응형

'💻 Linux' 카테고리의 다른 글

CentOS7 NFS 리눅스 윈도우 마운트  (0) 2022.04.20
CentOS7 NFS mount  (0) 2022.04.20
CentOS7 CLI 환경 FTP  (0) 2022.04.20
CentOS7 pure-ftpd  (0) 2022.04.20
CentOS7 Vsftpd 설치 , Ubuntu Vsftpd 설치  (0) 2022.04.20
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.