获取更干净爽快的阅读体验:​​http://www.mculover666.cn/archives/linux-hostname​​。

一、查看hostname

hostname

二、修改hostname

  1. 修改 /etc/hostname
imx6ull
  1. 修改 /etc/hosts
127.0.0.1   localhost
127.0.1.1 imx6ull
::1 localhost imx6ull ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters