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

FFmpeg on Centos 6

Install repo and ffmpeg # rpm -ihv...

FTP

 First of all make sure you have the ports 20-21 opened in your firewall. If not, you...

Web server

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

NFS on Centos 6

How to install NFS on Centos 6 yum install nfs-utils nfs-utils-lib Set nfs to start...

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...