For most modern distros:
1 2 |
hostname <newhostname> hostnamectl set-hostname $(hostname) |
CentOS 6:
– Edit /etc/hosts
– Edit /etc/sysconfig/network
– Run hostname <newhostname>
For most modern distros:
1 2 |
hostname <newhostname> hostnamectl set-hostname $(hostname) |
CentOS 6:
– Edit /etc/hosts
– Edit /etc/sysconfig/network
– Run hostname <newhostname>