How to set the hostname on centos 7
hostnamectl –static set-hostname yourhostnamegoeshere now you need to restart the service systemctl restart systemd-hostnamed and finally check your new name with hostname
hostnamectl –static set-hostname yourhostnamegoeshere now you need to restart the service systemctl restart systemd-hostnamed and finally check your new name with hostname