报错内容

1592979788: Error: Unable to open log file /Users/bigbird/mqttconfig/mosquitto/log/mosquitto.log for writing.

  • 解决方法

    1.查看你的 mosquitto.conf 文件,路径是否正确!!! 这里的路径为 docker 的路径,千万别写成自己的路径!!!

      persistence true
      persistence_location /mosquitto/data
      log_dest file /mosquitto/log/mosquitto.log
    
      port 1883
      listener 9001
      protocol websockets
    
      # 关闭匿名模式
      allow_anonymous false
    
      # 指定密码文件
      password_file /mosquitto/config/pwfile.conf
    
      #备注:这里千万注意路径,指向的是 docker 的路径!!!(直接复制我的内容即可)
    

    2.文件权限问题, 对 mosquitto/log 赋予最高权限

      sudo chmod -R 777 mosquitto/log
    

相关文章:

  • 2022-12-23
  • 2021-09-19
  • 2021-08-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-24
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-07
  • 2021-08-05
  • 2021-04-09
  • 2021-07-25
  • 2022-01-13
  • 2021-05-25
相关资源
相似解决方案