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