본문 바로가기
Linux&Ubuntu/서버

nfs 구축 centos7,ubuntu22.04

by Vittorio_Lee 2024. 5. 31.
728x90
반응형
SMALL

# yum -y install nfs-utils

 

# systemctl start nfs-server

# systemctl start rpcbind
# systemctl enable nfs-server

# systemctl enable rpcbind

 

# mkdir /data

# vi /etc/exports

/data *(rw,sync,no_root_squash)

 

# systemctl start nfs-server

# systemctl start rpcbind
# systemctl enable nfs-server

# systemctl enable rpcbind

 

 

# exportfs -v
/data          <world>(sync,wdelay,hide,no_subtree_check,sec=sys,rw,secure,no_root_squash,no_all_squash)

 

 

받는서버 

 

# apt -y install nfs-utils

# systemctl status nfs-server
# systemctl start nfs-server

 

# mount -t nfs 111.222.111.222:/data /받을경로

 

 

 

728x90
반응형
LIST

'Linux&Ubuntu > 서버' 카테고리의 다른 글

megacli OS 별 설치  (0) 2025.04.25
senmail 발송 실패  (0) 2024.06.18
PDNS + POWERADMIN 설치 (Linux Rocky9.X)  (0) 2024.04.03
Rocky 8 nfs S,C 설치  (0) 2024.03.04
linux hostname 변경  (0) 2024.02.19