0

How to Change Hostname on CentOS 7?

Asked 4 years ago (Apr 19, 2021) in the field of Operating Systems by Zaki 24

Hi. Can we change the hostname on CentOS 7 and then view its information?


Answers


0
Answered 4 years ago (Apr 20, 2021) by Eldernode Staff

To change the hostname in CentOS 7, run the command in SSH:

hostnamectl set-hostname server.domain.com

Enter the following command to view hostname information:

hostnamectl status

We are by your side every step of the way

Think about developing your online business; We will protect it compassionately

We are by your side every step of the way

+8595670151

7 days a week, 24 hours a day