mosquitto配置文件/etc/mosquitto/mosquitto.conf配置参数详细说明

摘自:https://blog.csdn.net/weixin_43025071/article/details/82491560

 mosquitto配置文件/etc/mosquitto/mosquitto.conf配置参数详细说明

 2018年09月07日 :: jacklin_001 阅读数:
# =================================================================
# General configuration
# ================================================================= # 客户端心跳的间隔时间
#retry_interval # 系统状态的刷新时间
#sys_interval # 系统资源的回收时间,0表示尽快处理
#store_clean_interval # 服务进程的PID
#pid_file /var/run/mosquitto.pid # 服务进程的系统用户
#user mosquitto # 客户端心跳消息的最大并发数
#max_inflight_messages # 客户端心跳消息缓存队列
#max_queued_messages # 用于设置客户端长连接的过期时间,默认永不过期
#persistent_client_expiration # =================================================================
# Default listener
# ================================================================= # 服务绑定的IP地址
#bind_address # 服务绑定的端口号
#port # 允许的最大连接数,-1表示没有限制
#max_connections - # cafile:CA证书文件
# capath:CA证书目录
# certfile:PEM证书文件
# keyfile:PEM密钥文件
#cafile
#capath
#certfile
#keyfile # 必须提供证书以保证数据安全性
#require_certificate false # 若require_certificate值为true,use_identity_as_username也必须为true
#use_identity_as_username false # 启用PSK(Pre-shared-key)支持
#psk_hint # SSL/TSL加密算法,可以使用“openssl ciphers”命令获取
# as the output of that command.
#ciphers # =================================================================
# Persistence
# ================================================================= # 消息自动保存的间隔时间
#autosave_interval # 消息自动保存功能的开关
#autosave_on_changes false # 持久化功能的开关
persistence true # 持久化DB文件
#persistence_file mosquitto.db # 持久化DB文件目录
#persistence_location /var/lib/mosquitto/ # =================================================================
# Logging
# ================================================================= # 4种日志模式:stdout、stderr、syslog、topic
# none 则表示不记日志,此配置可以提升些许性能
log_dest none # 选择日志的级别(可设置多项)
#log_type error
#log_type warning
#log_type notice
#log_type information # 是否记录客户端连接信息
#connection_messages true # 是否记录日志时间
#log_timestamp true # =================================================================
# Security
# ================================================================= # 客户端ID的前缀限制,可用于保证安全性
#clientid_prefixes # 允许匿名用户
#allow_anonymous true # 用户/密码文件,默认格式:username:password
#password_file # PSK格式密码文件,默认格式:identity:key
#psk_file # pattern write sensor/%u/data
# ACL权限配置,常用语法如下:
# 用户限制:user <username>
# 话题限制:topic [read|write] <topic>
# 正则限制:pattern write sensor/%u/data
#acl_file # =================================================================
# Bridges
# ================================================================= # 允许服务之间使用“桥接”模式(可用于分布式部署)
#connection <name>
#address <host>[:<port>]
#topic <topic> [[[out | in | both] qos-level] local-prefix remote-prefix] # 设置桥接的客户端ID
#clientid # 桥接断开时,是否清除远程服务器中的消息
#cleansession false # 是否发布桥接的状态信息
#notifications true # 设置桥接模式下,消息将会发布到的话题地址
# $SYS/broker/connection/<clientid>/state
#notification_topic # 设置桥接的keepalive数值
#keepalive_interval # 桥接模式,目前有三种:automatic、lazy、once
#start_type automatic # 桥接模式automatic的超时时间
#restart_timeout # 桥接模式lazy的超时时间
#idle_timeout # 桥接客户端的用户名
#username # 桥接客户端的密码
#password # bridge_cafile:桥接客户端的CA证书文件
# bridge_capath:桥接客户端的CA证书目录
# bridge_certfile:桥接客户端的PEM证书文件
# bridge_keyfile:桥接客户端的PEM密钥文件
#bridge_cafile
#bridge_capath
#bridge_certfile
#bridge_keyfile # 自己的配置可以放到以下目录中
include_dir /etc/mosquitto/conf.d

