Home>Article>Operation and Maintenance> How to modify the host name in centos

How to modify the host name in centos

王林
王林 Original
2020-05-16 15:04:58 3737browse

How to modify the host name in centos

Modify hostname under centos7, the specific command is as follows:

[root@centos7 ~]$ hostnamectl set-hostname centos77.magedu.com # 使用这个命令会立即生效且重启也生效 [root@centos7 ~]$ hostname # 查看下 centos77.magedu.com

Recommended tutorial:centos tutorial

The above is the detailed content of How to modify the host name in centos. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn