'hostname 설정 centos'에 해당되는 글 1건

  1. 2014.10.29 :: CentOS 7 - hostname 설정(hostnamectl 사용)
OS/CentOS 2014. 10. 29. 18:02

CentOS 6까지는 /etc/sysconfig/network 설정파일에 정의 되었지만 CentOS 7 부터는 새로운 init 시스템(systemd)으로 변경되면서 /etc/hostname에 정의된다.




hostnamectl이라는 명령어가 추가 되었는데, 이 명령을 이용해 hostname을 조작할 수 있다.


1. hostname 상태 확인하기

$ hostnamectl status

   Static hostname: centos7-test-01.com2us.kr

         Icon name: computer

           Chassis: n/a

        Machine ID: 7a39a64ab05f4ea4bbf9a4276742f691

           Boot ID: c072988dc26f41e8b9f26dd2090f8bb3

    Virtualization: vmware

  Operating System: CentOS Linux 7 (Core)

       CPE OS Name: cpe:/o:centos:centos:7

            Kernel: Linux 3.10.0-123.el7.x86_64

      Architecture: x86_64


2. hostname 변경하기

$ hostnamectl set-hostname [호스트명]


'OS > CentOS' 카테고리의 다른 글

locale 설정  (0) 2015.01.08
CentOS 이미지 다운로드  (0) 2014.10.29
rsync 동기화 구성  (0) 2014.10.16
설치 된 패키지 확인(yum)  (0) 2014.04.24
nginx 소스 설치  (0) 2014.04.14
posted by 구닥다리 엔지니어
: