Debian8系統如何通過set-hostname命令修改系統主機名
Debian8系統如何通過set-hostname命令修改系統主機名
debian8系(xi)統(tong)如何(he)修改系(xi)統(tong)主(zhu)機(ji)名?本教(jiao)程以debian8系(xi)統(tong)為例
本(ben)配置適(shi)用于(yu)debian8,9版本(ben)
步(bu)驟1:檢查當前主機(ji)名(ming)
hostname

步驟2:使用hostnamectl更(geng)改主機(ji)名
hostnamectl set-hostname wenqin

步驟(zou)3:更新/etc/hosts

這邊也需(xu)要(yao)更改相(xiang)對應的
重啟主機后查看即可


