Last active
October 31, 2015 14:44
-
-
Save pgaref/05b7bd38d1fbf363a3be to your computer and use it in GitHub Desktop.
Change linux hostname and Fully qualified domain name - linux
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
sudo nano /etc/hostname # For example: db01 | |
sudo nano /etc/hosts # Example: 127.0.0.1 db01.example.com db01 | |
sudo service hostname restart # Restart hostname service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment