CentOS系统重命名

感觉默认的系统名称很难看,得改改,如下

一、查看linux 系统版本信息


	[root@iZbp15rmf8lyj2yhq136ebZ ~]# cat /etc/redhat-release
	CentOS Linux release 7.6.1810 (Core) 
	

二、查看hostname


	[root@iZbp15rmf8lyj2yhq136ebZ ~]# hostname
	iZbp15rmf8lyj2yhq136ebZ
	

三、重置hostname


	[root@iZbp15rmf8lyj2yhq136ebZ ~]# hostnamectl set-hostname dex
	[root@iZbp15rmf8lyj2yhq136ebZ ~]# hostname
	dex
	[root@iZbp15rmf8lyj2yhq136ebZ ~]# 
	
	[root@dex ~]# 

发布了105 篇原创文章 · 获赞 16 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/qq_34817440/article/details/103569300