Created
August 28, 2013 10:52
-
-
Save grenade/6364777 to your computer and use it in GitHub Desktop.
Set hostname on Fedora, RedHat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "hostname.domain.example.com"> /etc/hostname | |
hostname -F /etc/hostname | |
echo "HOSTNAME=$(hostname)">/etc/sysconfig/network | |
echo 127.0.0.1 $(hostname) $(hostname -s) localhost.localdomain localhost > /etc/hosts | |
echo ::1 localhost6.localdomain6 localhost6 >> /etc/hosts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment