azure - 如何允许访问我的 config.yaml 文件? (Raspbian、Azure 物联网边缘)

标签 azure raspberry-pi raspbian azure-iot-edge

我一直在阅读 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/

相关文章:

linux - python : How to repeat every 24 hours

linux - 重新编译 R 以支持 PNG

c++ - 如何运行 C++ 代码以在 Raspberry Pi 上使用 Apache Webserver 与 GPIO 交互?

python - 将 RPi.GPIO 导入 python 脚本时出错

azure - 根据名称模式为资源贡献者配置自定义角色

azure - 计划工作簿无法识别我的 cmdlet 方法

audio - 在ffmpeg中使用蓝牙耳机设备作为音频源

python - 如何在Python中停止另一个进程

azure - 使用 Azure 应用服务更改 ASP.NET Core 3.1 应用程序的文件上传限制

azure - Azure 应用服务计划中有多少个虚拟处理器?