修改主机hostname
1.使用 hostnamectl 命令
hostnamectl set-hostname your-new-hostname
2.编辑 /etc/hostname 文件
1 | echo your-new- hostname > /etc/hostname <br>systemctl restart network |
hostnamectl set-hostname your-new-hostname
2.编辑 /etc/hostname 文件
1 | echo your-new- hostname > /etc/hostname <br>systemctl restart network |
阅读目录(Content)
此页目录为空