问题描述
我一直在浏览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