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

Php

Can I help you? Our agents are ready to assist you. Click "Chat Now" to be...

DDoS

Diagnostic To display how many http connections are open at the moment, enter: netstat |...

Centos 6 Webserver

In this article we will install some software that is useful on a webserver based on...

php increase max file size upload

For increase maximum size of uploads file you should set only one setting in php.ini. Set...

nginx

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