[Linux] CentOS 7, rhel7 hostname 호스트네임 변경하기CentOS 6버전 및 rhel6 버전에서는 /etc/sysconfig/network 파일 내 hostname이 변수로 저장되어 있었다.7버전부터는 /etc/hostname 파일 내 hostname이 저장된다. 1[root@server1 ~]# cat /etc/hostname2server1권장되는 hostname 변경 방법은 hostnamectl 명령어를 통한 변경이다.hostnamectl 사용법은 아래와 같다. ServerAfter는 변경될 호스트 네임을 임의로 지정한 값이다. 1[root@server1 ~]# hostnamectl set-hostname ServerAfter2[root@server1 ~]# cat /etc/h..