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

Pptpd on Centos 6

How to install pptpd server on Centos 6 NOTE than pptpd is potentially unsecure and the tunnel...

Create OpenVPN client

The following instructions are for those VPSGet customers who have installed OpenVPN...

Mysql

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

php increase max file size upload

For increase maximum size of uploads file you should set only one setting in php.ini. Set...

Disabling selinux

Selinux annoying you? Get it out! How to disable selinux Open its config file nano...