在 Ubuntu 系统中,主机名的设置涉及到两个文件: /etc/hostname: hostname 设置/etc/hosts: hostname IP 地址对应 用你熟悉的编辑器编辑 /etc/hostname 文件 /etc/hostnamemail