mosquitto配置文件/etc/mosquitto/mosquitto.conf配置参数详细说明的更多相关文章

  1. vsftpd配置参数详细整理

    vsftpd配置参数详细整理  -|白王斧三又干一 vsftpd配置参数详细整理     -|白王斧三又干一 发表于 2005-10-23 20:30:00   1.vsftpd配置参数详细整理#接受 ...

  2. PostgreSQL的 pg_hba.conf 配置参数详解

    pg_hba.conf 配置详解 该文件位于初始化安装的数据库目录下 编辑 pg_hba.conf 配置文件   postgres@clw-db1:/pgdata/9.6/poc/data> v ...

  3. nginx 配置参数详细说明

    #定义Nginx运行的用户和用户组 user www www; # #nginx进程数,建议设置为等于CPU总核心数. worker_processes 8; # #全局错误日志定义类型,[ debu ...

  4. 【转】 nginx rewrite 伪静态配置参数详细说明

    nginx rewrite 伪静态配置参数和使用例子 附正则使用说明 正则表达式匹配,其中: * ~ 为区分大小写匹配  * ~* 为不区分大小写匹配  * !~和!~*分别为区分大小写不匹配及不区分 ...

  5. [转]odoo常用openerp-server.conf配置参数详解

    参数 说明 用法 addons_path addons模块的查找路径,多个路径用逗号分隔 addons_path = E:\GreenOdoo8.0\source\openerp\addons csv ...

  6. Apache日志配置参数详细说明

    Apache日志按时间分段记录 在apache的配置文件httpd.conf中找到ErrorLog logs/error_log及CustomLog logs/access_log common Li ...

  7. 关于hibernate链接数据源的配置参数详细解释(转)

    具体使用方法还可以参考以下地址: http://blog.csdn.net/xb12369/article/details/41517409 以下信息转自: http://baike.baidu.co ...

  8. 编译安装php的配置参数详细解析

    ./configure --prefix=/usr/local/php --enable-opcache --enable-fpm --enable-sockets --enable-mysqlnd ...

  9. sphinx配置文件sphinx.conf参数详细说明

    sphinx配置文件sphinx.conf参数详细说明 sphinx.conf各个参数详细说明 # # Sphinx configuration file sample # # WARNING! Wh ...

随机推荐

  1. HDOJ5437(优先队列)

    Alisha’s Party Time Limit: 3000/2000 MS (Java/Others)    Memory Limit: 131072/131072 K (Java/Others) ...

  2. js 点击 隐藏弹出层

    document.onmousedown = function(e){ var ev = document.all ? window.event : e; var _con = $("#ci ...

  3. SpringMVC-Spring-Hibernate项目搭建之一-- 搭建maven 项目 & servlet的demo

    一. 搭建maven项目  1. 新建maven项目,选择maven Project --> Next 2. 勾选 Create a simple project --> Next 3. ...

  4. Tkinter学习

    from tkinter import * window = Tk() # 创建一个窗口 window.mainloop() # 消息循环,显示窗口 window.title("窗口标题&q ...

  5. ALSA声卡笔记2---ASoC驱动框架

    1.简单了解一下ASOC 在嵌入式系统里面的声卡驱动为ASOC(ALSA System on Chip) ,它是在ALSA 驱动程序上封装的一层   分为3大部分,Machine,Platform和C ...

  6. 上传图片demo

    页面: js: 后台: @RequiresPermissions("pointwall:upload:edit") @RequestMapping(value = "sa ...

  7. SVN 提交、更新、解决冲突等操作步骤

    1. 纳入版本控制 ①新建文件abc.txt ②在文件上点右键 ③添加后文件图标发生变化 2. 提交 ①使用TortoiseSVN可以提交具体某一个文件,或某一个目录下的所有改变.方法就是在想要提交的 ...

  8. Php函数set_include_path()函数详解

    set_include_path--设置include_path配置选项. 说明 string set_include_path(string $new_include_path); 为当前脚本设置i ...

  9. **__new__和__init__

    这个__new__之前在写单例模式的时候用到过,下面做个深入了解吧. __new__是一个静态方法,而__init__是一个实例方法. __new__方法会返回一个创建的实例,而__init__什么都 ...

  10. Balls(poj 3783)

    The classic Two Glass Balls brain-teaser is often posed as: “Given two identical glass spheres, you ...