一、配置主机名

vim /etc/hostname

直接在hostname中配置自己的主机名 

二、配置host映射

vim /etc/hosts

配置完成后保存

测试ping通即可完成

 

Logo

更多推荐