vi /etc/exports
/home/222.97.190.71 222.97.190.*(rw)
#exportfs 구동 상태 확인.
/usr/sbin/exportfs
# /etc/rc.d/init.d/portmap 및 nfs 시작.
/etc/rc.d/init.d/portmap start
/etc/rc.d/init.d/nfs stop
/etc/rc.d/init.d/nfs start
/etc/rc.d/init.d/nfs status
mkdir /home/222.97.190.71
mkdir /home/222.97.190.72
mkdir /home/222.97.190.73
mkdir /home/222.97.190.74
chmod 777 /home/222.97.190.71
chmod 777 /home/222.97.190.72
chmod 777 /home/222.97.190.73
chmod 777 /home/222.97.190.74
#자신 IP제외
mount -t nfs 222.97.190.71:/home/222.97.190.71 /home/222.97.190.71
mount -t nfs 222.97.190.72:/home/222.97.190.72 /home/222.97.190.72
mount -t nfs 222.97.190.73:/home/222.97.190.73 /home/222.97.190.73
mount -t nfs 222.97.190.74:/home/222.97.190.74 /home/222.97.190.74
#자신 IP제외
umount /home/222.97.190.71
umount /home/222.97.190.72
umount /home/222.97.190.73
umount /home/222.97.190.74
'프로그래밍 > 리눅스' 카테고리의 다른 글
리눅스[linux] - tcp 성능 튜닝 (0) | 2012.08.17 |
---|---|
리눅스[linux] - ramdrive 잡는법 (0) | 2012.08.17 |
리눅스[linux] - Network Device 속도제한 (0) | 2012.08.17 |
리눅스[linux] - lynx로 php 자동 실행하기 (0) | 2012.08.17 |
리눅스[linux] - Linux PHP에서 MSSQL 연결하기 (0) | 2012.08.17 |