AWS IoT private.pem.key不存在 [英] AWS IoT private.pem.key doesn't exist
问题描述
当我尝试从AWS IoT运行以下node.js示例时,出现此错误(以下
When I am trying to run the following node.js example from AWS IoT I get this error(following this tutorial):
pi@raspberrypi:~/aws-iot-device-sdk-js/examples $ node device-example.js -g
private.pem.key doesn't exist (--help for usage)
但是,按照教程的要求,我在~/certs
文件夹中有private.pem.key.
However I have the private.pem.key in ~/certs
folder as requested by the tutorial.
pi@raspberrypi:~/aws-iot-device-sdk-js/examples $ vi device-example.js
pi@raspberrypi:~/aws-iot-device-sdk-js/examples $ ls ~/certs/private.pem.key
/home/pi/certs/private.pem.key
推荐答案
device-example.js程序旨在成对运行;每个过程都通过AWS IoT平台彼此通信.您需要启动该程序的另一个副本(可以在其他主机上),以查看它们之间的通信.有关运行示例程序的更多信息,请参见此处.感谢您使用AWS IoT.
The device-example.js program is designed to be run in pairs; each process communicates with the other through the AWS IoT platform. You'll need to start another copy of the program (it can be on another host) in order to see them communicating. More information about running the example programs can be found here. Thanks for using AWS IoT.
这篇关于AWS IoT private.pem.key不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!