linux 修改hostname
生活随笔
收集整理的這篇文章主要介紹了
linux 修改hostname
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
前言
- CentOS Linux release 8.5.2111
修改hostname
shell> hostnamectl set-hostname <newhostname>例如
shell> hostnamectl set-hostname test-01檢查是否修改成功
shell> hostname test-01或者
shell> hostnamectlStatic hostname: test-01Icon name: computer-vmChassis: vmMachine ID: 89ce6c40918b449e9xxxxxxxeffd31aBoot ID: 2543380edb0a47c99xxxxxe1129ea3dVirtualization: kvmOperating System: CentOS Linux 8CPE OS Name: cpe:/o:centos:centos:8Kernel: Linux 4.18.0-305.3.1.el8.x86_64Architecture: x86-64總結
以上是生活随笔為你收集整理的linux 修改hostname的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 一位游戏博主的“脚踏长征”
- 下一篇: 《使命召唤》为语音聊天推出 AI 审核,