hostname

The purpose of this document is to explain how to set the hostname of a Linux server.

CentOS 6 (see topic) & RHEL 6 & Amazon Linux AMI

vim /etc/sysconfig/network # Ensure file looks like this: HOSTNAME=zabbix01.ue1.aws.jgspratt.com hostname zabbix01.ue1.aws.jgspratt.com hostname # ensure hostname now set

Debian

$hostname = "pi" echo $hostname > /etc/hostname # edit /etc/hosts hostname pi hostname # ensure 'pi'

[Edit]