Apache Apollo添加centos的开机启动

vim /lib/systemd/system/apollo.service
[Unit]
Description=apollo
After=network.target

[Service]
Type=oneshot
ExecStart=/opt/modules/apache-apollo-1.7.1/bin/myBroker/bin/apollo-broker-service start
ExecStop=/opt/modules/apache-apollo-1.7.1/bin/myBroker/bin/apollo-broker-service stop
ExecReload=/bin/kill -s HUP $MAINop
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target
#启动apollo
systemctl start apollo
#添加开机启动
systemclt enbale apollo
#查询状态
systemclt status apollo
#关闭
systemclt stop apollo
#重启
systemclt restart apollo