• Centos7 rocketmq systemctl 启动配置文件


    • rocketmqnamesrv.service
    cat /lib/systemd/system/rocketmqnamesrv.service
    
    [Unit]
    Description=rocketmq - nameserver
    Documentation=http://mirror.bit.edu.cn/apache/rocketmq/
    After=network.target
    
    [Service]
    Type=sample
    User=root
    ExecStart=/data/rocketmq/bin/mqnamesrv
    ExecReload=/bin/kill -s HUP $MAINPID
    ExecStop=/bin/kill -s QUIT $MAINPID
    Restart=0
    LimitNOFILE=65536
    
    [Install]
    WantedBy=multi-user.target
    
    • rocketmqbroker.service
    cat /lib/systemd/system/rocketmqbroker.service 
    [Unit]
    Description=rocketmq - broker-master-2
    Documentation=http://mirror.bit.edu.cn/apache/rocketmq/
    After=network.target
    
    [Service]
    Type=sample
    User=root
    ExecStart=/data/rocketmq/bin/mqbroker -c /data/rocketmq/conf/2m-noslave/broker-b.properties
    ExecReload=/bin/kill -s HUP $MAINPID
    ExecStop=/bin/kill -s QUIT $MAINPID
    Restart=0
    LimitNOFILE=65536
    
    [Install]
    WantedBy=multi-user.target
    
    • 注意事项
      rocketMQ在启动时要根据系统内存大小,合理分配brokerserver&nameserver的启动参数
      分别修改以下配置文件参数
      rocketmq/bin/runbroker.sh;
      rocketmq/bin/runserver.sh
  • 相关阅读:
    elementui:eltreenode
    Cesium+Vue
    TXT文件读写
    The Naked Kitchen
    0627realman
    信息: XML validation disabled
    跟踪加载图像
    加载和显示图像
    文件创建
    彩色图像转灰度图像
  • 原文地址:https://www.cnblogs.com/fuhai0815/p/14272267.html
Copyright © 2020-2023  润新知