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

nginx

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

Squid with authentication on Centos 6

How to install Squid with authentication on Centos 6 >>Get VPS with current...

Backup script sample

#!/bin/bash echo "packing files in progress..." tar -cf /home/backup/root_lib-$(date...

Fail2ban

Fail2ban scans log files (e.g. /var/log/apache/error_log) and bans IPs that show the...

Usefull linux tools

please note: for installing some toosl you ned to connect EPEL repo first. htop -extened version...

Powered by WHMCompleteSolution