首页 > 解决方案 > 无法连接到端点发电机数据库 Windows 10

问题描述

我一直在关注本教程 ( https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.DownloadingAndRunning.html ) 如何在我的计算机上设置可下载的 DynamoDB,但遇到了当我尝试连接到本地主机时出现问题。

我检查了我的主机文件,一切似乎都很好......

我正在使用 Windows 10 cmd,这些是我的命令行上的输出:

C:\Users\Desktop\dynamodb_local_latest>java - 
D"java.library.path=./DynamoDBLocal_lib" -jar DynamoDBLocal.jar
Initializing DynamoDB Local with the following configuration:
Port:   8000
InMemory:       false
DbPath: null
SharedDb:       false
shouldDelayTransientStatuses:   false
CorsParams:     *


C:\Users\Desktop\dynamodb_local_latest>aws dynamodb list-tables --endpoint- 
url http://localhost:8000

Could not connect to the endpoint URL: "http://localhost:8000/"

C:\Users\Desktop\dynamodb_local_latest>

任何帮助将不胜感激!

标签: amazon-web-serviceslocalhostamazon-dynamodb

解决方案


您必须运行“aws configure”并设置所需的参数(即使您只使用本地发电机数据库模拟器,也只需忽略访问/密钥)


推荐阅读