码迷,mamicode.com
首页 > 其他好文 > 详细

Centos中更改hostname

时间:2019-12-26 09:40:39      阅读:53      评论:0      收藏:0      [点我收藏+]

标签:code   centos   set   host   主机   pre   检查   更改   name   

Centos中更改hostname

1.检查主机hostname

hostname

2.更改hostname

hostnamectl set-hostname lz-2

3.重新登录

重新登录即可。

Centos中更改hostname

标签:code   centos   set   host   主机   pre   检查   更改   name   

原文地址:https://www.cnblogs.com/jimlau/p/12100206.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!