首页 > 技术文章 > Centos7 修改hostname的方式
niezhongle 2019-06-21 08:42 原文
1.手动,重起后清除 Hostnamectl set-hostname two
2.修改配置文件 vim /etc/hostname