centos7更改主机名
centos7修改主机名
hostnamectl set-hostname www.centosdoc.com ##设置主机名为www.centosdoc.com
同时设置hosts
echo "127.0.0.1 www.centosdoc.com" >> /etc/hosts
运维 kubernetes docker ELK 安全 Nginx Mysql
centos7修改主机名
hostnamectl set-hostname www.centosdoc.com ##设置主机名为www.centosdoc.com
同时设置hosts
echo "127.0.0.1 www.centosdoc.com" >> /etc/hosts