Step 1: Prepare the Environment
VPC
A VPC provides an isolated virtual network for your RabbitMQ instances. You can configure and manage the network as required.
- Before creating a RabbitMQ instance, ensure that a VPC and a subnet are available.
For details, see Creating a VPC. If you already have an available VPC and subnet, you do not need to create new ones.
Note the following when creating a VPC and subnet:
- The VPC and the RabbitMQ instance must be in the same region.
- Retain the default settings unless otherwise specified.
- Before creating a RabbitMQ instance, ensure that a security group is available.
For details, see Creating a Security Group . If you already have an available security group, you do not need to create a new one.
Retain the default settings unless otherwise specified.
ECS
Before connecting to a RabbitMQ instance, ensure that you have purchased an ECS, installed the JDK, and configured environment variables. The following steps describe how to complete these preparations. A Linux ECS is taken as an example. For more information on how to install JDK and configure the environment variables for a Windows ECS, please search the Internet.
- Log in to the management console, under Computing, click Elastic Cloud Server, and then click Buy ECS.
For details, see the ECS documentation. If you already have an available ECS, skip this step.
- Log in to the ECS.
- Install JDK or JRE, and add the following contents to .bash_profile in the home directory to configure the environment variables JAVA_HOME and PATH: In this command, /opt/java/jdk1.8.0_151 is the JDK installation path. Change it to the path where you install JDK or JRE.
export JAVA_HOME=/opt/java/jdk1.8.0_151 export PATH=$JAVA_HOME/bin:$PATH
Run the source .bash_profile command for the modification to take effect.
Use Oracle JDK instead of ECS's default JDK (for example, OpenJDK), because ECS's default JDK may not be suitable. Obtain Oracle JDK 1.8.111 or later from Oracle's official website.
Last Article: Introduction
Next Article: Step 2: Create a RabbitMQ Instance
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.