Operating System/Centos

Centos Hostname 확인 및 변경 방법

5GaNe 2022. 1. 26. 04:28

□ Centos Hostname 확인 및 변경 방법


1. 임시 변경

   ~]# hostname   ==> 확인

   ~]# hostname [변경하고자 하는 호스트명]  ==> 변경


2. 영구 변경

  - CentOS 6 이하 /etc/sysconfig/network 정의되어 있음

  - CentOS 7 부터 /etc/hostname  정의되어 있음.


   ~]# hostnamectl status   ==> 확인

   ~]# hostnamectl set-hostname [변경하고자 하는 호스트명]  ==> 변경



'Operating System > Centos' 카테고리의 다른 글

Centos 8.x Chrony 설정 및 확인방법  (0) 2023.12.14
[Centos] Telnet 설치 (Centos 7)  (0) 2022.12.20
Centos 8 VNC Server 설정  (0) 2022.05.31
Centos NIC / IP 활성화 방법  (0) 2022.01.26
Wake On LAN - Centos 7  (0) 2022.01.26