我的Linux虚拟机 主机名改成 hadoop了 而且虚拟机能跟Xshell ping通 但是Xshell连虚拟机的名字还是 localhost (主机已经重启 Xshell重连过了)
主机改名后有没有重启,xshell有没有重新连接
/etc/hostname
看看虚拟机的主机名到底有没有改