Changing the Hostname
First, you must change the config file that controls this. The actual file and its location will vary across distributions. In the Redhat derivatives, the file to modify is /etc/sysconfig/network so vi this file and change the line that reads HOSTNAME=
Log into PuTTY using your username (usually root) and password
- Type "cd /etc/sysconfig/" to take you to the sysconfig folder
- Type "vi network" to open your network settings
- Type "i" on your keyboard and update your HOSTNAME
- Press "ESC" on the keyboard
- Save the new configuration by typing ":wq!"
- Finally, log off and reboot
No comments:
Post a Comment