首页 > 技术文章 > centos7修改主机名
longchengruoxi 2019-09-17 10:49 原文
修改主机名
vim /etc/hostname reboot
修改主机名2:
sudo hostnamectl set-hostname {host_name}
reboot