[CentOS] Changing hostname?
mouss at netoyen.net
Sat Sep 13 15:42:55 UTC 2008
> admin wrote:
>> It's worth checking that /etc/sysconfig/network also has whatever
>> hostname you wish to use configured in it.
>> To effect changes, it may be necessary to restart the network:
>> service network restart
> no need to restart, just run the hostname command to set your system
caveat though: the hostname command won't affect already running
services if they rely on the hostname.
More information about the CentOS