hostname 확인

 

[root@localhost ~]# hostname 
localhost.localdomain 

 


 


hostname 변경

 

[root@localhost bin]# hostname server01
[root@localhost bin]# hostname
server01

 




hostname 영구 변경

 


#CentOS 6

 

[root@localhost ~]# vi /etc/sysconfig/network 
HOSTNAME=server01


#CentOS 7

 

[root@localhost ~]# hostnamectl set-hostname server01



'CentOS' 카테고리의 다른 글

CentOS - gcc 설치하기  (0) 2019.08.31
CentOS - 티베로(TIBERO) 5 설치하기 (2)  (0) 2019.07.14
CentOS - 티베로(tibero) 5 설치하기 (1)  (0) 2019.07.14
CentOS - java 환경변수 설정하기  (0) 2019.07.14
CentOS7 - jdk 설치하기  (0) 2019.07.14
블로그 이미지

나무뚱이

,