一、window下如何查询主机名
1)cmd 控制台:直接输入 hostname, 回车
2)cmd 控制台:ipconfig/all, 回车,第一行就是
二、linux 下查看主机名
1)hostname 查看主机名