Amazon EC2主机名 [英] Amazon EC2 hostnames
问题描述
我正在尝试在EC2上配置WAS 8.5,但是我发现EC2主机名在每次重新启动时都会更改.因此,基本上,我在ec2-54-200-56-168.us-west-2.compute.amazonaws.com上创建了一个WAS实例,然后在重新启动服务器(当然还有IP)后将其更改为ec2-54 -200-55-7.us-west-2.compute.amazonaws.com
I am trying to configure WAS 8.5 on EC2, but what I find is that the EC2 hostname changes on each restart. So basically, I've created a WAS instance on ec2-54-200-56-168.us-west-2.compute.amazonaws.com, and then after restart the server (and IP of course) changes to ec2-54-200-55-7.us-west-2.compute.amazonaws.com
当然,WAS在其单元配置中需要主机名.而且,如果主机名不断变化,我不明白如何设置两个服务器互相通信.
Of course WAS needs the hostname in its cell configuration. But also, if the host names keep changing I don't understand how to set up two servers to talk to each other.
推荐答案
You can associate an Elastic IP with your EC2 instance. This will give it a fixed IP address, as well as a public DNS that doesn't change after restart.
这篇关于Amazon EC2主机名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!