- RHEL, Oracle and CentOS (versions 6 and lower)
- Edit the/etc/sysconfig/network file.
HOSTNAME=a24p-rhel6-01
- RHEL, Oracle and CentOS (version 7)
- Edit the/etc/hostname file.
- Debian and Ubuntu (all versions)
- Edit the/etc/hostname file
- SLES (all versions)
- Edit the/etc/HOSTNAME file
本文介绍了在不同Linux发行版中配置主机名的方法,包括RHEL、Oracle、CentOS、Debian、Ubuntu及SLES等。根据不同版本的操作系统,需编辑的文件有所区别。
1944

被折叠的 条评论
为什么被折叠?



