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

Cron

Cron is the daemon that can be used to schedule tasks according to time, day of the month,...

FFmpeg on Centos 6

Install repo and ffmpeg # rpm -ihv...

Web server

In this guide we will create our own web server on Centos 6.  We will use Apache...

Iptables

Iptables is a Linux based packet filtering firewall. It is a service (daemon)...

Mysql

Installing mysql: yum install mysql-server Enter to mysql: mysql -u user -p password...

Powered by WHMCompleteSolution