CentOS 7后改名如果想要用更改hostname文件的方法
好像已经不行了,要修改成功的话要更改很多文件
官方提供了hostnamectl 命令来更改电脑名
有三个参数
static(永久) transient(瞬态) pretty (灵活)
hostnamectl --static set-hostname centos7
CentOS 7后改名如果想要用更改hostname文件的方法
好像已经不行了,要修改成功的话要更改很多文件
官方提供了hostnamectl 命令来更改电脑名
有三个参数
static(永久) transient(瞬态) pretty (灵活)
hostnamectl --static set-hostname centos7