Linux NFS 설정 방법
2683 hit since 2005/02/20 18:39
nfs는 원격으로 다른 컴퓨터의 디렉토리를 액세스 하는데 사용된다.
설정 파일 편집
/etc/exports 파일을 편집한다.
- /home/cky *(rw,no_root_squash)
이런 식으로 적어준 디렉토리는 nfs로 마운트 할 수 있다.
nfsd 재시작
- # /etc/init.d/nfs restart
설정 파일을 편집한 후에는 nfsd를 재시작 하거나 mountfs커맨드를 실행시켜준다.
- # exportfs -a
# exportfs /home/cky 192.168.10.0/255.255.255.0
nfs 연결
다른 컴퓨터에서 설정해 놓은 컴퓨터의 디렉토리를 연결하려면 아래와 같이 한다.
- # mount -t nfs ip address:/home/cky /mnt/nfs
mnt/nfs에 다른 컴퓨터의 /home/cky가 마운트된다.
서버의 nfs 설정 확인
특정 호스트에 nfs로 연결할 수 있는 디렉토리 정보를 알아볼 수 있다. 다음과 같이 한다.
- $ showmount -e localhost
Export list for localhost: /home/cky 192.168.10.0/255.255.255.0


Trackback (0)
Comment (0)