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

CSF

ConfigServer Security & Firewall (CSF) is a powerful iptables configuration tool....

Configure OpenVPN client on Windows

How to configure OpenVPN client on Windows: First download and install the client. Then...

Web server

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

FFmpeg on Centos 6

Install repo and ffmpeg # rpm -ihv...

Clear swap in Centos

Print memory usage [root@localhost]# free -m              total       used       free...