我可以使用此命令在本地启动Dynamodb -
java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb
我得到以下命令的响应 -
Initializing DynamoDB Local with the following configuration:
Port: 8000
InMemory: false
DbPath: null
SharedDb: true
shouldDelayTransientStatuses: false
CorsParams: *
但是,当我在AWS CLI上输入以下命令来设置本地端点 -
aws dynamodb list-tables --endpoint-url http://localhost:8000
我收到以下错误 -
An error occurred (504) when calling the ListTables operation (reached max retries: 9): <HTML>
<HEAD><TITLE>The Proxy Was Unable to Fulfill Your Request</TITLE></HEAD>
<BODY>
<H1>The Proxy Was Unable to Fulfill Your Request</H1>
<HR SIZE="1">
<P>The proxy was unable to fulfill your request because it could not contact the computer at localhost:8000 (Connection reset by peer).</P>
<P>The website may be temporarily unavailable. If later attempts to access this website are still unsuccessful, you may wish to contact the website's adminis
tor.
</P>
<HR SIZE="1">
</BODY>
</HTML>
MY PC的本机代理设置为绕过本地地址,包括localhost。我也尝试使用CLI设置AWS HTTP和HTTPS代理。但它没有用。然后我尝试使用AWS Eclipse插件并使用它,我可以连接到localhost上的dynamodb(仅通过Eclipse,而不是来自CLI)。我希望能够使用CLI来处理本地dynamodb。
请帮忙。
谢谢, KUNAL
答案 0 :(得分:0)
如果您想查看表格列表,请在http://localhost:8000/shell/
上执行以下脚本if(trim(shell_exec('ps -ef | grep -v grep | grep app.js')))=='') {
exec('node /path/to/app.js >> /path/to/app.log &');
}
答案 1 :(得分:0)
我通过添加以下Windows环境变量 -
来修复此问题HTTP_PROXY = http://<My-Proxy-Host>:<My-Proxy-Port>
HTTPS_PROXY = http://<My-Proxy-Host>:<My-Proxy-Port>
NO_PROXY= localhost
重要的是重新启动 PC以反映这些设置。
希望它可以帮助有需要的人。
干杯!!!
<强>注:Kunal 强>