3. OS이야기

HP hostname 변경하기

OSSW(Open Source System SoftWare 2010. 6. 4. 18:55
1. 첫번째 방법

1) vi /etc/hosts 파일에서 이름변경.
2) vi /etc/rc.config.d/netconf 파일에서 호스트네임변경후에
3) /sbin/init.d/hostname start
4) /sbin/init.d/net start 시킨후에 .profile 재실행 또는 logout 후 login 하면 됩니다.

2. 두번째 방법

1) set_parms 명령어 수행후 호스트 네임 변경해야됨니다.

3. 세번째 방법

1,/etc/hosts 파일 IP,hostname 변경
[soong-ju:/etc] vi hosts (IP, hostname 변경)
[soong-ju:/etc/rc.config.d]vi netconf (IP, hostname 변경)
[soong-ju:/etc/rc.config.d] hostname soong-ju (hostname 변경)

1) [soong-ju:/sbin/init.d]hostname start <===== hostname start
2) *다른방법은 [soong-ju:/]uname –S hostname하면 됨
[soong-ju:/]. ./.profile (쉘 재적용)