.
3ss.cn

centos怎么修改主机名

centos7下修改hostname,具体命令如下:

[root@centos7 ~]$ hostnamectl set-hostname centos77.magedu.com    # 使用这个命令会立即生效且重启也生效
[root@centos7 ~]$ hostname    # 查看下
centos77.magedu.com
赞(0)
未经允许不得转载:互联学术 » centos怎么修改主机名

评论 抢沙发