默认EC2是有一个私有IP和一个公有IP的,通过以下步骤,能够在EC2上绑定多个公网IP:
#! /bin/bash yum update -y yum install docker -y service docker start docker pull nginx docker run -itd -p 80:80 --name nginx nginx