Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
quickmsg
smqtt
提交
d77ea794
S
smqtt
项目概览
quickmsg
/
smqtt
通知
3
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
smqtt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
d77ea794
编写于
9月 23, 2021
作者:
1ssqq1lxr
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
springboot
上级
d52f29ab
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
89 addition
and
101 deletion
+89
-101
README.md
README.md
+2
-2
docs/cluster/1.config.md
docs/cluster/1.config.md
+35
-36
docs/http/1.config.md
docs/http/1.config.md
+16
-17
docs/quickstart/3.main.md
docs/quickstart/3.main.md
+36
-42
docs/websocket/1.config.md
docs/websocket/1.config.md
+0
-4
未找到文件。
README.md
浏览文件 @
d77ea794
...
...
@@ -22,7 +22,7 @@ SMQTT基于Netty开发,底层采用Reactor3反应堆模型,支持单机部署
6.
tls加密
-
支持tls加密(mqtt端口/http端口)
7.
websocket协议支持x
> 使用
websocket协议包装mqtt协议
> 使用
mqtt over websocket
8.
http协议交互
-
支持http接口推送消息
-
支持spi扩展http接口
...
...
@@ -36,7 +36,7 @@ SMQTT基于Netty开发,底层采用Reactor3反应堆模型,支持单机部署
> 默认镜像最新tag: 1ssqq1lxr/smqtt
12.
持久化支持(session 保留消息)
13.
规则引擎支持(文档需要赞助提供)
14.
支持springboot starter
容器化
14.
支持springboot starter
启动
15.
管理后台
> 请参考smqtt文档如何启动管理后台
...
...
docs/cluster/1.config.md
浏览文件 @
d77ea794
...
...
@@ -8,42 +8,41 @@ sort: 1
1.
构建
`BootstrapConfig.ClusterConfig`
参数
```
Bootstrap.builder()
.rootLevel(Level.DEBUG)
.clusterConfig(
BootstrapConfig.ClusterConfig
.builder()
.enable(true)
.namespace("smqtt")
.node("node-1")
.port(7773)
.url("127.0.0.1:7771,127.0.0.1:7772")
. build())
.build()
.startAwait();
```
`Bootstrap.ClusterConfig`
参数:
| 参数 | 说明 | 必传 |默认值 |
| ---- | ---- |---- |---- |
| enable | 启动http |否 |false |
| namespace |命名空间 |否 |smqtt |
| node | 节点名称,必须唯一 | 是|无 |
| port | 端口号|是|无|
| url | cluster初始化节点||无|
2.
启动Bootstrap时候设置
`BootstrapConfig.ClusterConfig`
```
Bootstrap bootstrap = Bootstrap.builder()
.rootLevel(Level.DEBUG)
.clusterConfig(BootstrapConfig.ClusterConfig)
.build()
.startAwait();
```
```
Bootstrap.builder()
.rootLevel(Level.DEBUG)
.clusterConfig(
BootstrapConfig.ClusterConfig
.builder()
.enable(true)
.namespace("smqtt")
.node("node-1")
.port(7773)
.url("127.0.0.1:7771,127.0.0.1:7772")
. build())
.build()
.startAwait();
```
`Bootstrap.ClusterConfig`
参数:
| 参数 | 说明 | 必传 |默认值 |
| ---- | ---- |---- |---- |
| enable | 启动http |否 |false |
| namespace |命名空间 |否 |smqtt |
| node | 节点名称,必须唯一 | 是|无 |
| port | 端口号|是|无|
| url | cluster初始化节点||无|
2.
启动Bootstrap时候设置
`BootstrapConfig.ClusterConfig`
```
Bootstrap bootstrap = Bootstrap.builder()
.rootLevel(Level.DEBUG)
.clusterConfig(BootstrapConfig.ClusterConfig)
.build()
.startAwait();
```
## 配置文件启动(docker,jar,springboot)
...
...
docs/http/1.config.md
浏览文件 @
d77ea794
...
...
@@ -18,23 +18,22 @@ sort: 1
.build()
```
`Bootstrap.HttpConfig`
参数:
| 参数 | 说明 | 必传 |默认值 |
| ---- | ---- |---- |---- |
| enable | 启动http |否 |false |
| accessLog | http日志 |否 |false |
| admin | http后台管理配置 | 否|无 |
| ssl | ssl配置|否|参考ssl配置参数|
BootstrapConfig.HttpAdmin参数
| 参数 | 说明 | 必传 |默认值 |
| ---- | ---- |---- |---- |
| enable | 启动后台管理 |否 |false |
| username | 登陆用户名 |否 |smqtt |
| password | 登陆密码 | 否|smqtt |
`Bootstrap.HttpConfig`参数:
| 参数 | 说明 | 必传 |默认值 |
| ---- | ---- |---- |---- |
| enable | 启动http |否 |false |
| accessLog | http日志 |否 |false |
| admin | http后台管理配置 | 否|无 |
| ssl | ssl配置|否|参考ssl配置参数|
BootstrapConfig.HttpAdmin参数
| 参数 | 说明 | 必传 |默认值 |
| ---- | ---- |---- |---- |
| enable | 启动后台管理 |否 |false |
| username | 登陆用户名 |否 |smqtt |
| password | 登陆密码 | 否|smqtt |
2.
启动Bootstrap时候设置
`BootstrapConfig.HttpConfig`
...
...
docs/quickstart/3.main.md
浏览文件 @
d77ea794
...
...
@@ -5,12 +5,8 @@ sort: 3
# main启动
## main启动
2.
启动服务:
- 阻塞启动
```markdown
## 阻塞启动
```
markdown
Bootstrap bootstrap = Bootstrap.builder()
.rootLevel(Level.DEBUG)
...
...
@@ -43,40 +39,38 @@ sort: 3
.build()
.startAwait();
```
- 非阻塞启动
```markdown
Bootstrap bootstrap = Bootstrap.builder()
.rootLevel(Level.DEBUG)
.tcpConfig(
BootstrapConfig
.TcpConfig
.builder()
.port(8888)
.username("smqtt")
.password("smqtt")
.build())
.httpConfig(
BootstrapConfig
.HttpConfig
.builder()
.enable(true)
.accessLog(true)
.httpAdmin(BootstrapConfig.HttpAdmin.builder().enable(true).username("smqtt").password("smqtt").build())
.build())
.clusterConfig(
BootstrapConfig.
ClusterConfig
.builder()
.enable(true)
.namespace("smqtt")
.node("node-1")
.port(7773)
.url("127.0.0.1:7771,127.0.0.1:7772").
build())
.build()
.start().block();
```
## 非阻塞启动
```
markdown
Bootstrap bootstrap = Bootstrap.builder()
.rootLevel(Level.DEBUG)
.tcpConfig(
BootstrapConfig
.TcpConfig
.builder()
.port(8888)
.username("smqtt")
.password("smqtt")
.build())
.httpConfig(
BootstrapConfig
.HttpConfig
.builder()
.enable(true)
.accessLog(true)
.httpAdmin(BootstrapConfig.HttpAdmin.builder().enable(true).username("smqtt").password("smqtt").build())
.build())
.clusterConfig(
BootstrapConfig.
ClusterConfig
.builder()
.enable(true)
.namespace("smqtt")
.node("node-1")
.port(7773)
.url("127.0.0.1:7771,127.0.0.1:7772").
build())
.build()
.start().block();
```
\ No newline at end of file
```
\ No newline at end of file
docs/websocket/1.config.md
浏览文件 @
d77ea794
...
...
@@ -29,10 +29,6 @@ sort: 1
.build()
.startAwait();
```
2.
启动Bootstrap时候设置
`BootstrapConfig.WebsocketConfig`
```
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录