Change Hostname on Centos 6.x

Saya lanjutkan mengenai hostname. Menurut wikipedia hostname adalah

is a label that is assigned to a device connected to a computer network and that is used to identify the device in various forms of electronic communication, such as the World Wide Web. Hostnames may be simple names consisting of a single word or phrase, or they may be structured.

langsung aj ya..ikuti perintah di bawah ini

vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=phenom1711

vi /etc/hosts
127.0.0.1 phenom1711
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
init 1
Setelah selesai kemudian lakukan restart. Selamat mencoba 🙂
reboot
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s