可以有两个文件: /etc/sysconfig/network 文件就是网络上的的主机名/etc/hosts 文件就是IP地址对应域名,或名称. 转载于:https://www.cnblogs.com/qianggezhishen/p/7349422.html