hostnamectl set-hostname $(grep $(hostname -I) /etc/hosts|awk '{print $2}')
shell_自动设置主机名
最新推荐文章于 2024-06-02 16:37:24 发布
hostnamectl set-hostname $(grep $(hostname -I) /etc/hosts|awk '{print $2}')