【linux配置主机名】
主机名保存在/etc/主机名里,在里面编辑主机名happy.com
# vi/etc/hostname root@happy ~ (root@happy ~) #猫/etc/hostname
happy.com
(root@happy ~) #主机名
happy.com
主机名保存在/etc/主机名里,在里面编辑主机名happy.com
# vi/etc/hostname root@happy ~ (root@happy ~) #猫/etc/hostname
happy.com
(root@happy ~) #主机名
happy.com