{"id":806,"date":"2021-07-29T15:07:09","date_gmt":"2021-07-29T07:07:09","guid":{"rendered":"https:\/\/egonlin.com\/?p=806"},"modified":"2021-07-30T11:01:02","modified_gmt":"2021-07-30T03:01:02","slug":"%e7%ac%ac%e4%ba%8c%e8%8a%82%ef%bc%9azabbix%e6%a8%a1%e6%9d%bf%e7%9b%91%e6%8e%a7php","status":"publish","type":"post","link":"https:\/\/egonlin.com\/?p=806","title":{"rendered":"\u7b2c\u4e8c\u8282\uff1azabbix\u6a21\u677f\u76d1\u63a7php"},"content":{"rendered":"<h1>\u4f7f\u7528\u6a21\u677f\u76d1\u63a7php<\/h1>\n<h2>\u4e00\u3001\u5b89\u88c5php\u5e76\u5f00\u542f\u76d1\u63a7\u9875\u9762<\/h2>\n<h3>1\u3001\u5b89\u88c5php<\/h3>\n<pre><code class=\"language-bash\">[root@web01 ~]# yum install -y php-fpm<\/code><\/pre>\n<h3>2\u3001\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u5f00\u542f\u76d1\u63a7\u9875\u9762<\/h3>\n<pre><code class=\"language-bash\">[root@web01 ~]# vim \/etc\/php-fpm.d\/www.conf \n...\n; Default Value: not set\npm.status_path = \/php_status\n\n; The ping URI to call the monitoring page of FPM. If this value is not set, no\n; URI will be recognized as a ping page. This could be used to test from outside\n; that FPM is alive and responding, or to\n....<\/code><\/pre>\n<pre><code class=\"language-bash\">[root@web01 ~]# vim \/etc\/nginx\/nginx.conf\n...\n        location \/nginx_status {\n            stub_status;\n        }\n\n        location \/php_status {\n            fastcgi_pass 127.0.0.1:9000;\n            fastcgi_index index.php;\n            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\n            include fastcgi_params;\n        }\n\n        error_page 404 \/404.html;\n...<\/code><\/pre>\n<h3>3\u3001\u6d4b\u8bd5\u8bed\u6cd5\u5e76\u91cd\u542f<\/h3>\n<pre><code class=\"language-bash\">[root@web01 ~]# nginx -t\nnginx: the configuration file \/etc\/nginx\/nginx.conf syntax is ok\nnginx: configuration file \/etc\/nginx\/nginx.conf test is successful\n[root@web01 ~]# systemctl restart nginx.service php-fpm.service <\/code><\/pre>\n<h3>4\u3001\u67e5\u770bphp\u72b6\u6001\u9875<\/h3>\n<pre><code class=\"language-bash\">http:\/\/10.0.0.7\/php_status<\/code><\/pre>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/egonlin.com\/wp-content\/uploads\/2021\/07\/1-17.png'><img class=\"lazyload lazyload-style-2\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  data-original=\"https:\/\/egonlin.com\/wp-content\/uploads\/2021\/07\/1-17.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" \/><\/div><\/p>\n<h3>5\u3001\u76d1\u63a7\u6307\u6807\u4ecb\u7ecd<\/h3>\n<pre><code class=\"language-bash\">pool\uff08\u8d44\u6e90\u6c60\u540d\uff09:                 www\nprocess manager\uff08\u8fdb\u7a0b\u7ba1\u7406\u65b9\u5f0f\uff09:      dynamic\uff08\u52a8\u6001\uff09\nstart time\uff08\u542f\u52a8\u65f6\u95f4\uff09:           17\/Mar\/2021:10:43:25 +0800\nstart since\uff08\u6301\u7eed\u8fd0\u884c\u65f6\u95f4\uff09:          50\naccepted conn\uff08\u63a5\u53d7\u7684\u8bf7\u6c42\u6b21\u6570\uff09:        1\nlisten queue\uff08\u8bf7\u6c42\u961f\u5217\uff09:         0\nmax listen queue\uff08\u6700\u5927\u961f\u5217\u503c\uff09:     0\nlisten queue len\uff08\u76d1\u542c\u7684\u961f\u5217\u957f\u5ea6\uff09:     128\nidle processes\uff08\u7a7a\u95f2\u8fdb\u7a0b\uff09:       4\nactive processes\uff08\u5f53\u524d\u6d3b\u52a8\u8fdb\u7a0b\uff09:     1\ntotal processes\uff08\u8fdb\u7a0b\u603b\u6570\uff09:      5\nmax active processes\uff08\u6700\u5927\u6d3b\u52a8\u8fdb\u7a0b\u6570\uff09: 1\nmax children reached\uff08\u8fbe\u5230\u6700\u5927\u8fdb\u7a0b\u6570\uff09: 0\nslow requests\uff08\u6162\u8bf7\u6c42\uff09:        0<\/code><\/pre>\n<h2>\u4e8c\u3001\u5bfc\u5165\u6a21\u677f<\/h2>\n<h3>1\u3001\u5bfc\u5165\u6a21\u677f<\/h3>\n<p><\/p><div id=\"rml_readmorelogin_placeholder\" style=\"position:relative;\"><div id=\"rml_fade_content\" style=\"position: absolute;\r\ntop:-10em;\r\nwidth:100%;\r\nheight:10em;\r\nbackground: -webkit-linear-gradient(rgba(255, 255, 255, 0) 0%,#ffffff 100%);\r\nbackground-image: -moz-linear-gradient(rgba(255, 255, 255, 0) 0%,#ffffff 100%);\r\nbackground-image: -o-linear-gradient(rgba(255, 255, 255, 0) 0%,#ffffff 100%);\r\nbackground-image: linear-gradient(rgba(255, 255, 255, 0) 0%,#ffffff 100%);\r\nbackground-image: -ms-linear-gradient(rgba(255, 255, 255, 0) 0%,#ffffff 100%);\"><\/div><div class=\"wpf-controller aru_rml_from_in_post\" style=\"background-color:#eeeeee;border:5px solid #cce6ff;\" id=\"ARU_ReadMoreLogin_ReadMoreLoginController\"><h2 id=\"Header\">\u67e5\u770b\u66f4\u591a<\/h2><div id=\"Message\"><p>\u8054\u7cfb\u7ba1\u7406\u5458\u5fae\u4fe1tutu19192010\uff0c\u6ce8\u518c\u8d26\u53f7<\/p>\n<\/div><div id=\"StatusBarHeader\"><\/div><form id=\"ARU_ReadMoreLogin_ReadMoreLoginController\"><input name=\"post_id\" value=\"806\" type=\"hidden\"\/><input name=\"_init_callback\" value=\"InitLogin\" type=\"hidden\"\/><input name=\"post_id\" value=\"806\" type=\"hidden\"\/><input name=\"rt_ype\" value=\"1\" type=\"hidden\"\/><input name=\"nonce\" value=\"22d8e20959\" type=\"hidden\"\/><input name=\"_wpnonce\" value=\"ee095c8387\" type=\"hidden\"\/><input name=\"_controller\" value=\"ARU_ReadMoreLogin\\ReadMoreLoginController\" type=\"hidden\"\/><input name=\"_proxy_controller\" value=\"ARU_ReadMoreLogin\\ReadMoreLoginController\" type=\"hidden\"\/><input name=\"_view\" value=\"ARU_ReadMoreLogin\\ReadMoreLoginView\" type=\"hidden\"\/><table class=\"wpf-table-placeholder\"><tbody class=\"wpf-table-placeholder\"><tr class=\"wpf-table-placeholder\"><td class=\"wpf-table-placeholder-input\" width=\"400px\"><table class=\"wpf-table-placeholder\"><tbody class=\"wpf-table-placeholder\"><tr class=\"wpf-table-placeholder\"><th class=\"wpf-table-placeholder-input\"><label class=\"wpf-label\">Username:<\/label><\/th><\/tr><tr class=\"wpf-table-placeholder\"><td class=\"wpf-table-placeholder-input\"><input class=\"regular-text text_input\" name=\"username\" value=\"\" type=\"text\"\/><\/td><\/tr><tr class=\"wpf-table-placeholder\"><th class=\"wpf-table-placeholder-input\"><label class=\"wpf-label\">Password:<\/label><\/th><\/tr><tr class=\"wpf-table-placeholder\"><td class=\"wpf-table-placeholder-input\"><input class=\"regular-text text_input\" name=\"password\" value=\"\" type=\"password\"\/><\/td><\/tr><\/tbody><\/table><p class=\"wpf-table-placeholder submit\"><button class=\"wp_plugin_framework_ajax_button\" type=\"button\" style=\"background-color:#4D90FE;;color:#ffffff;;border:1px solid #3079ed;\" name=\"_event\" value=\"ButtonLogin\">Log in<\/button><\/p><\/td><td class=\"wpf-table-placeholder-input\"><\/td><\/tr><\/tbody><\/table><\/form><div id=\"ButtonStartRegister\"><a href=\"https:\/\/egonlin.com\/wp-login.php?action=register\">Register<\/a><\/div><div id=\"Link1\"><a href=\"https:\/\/egonlin.com\/wp-login.php?action=lostpassword\">Forgotten username or password?<\/a><\/div><div id=\"StatusBarFooter\"><\/div><\/div><\/div><div id=aru_remaining_content><\/div>","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528\u6a21\u677f\u76d1\u63a7php \u4e00\u3001\u5b89\u88c5php\u5e76\u5f00\u542f\u76d1\u63a7\u9875\u9762 1\u3001\u5b89\u88c5php [root@web01 ~]# yum in [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":815,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[108],"tags":[21,19,22,117,118,20],"_links":{"self":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/posts\/806"}],"collection":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=806"}],"version-history":[{"count":0,"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/posts\/806\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/media\/815"}],"wp:attachment":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=806"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=806"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}