在console提示符號下執行
hostnamectl set-hostname your-hostname

設定檔會存在
/etc/hostname

重開機後會自動生效

arrow
arrow
    文章標籤
    centos linux hostname
    全站熱搜

    helloworld 發表在 痞客邦 留言(0) 人氣()