我一直在阅读 Azure IoT Edge 文档,以使用 Raspbian Stretch 将 Raspberry Pi 4 连接到 Azure 云。 IoT Edge 守护程序处于“事件(正在运行)”状态,但当我运行“iotedge check”时出现以下错误:
pi@raspberrypi:~$iotedge check --verbose
Configuration checks
--------------------
x config.yaml is well-formed - Error
Could not open file /etc/iotedge/config.yaml. You might need to run this command as a root.
caused by: Permission denied (os error 13)
0 check(s) succeeded.
1 check(s) raised errors.
我对此还很陌生,因此可能犯了一个明显的错误,但在 google、Azure 或 Stack Overflow 上找不到任何适用的内容。任何帮助将不胜感激!
最佳答案
尝试运行该命令,因为该命令需要打开文件的权限:
sudo iotedge check
关于azure - 如何允许访问我的 config.yaml 文件? (Raspbian、Azure 物联网边缘),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64792973/