77 lines
2.0 KiB
Markdown
77 lines
2.0 KiB
Markdown
# rocketmq
|
||
|
||
#### 介绍
|
||
RocketMQ是一个分布式的消息和流处理平台,具有低延迟、高性能、高可靠性、百亿级容量和灵活扩缩容能力。
|
||
|
||
#### 软件架构
|
||
软件架构说明
|
||
|
||
|
||
#### 安装教程
|
||
|
||
1. 切换yum源
|
||
```shell
|
||
cd /etc/yum.repos.d/ && curl -OL https://eur.openeuler.openatom.cn/coprs/zhiliatox/example/repo/openeuler-22.03_LTS_SP2/zhiliatox-example-openeuler-22.03_LTS_SP2.repo
|
||
```
|
||
2. 安装rocketmq
|
||
```shell
|
||
dnf install rocketmq
|
||
```
|
||
3. 使用RocketMQ
|
||
```shell
|
||
cd /opt/rocketmq
|
||
```
|
||
|
||
#### 使用说明
|
||
1. 启动Namesrv
|
||
|
||
对于Mac或者Linux用户:
|
||
```shell
|
||
### 启动Namesrv
|
||
$ nohup sh mqnamesrv &
|
||
|
||
### 检查日志确定Namesrv是否启动成功
|
||
$ tail -f ~/logs/rocketmqlogs/namesrv.log
|
||
The Name Server boot success...
|
||
```
|
||
对于Windows用户:
|
||
```shell
|
||
$ nohup mqnamesrv.cmd &
|
||
The Name Server boot success...
|
||
```
|
||
|
||
2. 启动Broker
|
||
|
||
对于Mac或者Linux用户:
|
||
```shell
|
||
### start Broker
|
||
$ nohup sh bin/mqbroker -n localhost:9876 &
|
||
|
||
### check whether Broker is successfully started, eg: Broker's IP is 192.168.1.2, Broker's name is broker-a
|
||
$ tail -f ~/logs/rocketmqlogs/broker.log
|
||
The broker[broker-a, 192.169.1.2:10911] boot success...
|
||
```
|
||
|
||
对于Windows用户:
|
||
```shell
|
||
$ mqbroker.cmd -n localhost:9876
|
||
The broker[broker-a, 192.169.1.2:10911] boot success...
|
||
```
|
||
|
||
#### 参与贡献
|
||
|
||
1. Fork 本仓库
|
||
2. 新建 Feat_xxx 分支
|
||
3. 提交代码
|
||
4. 新建 Pull Request
|
||
|
||
|
||
#### 特技
|
||
|
||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
||
2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
|
||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
|
||
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
|
||
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
||
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|