반응형
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 [호스트명]
$ vi /etc/hostname
반응형
'연구개발 > MYSQL' 카테고리의 다른 글
[모니터링] 쿼리 (0) | 2015.02.10 |
---|---|
MySQL NF 5.6 - Enhanced tracing (SQL Trace 방법) (0) | 2015.02.09 |
MySql Binlog 파일 복구시 원하는 쿼리문만 가공하여 추출하기.. (0) | 2015.02.06 |
aws fdisk (0) | 2015.02.05 |
optimizer_swtich 쿼리로 보기 (0) | 2015.02.05 |