一 RocketMq的单机版安装
1.1 RocketMq的上传
1.2 解压
[root@localhost export]# unzip rocketmq-all-4.9.6-bin-release.zip
1.3 修改配置
[root@localhost bin]# vi runserver.sh
使用vim命令打开bin/runbroker.sh文件。现将这些值修改为如下:
1.4 启动
1.启动nameserver
[root@localhost bin]# nohup sh mqnamesrv &
[1] 6645
nohup: ignoring input and appending output to ‘nohup.out’
[root@localhost bin]# cd ..
[root@localhost rocketmq-all-4.9.6-bin-release]# tail -f ~/logs/rocketmqlogs/namesrv.log
2023-06-04 12:35:58 INFO main - tls.client.keyPassword = null
2023-06-04 12:35:58 INFO main - tls.client.certPath = null
2023-06-04 12:35:58 INFO main - tls.client.authServer = false
2023-06-04 12:35:58 INFO main - tls.client.trustCertPath = null
2023-06-04 12:35:58 INFO main - Using JDK SSL provider
2023-06-04 12:35:59 INFO main - SSLContext created for server
2023-06-04 12:35:59 INFO main - Try to start service thread:FileWatchService started:false lastThread:null
2023-06-04 12:35:59 INFO NettyEventExecutor - NettyEventExecutor service started
2023-06-04 12:35:59 INFO main - The Name Server boot success. serializeType=JSON
2023-06-04 12:35:59 INFO FileWatchService - FileWatchService service started
2.启动broker
[root@localhost rocketmq-all-4.9.6-bin-release]# nohup sh bin/mqbroker -n localhost:9876 &
[2] 6756
nohup: ignoring input and appending output to ‘nohup.out’
[root@localhost rocketmq-all-4.9.6-bin-release]# tail -f ~/logs/rocketmqlogs/broker.log
2023-06-04 12:36:55 INFO main - Try to start service thread:FileWatchService started:false lastThread:null
2023-06-04 12:36:55 INFO main - Try to start service thread:PullRequestHoldService started:false lastThread:null
2023-06-04 12:36:55 INFO FileWatchService - FileWatchService service started
2023-06-04 12:36:55 INFO PullRequestHoldService - PullRequestHoldService service started
2023-06-04 12:36:55 INFO main - Try to start service thread:TransactionalMessageCheckService started:false lastThread:null
2023-06-04 12:36:56 INFO brokerOutApi_thread_1 - register broker[0]to name server localhost:9876 OK
2023-06-04 12:36:56 INFO main - The broker[localhost.localdomain, 192.168.152.141:10911] boot success. serializeType=JSON and name server is localhost:9876
2023-06-04 12:37:05 INFO BrokerControllerScheduledThread1 - dispatch behind commit log 0 bytes
2023-06-04 12:37:05 INFO BrokerControllerScheduledThread1 - Slave fall behind master: 0 bytes
2023-06-04 12:37:06 INFO brokerOutApi_thread_2 - register broker[0]to name server localhost:9876 OK
1.5 关闭服务
二 dashbord的安装
2.1 dashbord的安装