{"id":248741,"date":"2022-08-08T08:10:21","date_gmt":"2022-08-08T00:10:21","guid":{"rendered":"https:\/\/gulass.cn\/?p=248741"},"modified":"2022-07-26T11:11:20","modified_gmt":"2022-07-26T03:11:20","slug":"centos-supervisor-nginx","status":"publish","type":"post","link":"https:\/\/gulass.cn\/centos-supervisor-nginx.html","title":{"rendered":"\u8fd0\u7ef4\uff1aCentos8\u5b89\u88c5Supervisor\u5b88\u62a4Nginx\u8fdb\u7a0b\u7b14\u8bb0"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | Supervisor\u662f\u57fa\u4e8ePython\u8bed\u8a00\u5f00\u53d1\u7684\u4e00\u5957\u7684\u8fdb\u7a0b\u7ba1\u7406\u7a0b\u5e8f\uff0c\u5b83\u53ef\u4ee5\u5c06\u4e00\u4e2a\u666e\u901a\u7684\u547d\u4ee4\u884c\u8fdb\u7a0b\u53d8\u4e3a\u540e\u53f0daemon\uff0c\u5e76\u76d1\u63a7\u8fdb\u7a0b\u72b6\u6001\uff0c\u5f02\u5e38\u9000\u51fa\u65f6\u652f\u6301\u81ea\u52a8\u91cd\u542f\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
\u4e00\u3001supervisor\u4ecb\u7ecd<\/strong><\/div>\n 1\u3001\u7b80\u4ecb<\/strong><\/span><\/div>\n Supervisor\u662f\u57fa\u4e8ePython\u8bed\u8a00\u5f00\u53d1\u7684\u4e00\u5957\u7684\u8fdb\u7a0b\u7ba1\u7406\u7a0b\u5e8f\uff0c\u5b83\u53ef\u4ee5\u5c06\u4e00\u4e2a\u666e\u901a\u7684\u547d\u4ee4\u884c\u8fdb\u7a0b\u53d8\u4e3a\u540e\u53f0daemon\uff0c\u5e76\u76d1\u63a7\u8fdb\u7a0b\u72b6\u6001\uff0c\u5f02\u5e38\u9000\u51fa\u65f6\u652f\u6301\u81ea\u52a8\u91cd\u542f\u3002<\/p>\n 2\u3001\u5de5\u4f5c\u539f\u7406<\/strong><\/span><\/div>\n \u5b83\u4e3b\u8981\u662f\u901a\u8fc7fork\/exec\u7684\u65b9\u5f0f\u628a\u8fd9\u4e9b\u88ab\u7ba1\u7406\u7684\u8fdb\u7a0b\u5f53\u4f5csupervisor\u7684\u5b50\u8fdb\u7a0b\u6765\u542f\u52a8\uff0c\u8fd9\u6837\u53ea\u8981\u5728supervisor\u7684\u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u628a\u8981\u7ba1\u7406\u7684\u8fdb\u7a0b\u7684\u53ef\u6267\u884c\u6587\u4ef6\u7684\u8def\u5f84\u5199\u8fdb\u53bb\u5373\u53ef\u3002\u4e5f\u5b9e\u73b0\u5f53\u5b50\u8fdb\u7a0b\u6302\u6389\u7684\u65f6\u5019\uff0c\u7236\u8fdb\u7a0b\u53ef\u4ee5\u51c6\u786e\u83b7\u53d6\u5b50\u8fdb\u7a0b\u6302\u6389\u7684\u4fe1\u606f\u7684\uff0c\u53ef\u4ee5\u9009\u62e9\u662f\u5426\u81ea\u5df1\u542f\u52a8\u548c\u9884\u8b66\u3002supervisor\u8fd8\u63d0\u4f9b\u4e86\u4e00\u4e2a\u529f\u80fd\uff0c\u53ef\u4ee5\u4e3asupervisord\u6216\u8005\u6bcf\u4e2a\u5b50\u8fdb\u7a0b\uff0c\u8bbe\u7f6e\u4e00\u4e2a\u975eroot\u7684user\uff0c\u8fd9\u4e2auser\u5c31\u53ef\u4ee5\u7ba1\u7406\u5b83\u5bf9\u5e94\u7684\u8fdb\u7a0b\u3002<\/p>\n 3\u3001\u8fd0\u884c\u73af\u5883<\/strong><\/span><\/div>\n supervisor\u53ef\u4ee5\u8fd0\u884c\u5728\u5927\u591a\u6570\u7c7bUNIX\u7cfb\u7edf\uff0c\u4e0d\u652f\u6301windows\u7cfb\u7edf\u8fd0\u884c\uff0cSupervisor\u8fd0\u884c\u5728python3\u7248\u672c3.4\u6216\u66f4\u9ad8\u7248\u672c\u4ee5\u53capython2\u7248\u672c2.7\u4e0a\u5de5\u4f5c\u3002<\/p>\n 4\u3001supervisor \u7ec4\u6210<\/strong><\/span><\/div>\n supervisord\uff1asupervisor\u670d\u52a1\u7684\u4e3b\u8981\u7ba1\u7406\u5668\uff0c\u8d1f\u8d23\u7ba1\u7406\u6211\u4eec\u914d\u7f6e\u7684\u5b50\u8fdb\u7a0b\uff0c\u5305\u62ec\u91cd\u542f\u5d29\u6e83\u6216\u5f02\u5e38\u9000\u51fa\u7684\u5b50\u8fdb\u7a0b\uff0c\u540c\u65f6\u4e5f\u54cd\u5e94\u6765\u81ea\u5ba2\u6237\u7aef\u7684\u8bf7\u6c42\u3002<\/p>\n supervisorctl\uff1asupervisord\u670d\u52a1\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u884c\u3002\u542c\u8fc7\u8fd9\u4e2a\uff0c\u6211\u4eec\u53ef\u4ee5\u83b7\u5f97\u7531\u4e3b\u8fdb\u7a0b\u63a7\u5236\u7684\u5b50\u8fdb\u7a0b\u7684\u72b6\u6001\uff0c\u505c\u6b62\u548c\u542f\u52a8\u5b50\u8fdb\u7a0b\uff0c\u5e76\u83b7\u5f97\u4e3b\u8fdb\u7a0b\u7684\u8fd0\u884c\u5217\u8868\u3002<\/p>\n Web Server\uff1a\u901a\u8fc7web\u754c\u9762\u67e5\u770b\u548c\u63a7\u5236\u8fdb\u7a0b\u72b6\u6001\u3002<\/p>\n XML-RPC Interface\uff1a\u670d\u52a1\u4e8eweb UI\u7684\u540c\u4e00\u4e2aHTTP\u670d\u52a1\u5668\u63d0\u4f9b\u4e00\u4e2aXML-RPC\u63a5\u53e3\uff0c\u53ef\u4ee5\u7528\u6765\u8be2\u95ee\u548c\u63a7\u5236\u7ba1\u7406\u7a0b\u5e8f\u53ca\u5176\u8fd0\u884c\u7684\u7a0b\u5e8f\u3002<\/p>\n \u4e8c\u3001\u5b89\u88c5\u914d\u7f6e\u6b65\u9aa4<\/strong><\/div>\n 1\u3001 \u6267\u884c\u5b89\u88c5\u547d\u4ee4<\/strong><\/span><\/div>\n yum install supervisor \uff1a<\/pre>\n |