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 ~]# 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM