简体   繁体   English

在 AWS 上安装 Neo4j(指令失败)

[英]installing Neo4j on AWS (instructions fail)

I recently spun up a t2.micro image and I want to install neo4j on it.我最近创建了一个 t2.micro 映像,我想在其上安装 neo4j。 I started with the instructions at https://neo4j.com/developer/neo4j-cloud-aws-ec2-ami/ .我从https://neo4j.com/developer/neo4j-cloud-aws-ec2-ami/的说明开始。 But I got to the step for creating a security group and I received an error that a region needed to be supplied.但是我到了创建安全组的步骤,我收到了一个需要提供区域的错误。 Here is the command I used:这是我使用的命令:

aws ec2 create-security-group \
   --group-name $GROUP \
   --description "Neo4j security group"

The error message was错误消息是

You must specify a region. You can also configure your region by running "aws configure".

When I run this command I get prompted by a lot of stuff that don't seem related to region?当我运行这个命令时,我会收到很多似乎与地区无关的提示? Not only am I prompted for values that I don't know where/how to get them, when I am prompted for the region I am not sure the format to enter the region.不仅提示我输入我不知道从哪里/如何获取它们的值,当提示我输入区域时,我不确定输入该区域的格式。 So my question is how to I configure a security group so I can move on to installing neo4j on this instance?所以我的问题是如何配置安全组,以便继续在此实例上安装 neo4j?

There are still several steps to follow to install neo4j, but I seem to be tripped up on this step.安装 neo4j 仍然需要几个步骤,但我似乎在这一步上被绊倒了。

The commands expect a default region under ~/.aws/config这些命令需要 ~/.aws/config 下的默认区域

[default]
region=us-west-2
output=json

On the link that you have shared, there is a step to "Configure the AWS CLI with Your Credentials".在您共享的链接上,有一个“使用您的凭证配置 AWS CLI”的步骤。 This step allows you setup aws profile(s) and as part of those profiles, you can set a region.此步骤允许您设置 aws 配置文件,并且作为这些配置文件的一部分,您可以设置区域。

Follow this link to understand how you can setup your aws profile with credentials and region details按照此链接了解如何使用凭证和区域详细信息设置您的 aws 配置文件

https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html

Hope it helps希望能帮助到你

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM