Centos修改主机名

环境:
CentOS 7.9.2009 X64

直接一行代码搞定,重启也不会失效。root用户执行:

hostnamectl set-hostname k9s 

#修改主机名为k9s

所有评论(2)

  1. It’s not my first time to visit this website, i am browsing tthis web page dailly and get
    fastidious data from heere all the time. https://glassi-india.mystrikingly.com/

发表回复

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