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

Squid with authentication on Centos 6

How to install Squid with authentication on Centos 6 >>Get VPS with current...

nginx

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

!!Actual Linux KB located : wiki.vpsget.com ***

Linux kb/wiki moved to opur wiki pages and all new articled publiched here:...

FFmpeg on Centos 6

Install repo and ffmpeg # rpm -ihv...

OpenVPN 2.3.6 on Centos 6

Install Epel repository rpm -Uvh...