On CentOS7, changes to your hostname with the hostname
command won't persist upon reboot. Instead, use the following command:
hostnamectl set-hostname hostname.yourdomain.com
Your hostname will now remain after reboots.
On CentOS7, changes to your hostname with the hostname
command won't persist upon reboot. Instead, use the following command:
hostnamectl set-hostname hostname.yourdomain.com
Your hostname will now remain after reboots.