1、在shell中运行hostname 结果如图 2、sudo vim /etc/hosts 添加hostname即可 即可 相关文章: 2021-08-28 2022-01-07 2021-11-23 2021-08-28 2021-05-25 2021-06-03 2022-01-15