[root@localhost bin]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=localhost.localdomain
[root@localhost bin]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
[root@localhost bin]#
![](https://i-blog.csdnimg.cn/blog_migrate/496ca97c3e1916e93b2e111c260a2b82.png)