{"id":880,"date":"2021-12-24T13:22:07","date_gmt":"2021-12-24T05:22:07","guid":{"rendered":"https:\/\/www.dd-home.top\/?p=880"},"modified":"2022-01-09T14:43:44","modified_gmt":"2022-01-09T06:43:44","slug":"apache-apollo%e6%b7%bb%e5%8a%a0centos%e7%9a%84%e5%bc%80%e6%9c%ba%e5%90%af%e5%8a%a8","status":"publish","type":"post","link":"https:\/\/www.dd-home.top\/?p=880","title":{"rendered":"Apache Apollo\u6dfb\u52a0centos\u7684\u5f00\u673a\u542f\u52a8"},"content":{"rendered":"<p><!--more--><\/p>\n<pre class=\"md-fences md-end-block ty-contain-cm modeLoaded\" lang=\"sh\" spellcheck=\"false\"><span role=\"presentation\"><span class=\"cm-builtin\">vim<\/span> \/lib\/systemd\/system\/apollo.service<\/span><\/pre>\n<pre class=\"md-fences md-end-block ty-contain-cm modeLoaded\" lang=\"sh\" spellcheck=\"false\"><span role=\"presentation\">[Unit]<\/span>\r\n<span role=\"presentation\"><span class=\"cm-def\">Description<\/span><span class=\"cm-operator\">=<\/span>apollo<\/span>\r\n<span role=\"presentation\"><span class=\"cm-def\">After<\/span><span class=\"cm-operator\">=<\/span>network.target<\/span>\r\n<span role=\"presentation\">\u200b<\/span>\r\n<span role=\"presentation\">[Service]<\/span>\r\n<span role=\"presentation\"><span class=\"cm-def\">Type<\/span><span class=\"cm-operator\">=<\/span>oneshot<\/span>\r\n<span role=\"presentation\"><span class=\"cm-def\">ExecStart<\/span><span class=\"cm-operator\">=<\/span>\/opt\/modules\/apache-apollo-1.7.1\/bin\/myBroker\/bin\/apollo-broker-service <span class=\"cm-builtin\">start<\/span><\/span>\r\n<span role=\"presentation\"><span class=\"cm-def\">ExecStop<\/span><span class=\"cm-operator\">=<\/span>\/opt\/modules\/apache-apollo-1.7.1\/bin\/myBroker\/bin\/apollo-broker-service <span class=\"cm-builtin\">stop<\/span><\/span>\r\n<span role=\"presentation\"><span class=\"cm-def\">ExecReload<\/span><span class=\"cm-operator\">=<\/span>\/bin\/kill <span class=\"cm-attribute\">-s<\/span> HUP <span class=\"cm-def\">$MAINop<\/span><\/span>\r\n<span role=\"presentation\"><span class=\"cm-def\">RemainAfterExit<\/span><span class=\"cm-operator\">=<\/span><span class=\"cm-builtin\">yes<\/span><\/span>\r\n<span role=\"presentation\">\u200b<\/span>\r\n<span role=\"presentation\">[Install]<\/span>\r\n<span role=\"presentation\"><span class=\"cm-def\">WantedBy<\/span><span class=\"cm-operator\">=<\/span>multi-user.target<\/span><\/pre>\n<pre class=\"md-fences md-end-block ty-contain-cm modeLoaded\" lang=\"sh\" spellcheck=\"false\"><span role=\"presentation\"><span class=\"cm-comment\">#\u542f\u52a8apollo<\/span><\/span>\r\n<span role=\"presentation\">systemctl <span class=\"cm-builtin\">start<\/span> apollo<\/span>\r\n<span role=\"presentation\"><span class=\"cm-comment\">#\u6dfb\u52a0\u5f00\u673a\u542f\u52a8<\/span><\/span>\r\n<span role=\"presentation\">systemclt enbale apollo<\/span>\r\n<span role=\"presentation\"><span class=\"cm-comment\">#\u67e5\u8be2\u72b6\u6001<\/span><\/span>\r\n<span role=\"presentation\">systemclt status apollo<\/span>\r\n<span role=\"presentation\"><span class=\"cm-comment\">#\u5173\u95ed<\/span><\/span>\r\n<span role=\"presentation\">systemclt <span class=\"cm-builtin\">stop<\/span> apollo<\/span>\r\n<span role=\"presentation\"><span class=\"cm-comment\">#\u91cd\u542f<\/span><\/span>\r\n<span role=\"presentation\">systemclt <span class=\"cm-builtin\">restart<\/span> apollo<\/span><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,6],"tags":[69],"class_list":["post-880","post","type-post","status-publish","format-standard","hentry","category-5","category-6","tag-apollo"],"_links":{"self":[{"href":"https:\/\/www.dd-home.top\/index.php?rest_route=\/wp\/v2\/posts\/880","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dd-home.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dd-home.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dd-home.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dd-home.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=880"}],"version-history":[{"count":2,"href":"https:\/\/www.dd-home.top\/index.php?rest_route=\/wp\/v2\/posts\/880\/revisions"}],"predecessor-version":[{"id":898,"href":"https:\/\/www.dd-home.top\/index.php?rest_route=\/wp\/v2\/posts\/880\/revisions\/898"}],"wp:attachment":[{"href":"https:\/\/www.dd-home.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=880"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dd-home.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=880"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dd-home.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}