码迷,mamicode.com
首页 > 其他好文 > 详细

rocketmq systemctl 启动

时间:2020-11-04 17:35:04      阅读:29      评论:0      收藏:0      [点我收藏+]

标签:bsp   doc   roo   qname   sample   main   ice   sla   启动   

namesrv systemctl

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

 

 

[root@master3 ~]# 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 systemctl 启动

标签:bsp   doc   roo   qname   sample   main   ice   sla   启动   

原文地址:https://www.cnblogs.com/fengjian2016/p/13917972.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!