Skip to content

ats-min.com

Daily memo what I learned

  • python
  • Django
  • CheckIO
  • JavaScript
  • Web Service
  • Linux
  • Else
    • Network
    • git
    • Salesforce
    • VBScript

Linux: How to change hostname permanently in CentOS

atsmin2016年12月25日2016年12月25日 Linux No Comments

To change hostname permanently in CentOS, use the following hostnamectl command (not hostname).

hostnamectl set-hostname myhostname --static

 

  • ← Linux: Ubuntu 16.04 fcitx-mozc couldn’t be install
  • Ubuntu16.04: PHP7 MySQL connect →

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Powershell : JSON as commandline args
  • libvirt : firewall blocks forwarding
  • LXC : login failed
  • Xen : Nested VM
  • Raspberry Pi : Create SWAP volume on LVM

Recent Comments

    Archives

    • December 2021
    • September 2021
    • May 2021
    • September 2019
    • January 2019
    • February 2018
    • October 2017
    • July 2017
    • May 2017
    • April 2017
    • January 2017
    • December 2016
    • November 2016
    • May 2016
    • April 2016
    • March 2016
    • February 2016
    • January 2016
    • December 2015
    • October 2015
    • September 2015
    • August 2015
    • July 2015
    • June 2015
    • May 2015
    • April 2015
    • March 2015
    • February 2015
    • November 2014
    • October 2014
    • September 2014
    • July 2014
    • June 2014
    • May 2014

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    Copyright © 2023 ats-min.com. Theme by Colorlib Powered by WordPress