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

How to modify the host name in centos

王林
Release: 2020-05-16 15:04:58
Original
3867 people have browsed it

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template