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

Security tips for Linux server

1. Use only  strong passwords for all accounts , especially for root. Always use a secure root...

Epel Centos

Some packages are missing from the base repository. This guide shows how to install RHEL EPEL...

NFS on Centos 6

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

OpenVPN Access Server

§  Install OpenVPN Access Server Be sure that you are using a clean system and no...