CentOS 6
Sponsored Link

Set Hostname
2013/01/18
 
The example for setting Hostname of your system.
[1] Change hostname with a commnad (but if rebooting, it will be back).
[root@dlp ~]#
# show current hostname

rx-7.srv.world
[root@dlp ~]#
hostname rx-8.srv.world
# change hostname

[root@dlp ~]#
rx-8.srv.world
# changed

[2] Change hostname permanently.
[root@dlp ~]#
vi /etc/sysconfig/network
# change

HOSTNAME=
rx-8.srv.world
[root@dlp ~]#
CentOS release 6.3 (Final)
Kernel 2.6.32-279.5.2.el6.x86_64 on an x86_64
rx-8.srv.world.info login:
# changed

Matched Content
 
Tweet