본문 바로가기

Linux/CentOS7

How to change hostname on CentOS 7

 1. /etc/hostname file

 # vi /etc/hostname

lux01

 

2. system reboot 

# init 6 

 

OR

 

 # hostnamectl set-hostname lux01

 # init 6