1. /etc/rc.config.d/nfscong 파일에서
NFS_SERVER=0
부분을 아래와 같이 수정한다.
NFS_SERVER=1
2. NFS 서버 가동
> /sbin/init.d]./nfs.server start
starting NFS SERVER networking
starting up the rpcbind daemon
rpcbind already started, using pid: 2297
starting up the mount daemon
/usr/sbin/rpc.mountd
starting up the NFS daemons
/usr/sbin/nfsd 16
starting up the Status Monitor daemon
rpc.statd already started, using pid: 2358
starting up the Lock Manager daemon
rpc.lockd already started, using pid: 2364
> /sbin/init.d]./nfs.core start
starting NFS CORE networking
starting up the rpcbind
rpcbind already started, using pid: 2297
(이미 가동되어 있으면 위와같은 메세지가 나온다.)
> ps -ef | grep nfs로 확인
3. exports 파일 생성
> vi /etc/exports
/app/bin -access={host파일에 등록된 서버명}:{host파일에 등록된 서버명2}
{공유하고자 하는 디렉토리} {접속을 허용하는 옵션 - hosts에 등록된 파일이나 IP 입력}
4. 생성 또는 수정된 exports 파일 적용
> /etc/exportfs -a
5. Client에서 /etc/fstab 파일 수정
> vi /etc/fstab
NFS서버명:/app/bin /GLBUTL nfs soft,defaults 0 2
6. MOUNT 시킴
> mount NFS서버명:/app/bin /GLBUTL
※ 다시 umount 시킬때는
> umount /GLBUTL
7. 확인
> bdf
'IT 이야기 - About IT' 카테고리의 다른 글
[AIX] 서버 디스크 구성 정보 확인 (0) | 2009.09.28 |
---|---|
[HP-UX] User Group을 이용한 FTP 디렉토리 접근 제어 (2) | 2009.07.15 |
[UNIX] 시스템에 설정된 Network Port 상태 확인 및 변경 (0) | 2009.07.15 |