Set hostname

Set host name on Centos:

/etc/sysconfig/network

 

HOSTNAME="mycomputer"


/etc/hosts wrote:

127.0.0.1 mycomputer.mydomain.local mycomputer

 

check it with

hostname 
hostname --fqdn
hostname -a

 

Was this answer helpful?

 Print this Article

Also Read

How to check connectivity/network speed of your VPS

If you concerned about network speed of your vps you can test it by downloading some test...

Oracle 11g EX on Centos 6 x64 vps

We describe how to install Oracle 11g Express on Centos 6 x86_64 Openvz VPS. First of all you...

nginx

How to install nginx on Centos Add nginx repo first. To add it, create the file...

Disabling selinux

Selinux annoying you? Get it out! How to disable selinux Open its config file nano...

Usefull linux tools

please note: for installing some toosl you ned to connect EPEL repo first. htop -extened version...