1. #hostname newhostname
2. modify hostname in file /etc/sysconfig/network
3. modify /etc/hosts (for dns); if you already have hosts mapping here, you can omit this step.
本文介绍了通过三种简单步骤来更改Linux系统的主机名:首先直接使用命令修改;其次编辑/etc/sysconfig/network文件;最后更新/etc/hosts文件以确保DNS解析正确。
1071

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



