{"id":4758,"date":"2019-08-24T00:57:12","date_gmt":"2019-08-23T16:57:12","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=4758"},"modified":"2019-08-24T23:43:42","modified_gmt":"2019-08-24T15:43:42","slug":"supervisord","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/supervisord","title":{"rendered":"supervisord\u547d\u4ee4 – \u914d\u7f6e\u540e\u53f0\u670d\u52a1\/\u5e38\u9a7b\u8fdb\u7a0b\u7684\u8fdb\u7a0b\u5de5\u5177"},"content":{"rendered":"\n

supervisor\u662f\u4e00\u4e2a\u7528 Python \u5199\u7684\u8fdb\u7a0b\u7ba1\u7406\u5de5\u5177\uff0c\u53ef\u4ee5\u5f88\u65b9\u4fbf\u7684\u7528\u6765\u5728 UNIX-like \u7cfb\u7edf\uff08\u4e0d\u652f\u6301 Windows\uff09\u4e0b\u542f\u52a8\u3001\u91cd\u542f\uff08\u81ea\u52a8\u91cd\u542f\u7a0b\u5e8f\uff09\u3001\u5173\u95ed\u8fdb\u7a0b\uff08\u4e0d\u4ec5\u4ec5\u662f Python \u8fdb\u7a0b\uff09\u3002 <\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong> supervisord [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
status<\/td>\u67e5\u770b\u7a0b\u5e8f\u72b6\u6001 <\/td><\/tr>
start<\/td>\u542f\u52a8\u7a0b\u5e8f<\/td><\/tr>
stop<\/td>\u5173\u95ed\u7a0b\u5e8f<\/td><\/tr>
update<\/td>\u91cd\u542f\u914d\u7f6e\u6587\u4ef6\u4fee\u6539\u8fc7\u7684\u7a0b\u5e8f <\/td><\/tr><\/tbody><\/table>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u67e5\u770b\u8fdb\u7a0b\u8fd0\u884c\u72b6\u6001\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# supervisorctl status<\/pre>\n\n\n\n

\u542f\u52a8\u8fdb\u7a0b\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# supervisorctl start \u8fdb\u7a0b\u540d<\/pre>\n\n\n\n

\u5173\u95ed\u8fdb\u7a0b\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# supervisorctl stop \u8fdb\u7a0b\u540d<\/pre>\n\n\n\n

\u6e05\u7a7a\u8fdb\u7a0b\u65e5\u5fd7\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# supervisorctl clear \u8fdb\u7a0b\u540d<\/pre>\n\n\n\n

\u91cd\u65b0\u8f7d\u5165\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# supervisorctl update<\/pre>\n","protected":false},"excerpt":{"rendered":"

supervisor\u662f\u4e00\u4e2a\u7528 Python \u5199\u7684\u8fdb\u7a0b\u7ba1\u7406\u5de5\u5177\uff0c\u53ef\u4ee5\u5f88\u65b9\u4fbf\u7684\u7528\u6765\u5728 UNIX-like \u7cfb\u7edf\uff08\u4e0d […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4758"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=4758"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4758\/revisions"}],"predecessor-version":[{"id":4802,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4758\/revisions\/4802"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=4758"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=4758"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=4758"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}