1.修改hostname文件
[root@localhost ~]# vi /etc/hostname
2.将localhost.local.domain修改为 base-linux
3.修改hosts文件
[root@localhost ~]# vi /etc/hosts
4.重启
[root@localhost ~]# reboot
[root@localhost ~]# vi /etc/hostname
[root@localhost ~]# vi /etc/hosts
[root@localhost ~]# reboot