Skip to content

Instantly share code, notes, and snippets.

@pgaref
Last active October 31, 2015 14:44
Show Gist options
  • Save pgaref/05b7bd38d1fbf363a3be to your computer and use it in GitHub Desktop.
Save pgaref/05b7bd38d1fbf363a3be to your computer and use it in GitHub Desktop.
Change linux hostname and Fully qualified domain name - linux
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