Share World

分享世界

Centos7 主机名修改


Warning: Illegal string offset 'top' in /www/wwwroot/www.hualuoo.com/wp-content/themes/Kratos/single.php on line 40

作为一名强迫症晚期,阿里云、腾讯云系统装好后的主机名都是VM_200_111_centos ~这种样式,个人还是喜欢默认的localhost,但是老的办法修改/etc/sysconfig/network文件在Centos7中已经改变。

hostnamectl set-hostname localhost


Warning: Illegal string offset 'footer' in /www/wwwroot/www.hualuoo.com/wp-content/themes/Kratos/single.php on line 44
点赞

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据