반응형
설치환경
CentOS 7
# hostnamectl --help hostnamectl [OPTIONS...] COMMAND ... Query or change system hostname. -h --help Show this help --version Show package version \\ 버전 확인 --no-ask-password Do not prompt for password \\ 패스워드 묻지 않음 -H --host=[USER@]HOST Operate on remote host \\ 원격 호스트에서 작동 -M --machine=CONTAINER Operate on local container \\ 로컬에서 작동 --transient Only set transient hostname \\ 임시적으로 설정, 커널에서 관리되는 동적 호스트네임 --static Only set static hostname \\ 정적, /etc/hostname 에 저장됨 --pretty Only set pretty hostname \\ 말그대로 프리티, 이쁘게 꾸밀 수 있음, UTF-8 언어셋을 이용하여 한글로 설정 가능 Commands: status Show current hostname settings \\ 현재 호스트 상태 set-hostname NAME Set system hostname \\ 호스트 이름 변경 set-icon-name NAME Set icon name for host \\ 호스트 아이콘 네임 설정 set-chassis NAME Set chassis type for host \\ 호스트 섀시 유형 설정, /etc/machine-info 에 저장 set-deployment NAME Set deployment environment for host \\ 호스트 배포 환경 설정 set-location NAME Set location for host \\ 호스트 위치 설정 |
1. hostname 대문자 설정
# hostnamectl --static set-hostname [호스트명] # hostnamectl --static set-hostname ITSYOUUU |
2. 임시적으로 자유형식 hostname 설정
# hostnamectl --pretty --transient set-hostname "이쯔유" |
반응형
'서버 & 시스템 > Linux' 카테고리의 다른 글
mysql 8.0.29 설치 (0) | 2022.06.14 |
---|---|
sql 파일에서 특정 데이터베이스 추출하기 (1) | 2022.02.07 |
telnet 외 서버 포트 체크하는 법 (1) | 2022.01.04 |
apache 벤치마킹 스트레스툴 ab (3) | 2021.12.28 |
MySQL 8.0 ibd 파일을 이용한 복구 (0) | 2021.10.22 |