mac下安装rocketmq汇总
启动mqnamesrv,命令在bin目录下进行启动命令脚本:
nohup sh ./mqnamesrv &
再启动mqbroker,命令在bin目录下进行启动命令脚本:
nohup sh ./mqbroker -n localhost:9876 &
查看启动日志:
cat nohup.out
如果nameserver和broker日志如下所示,表示没有问题,两个都表示启动成功了。
guodong@192 bin % cat nohup.out Create RAMDisk /Volumes/RAMDisk for gc logging on Darwin OS. OpenJDK 64-Bit Server VM warning: Using the DefNew young collector with the CMS collector is deprecated and will likely be removed in a future release OpenJDK 64-Bit Server VM warning: UseCMSCompactAtFullCollection is deprecated and will likely be removed in a future release. The Name Server boot success. serializeType=JSON The broker[192.168.1.2, 192.168.1.2:10911] boot success. serializeType=JSON and name server is localhost:9876 guodong@192 bin %
打包Dashboard,在rocketmq-dashboard-1.0.0目录下
mvn clean package -DskipTests=true
启动Dashboard,jar包在target目录下
java -jar rocketmq-dashboard-1.0.0.jar
其中要修改application.properties文件,其中配置文件如下所示:
server.address=0.0.0.0 server.port=8088 ### SSL setting #server.ssl.key-store=classpath:rmqcngkeystore.jks #server.ssl.key-store-password=rocketmq #server.ssl.keyStoreType=PKCS12 #server.ssl.keyAlias=rmqcngkey #spring.application.index=true spring.application.name=rocketmq-dashboard spring.http.encoding.charset=UTF-8 spring.http.encoding.enabled=true spring.http.encoding.force=true logging.level.root=INFO logging.config=classpath:logback.xml #if this value is empty,use env value rocketmq.config.namesrvAddr NAMESRV_ADDR | now, you can set it in ops page.default localhost:9876 rocketmq.config.namesrvAddr=127.0.0.1:9876 #if you use rocketmq version < 3.5.8, rocketmq.config.isVIPChannel should be false.default true rocketmq.config.isVIPChannel= #timeout for mqadminExt, default 5000ms rocketmq.config.timeoutMillis=5000 #rocketmq-console's data path:dashboard/monitor rocketmq.config.dataPath=/tmp/rocketmq-console/data #set it false if you don't want use dashboard.default true rocketmq.config.enableDashBoardCollect=true #set the message track trace topic if you don't want use the default one rocketmq.config.msgTrackTopicName= rocketmq.config.ticketKey=ticket #Must create userInfo file: ${rocketmq.config.dataPath}/users.properties if the login is required rocketmq.config.loginRequired=false #set the accessKey and secretKey if you used acl #rocketmq.config.accessKey= #rocketmq.config.secretKey= rocketmq.config.useTLS=false
其中要修改rocketmq.config.namesrvAddr配置即可。
地址:
https://blog.csdn.net/qq_41833935/article/details/125315386
https://www.cnblogs.com/luckyplj/p/16008578.html
https://blog.csdn.net/qq_33598419/article/details/125717676
郭慕荣博客园