hostnamectl set-hostname 新主机名
或打开文件
nano /etc/hostname
将当前主机名替换为新主机名,保存并关闭文件
重启系统
上一篇:一文搞定Debian的用户和组
下一篇:Debian设置中文语言环境