当我使用Putty主机名登录我的ec2实例时,该节点将更改为另一个节点的主机名。我不知道为什么会这样。因为我无法安装zookeeper
对于Ubuntu / Debian:
echo "myhostname" > /etc/hostname
对于Ubuntu / Debian / RedHat / CentOS / AMI:
在每个myhostname之后把/etc/hosts提交给localhost
myhostname
/etc/hosts
localhost
使用命令qazxsw poi