CentOS -- RocketMQ 4.3.2 standalone Installation and Configuration
1 Download RockeMQ Package:
You need to download it and put it to the OS Image.
wget http://apache.claz.org/rocketmq/4.3.2/rocketmq-all-4.3.2-bin-release.zipand unzip the package to /opt/rocketmq |
2 Prerequsite
JDK installed.
3 Create service account for Jetty
useradd -m rocketmqecho "umask 002" >> /home/rocketmq/.bash_profile |
4 Modify PATH system variable4
run /opt/rocketmq/bin/os.shchange JVM parameters in /opt/rocketmq/bin/runserver.sh |
5 Configure RocketMQ
run /opt/rocketmq/bin/os.shchange JVM parameters in /opt/rocketmq/bin/runserver.shchange JVM parameters in /opt/rocketmq/bin/runbroker.sh#Note: Usually set the Xmn to 1/8 or Xmx |
8 Add RocketMQ to system service
cd /etc/init.dvi rocketmq and add#!/usr/bin/env bash## rocketmq - this script starts and stops the rocketmq daemon## chkconfig: - 85 15ROCKETMQ_HOME=/opt/rocketmqROCKETMQ_BIN=${ROCKETMQ_HOME}/binADDR=`hostname -i`:9876LOG_DIR=${ROCKETMQ_HOME}/logsNAMESERVER_LOG=${LOG_DIR}/namesrv.logBROKER_LOG=${LOG_DIR}/broker.logstart() { if [ ! -d ${LOG_DIR} ];then su - rocketmq -c "mkdir ${LOG_DIR}" fi cd ${ROCKETMQ_HOME} su - rocketmq -c "nohup sh $ROCKETMQ_HOME/bin/mqnamesrv > ${NAMESERVER_LOG} 2>&1 &" echo "The Name Server boot success..." su - rocketmq -c "nohup sh $ROCKETMQ_HOME/bin/mqbroker -n ${ADDR} > ${BROKER_LOG} 2>&1 &" echo "The broker[%s, ${ADDR}] boot success..."}stop() { cd ${ROCKETMQ_HOME} su - rocketmq -c "sh $ROCKETMQ_HOME/bin/mqshutdown broker" sleep 1 su - rocketmq -c "sh $ROCKETMQ_HOME/bin/mqshutdown namesrv"}restart() { stop sleep 5 start}case "$1" in start) start ;; stop) stop ;; restart) restart ;; *) echo $"Usage: $0 {start|stop|restart}" exit 2esac#################################################chmod a+x rocketmqchkconfig --add rocketmqchown -R rocketmq:rocketmq /opt/rocketmq |
CentOS -- RocketMQ 4.3.2 standalone Installation and Configuration的更多相关文章
- RocketMQ 4.3.2 standalone Installation and Configuration
1 Download RockeMQ Package: You need to download it and put it to the OS Image. wget http://apache.c ...
- CentOS -- Redis 3.2.12 Standalone Install and Configuration
1 Tune OS setting echo never > /sys/kernel/mm/transparent_hugepage/enabled echo "vm.overcom ...
- P6 Professional Installation and Configuration Guide (Microsoft SQL Server Database) 16 R1
P6 Professional Installation and Configuration Guide (Microsoft SQL Server Database) 16 R1 May ...
- P6 EPPM Installation and Configuration Guide 16 R1 April 2016
P6 EPPM Installation and Configuration Guide 16 R1 April 2016 Contents About Installing and ...
- installation and configuration of OpenCV4Android SDK
http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/O4A_SDK.html#running-opencv ...
- !! This tutorial was designed to help you with installation and configuration of OpenCV4Android SDK.
ref: http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/O4A_SDK.html#running-o ...
- HHVM Installation and Configuration(HHVM 安装及配置)
Installation and Configuration¶ General Installation Considerations Installation on Linux systems Ub ...
- Installation and Configuration MySQL Cluster 7.2 on CentOS 5 (include MySQL 5.5)
Architecture Manager Node mysql-mag1 192.168.1.31 mysql-mag2 192.168.1.32 SQL Node mysql-sql1 ...
- HAProxy Installation and Configuration on CentOS 6.4 to Mitigate The Effects of Abusive Clients--转
ref:http://thoughts.z-dev.org/2013/05/07/haproxy-installation-and-configuration-on-centos-6-4-to-mit ...
随机推荐
- 简单web网页与SSM后台交互
简单web网页与SSM后台交互 情况说明 如今,已经搭建好SSM后台开发环境,并且可以经由postman工具测试成功.现在尝试写出web前端网页,通过实现简单的提交.注册.查询功能来加深对前后端数据传 ...
- spark streaming 接收kafka消息之五 -- spark streaming 和 kafka 的对接总结
Spark streaming 和kafka 处理确保消息不丢失的总结 接入kafka 我们前面的1到4 都在说 spark streaming 接入 kafka 消息的事情.讲了两种接入方式,以及s ...
- containsObject 总是不含有,你会用吗
结论:containsObject:是在比较内存地址,即使两个对象内容完全一样,地址不同,那也是不同的.我个人认为这个方法应该叫是否存在同一个对象 (开始不知道这个知识,被坑,至少浪费了3个钟头,数组 ...
- 绿色版的mysql 下载安装配置方式
解压下载好的压缩包 下载地址 mysql-5.6.26-win64 绿色版 copy 一份my-default.ini改名字为my.ini为mysql的配置文件 打开my.ini 修改配置文件 默认的 ...
- ld: warning: directory not found for option ''
iOS开发中经常遇到这样的警告,如图所示: 原因是存在未用到的目录. 解决方法:选择Build Settings,找到Search Paths中的Library Search Paths,如下图 删除 ...
- 【译】尝试使用Nullable Reference Types
随着.NET Core 3.0 Preview 7的发布,C#8.0已被认为是“功能完整”的.这意味着它们的最大亮点Nullable Reference Types,在行为方面也被锁定在.NET Co ...
- 后端小白的VUE入门笔记, 进阶篇
使用 vue-cli( 脚手架) 搭建项目 基于vue-cli 创建一个模板项目 通过 npm root -g 可以查看vue全局安装目录,进而知道自己有没有安装vue-cli 如果没有安装的话,使用 ...
- shell 提取文件名和目录名
转自http://blog.csdn.net/universe_hao/article/details/52640321 shell 提取文件名和目录名 在写shell脚本中,经常会有需要对路径和文件 ...
- Simple Windows Service in C++
本文是来自CodeProject中的一篇名为Simple Windows Service in C++的译文,原文地址为:https://www.codeproject.com/Articles/49 ...
- 100天搞定机器学习|Day35 深度学习之神经网络的结构
100天搞定机器学习|Day1数据预处理 100天搞定机器学习|Day2简单线性回归分析 100天搞定机器学习|Day3多元线性回归 100天搞定机器学习|Day4-6 逻辑回归 100天搞定机器学习 ...