
数据库
PostgreSQL 18.6 安装记录
一、环境 项值主机192.168.6.98系统CentOS Stream 9(x86\64)SELinuxEnforcing防火墙firewalld(active)安装方式PGDG
nohup sh bin/mqnamesrv &
执行结果示例:
The Name Server boot success. serializeType=JSON
nohup sh bin/mqbroker -n localhost:9876 &
执行结果示例:
The broker[192.168.0.1:10911] boot success. serializeType=JSON and name server is localhost:9876
sh bin/mqadmin clusterList -n localhost:9876
执行结果示例:
#Cluster Name #Broker Name #Addr DefaultCluster broker-a 192.168.0.1:10911 DefaultCluster broker-b 192.168.0.2:10911
sh bin/mqadmin updateTopic -c DefaultCluster -n localhost:9876 -t TopicTest
执行结果示例:
create topic to 192.168.0.1:10911 success.
sh bin/tools.sh org.apache.rocketmq.example.quickstart.Producer
执行结果示例:
SendResult [sendStatus=SEND_OK, msgId=...
sh bin/tools.sh org.apache.rocketmq.example.quickstart.Consumer
执行结果示例:
ConsumeMessageThread_1 Receive New Messages: ...
sh bin/mqadmin queryMsgById -n localhost:9876 -i XXXXXXXX
执行结果示例:
Message ID: XXXXXXXX Topic: TopicTest Queue ID: 0 StoreSize: 1024 BornTimestamp: 1646755200000 StoreTimestamp: 1646755201000
评论 0