Home>Article>Operation and Maintenance> 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!