Jiwenzi
  • Home
  • Posts
  • Authors
  • Tags
  • About
  • English (US)
  • 简体中文
  • 繁體中文

Change Linux Hostname

Author LinFeng Published on 2019-01-13 19:47:29 13 words 1 min read
  1. vi /etc/hostname

    1
    
    $HOSTNAME
    
  2. vi /etc/hosts

    1
    2
    
    127.0.0.1   $HOSTNAME
    $IP         $HOSTNAME
    
  3. reboot

Tags: macOS Linux HostName
Previous SSH config for Git Next Add swap space for Linux

© Jiwenzi. All rights reserved.