{"id":362,"date":"2016-10-18T21:03:47","date_gmt":"2016-10-18T13:03:47","guid":{"rendered":"https:\/\/yyshell.com\/?p=362"},"modified":"2018-02-24T21:55:36","modified_gmt":"2018-02-24T13:55:36","slug":"centos6%e5%ae%89%e8%a3%85nginx%ef%bc%8cphp7%ef%bc%8czabbix3-2%e6%95%99%e7%a8%8b%ef%bc%883%ef%bc%89","status":"publish","type":"post","link":"https:\/\/yyshell.com\/?p=362","title":{"rendered":"CentOS6\u5b89\u88c5nginx\uff0cphp7\uff0czabbix3.2\u6559\u7a0b\uff083\uff09"},"content":{"rendered":"<p>\u5ba2\u6237\u7aef\u670d\u52a1\u5668\u4e5f\u662fCentOS6\uff0cIP\uff1a192.168.42.101<\/p>\n<p>\u5b89\u88c5\u5b98\u65b9repo<\/p>\n<pre class=\"lang:sh decode:true \">rpm -ivh http:\/\/repo.zabbix.com\/zabbix\/3.2\/rhel\/6\/x86_64\/zabbix-release-3.2-1.el6.noarch.rpm<\/pre>\n<p>\u5b89\u88c5agent<\/p>\n<pre class=\"lang:sh decode:true \">[root@template ~]# yum install zabbix-agent -y<\/pre>\n<p>\u7f16\u8f91\u4e0b\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n<pre class=\"lang:sh decode:true \">[root@template ~]# vim \/etc\/zabbix\/zabbix_agentd.conf<\/pre>\n<p>\u628a\u5982\u4e0b\u914d\u7f6e\u66f4\u6539\u4e0b\uff1a<\/p>\n<pre class=\"lang:ini decode:true \">Server=192.168.42.15\r\nServerActive=192.168.42.15\r\nHostname=Zabbix agent<\/pre>\n<p>\u9632\u706b\u5899\u653e\u884c\u4e0b\u7aef\u53e3:<\/p>\n<pre class=\"lang:sh decode:true \">[root@template ~]# iptables -I INPUT -p tcp --dport 10050 -j ACCEPT\r\n[root@template ~]# service iptables save\r\niptables: Saving firewall rules to \/etc\/sysconfig\/iptables:[  OK  ]\r\n[root@template ~]# service iptables restart<\/pre>\n<p>\u542f\u52a8agent\u670d\u52a1\uff0c\u5e76\u52a0\u5165\u5f00\u673a\u542f\u52a8<\/p>\n<pre class=\"lang:sh decode:true \">[root@template ~]# service zabbix-agent start\r\nStarting Zabbix agent:                                     [  OK  ]\r\n[root@template ~]# chkconfig zabbix-agent on<\/pre>\n<p>\u6dfb\u52a0\u76d1\u63a7\u9879\u76ee\uff1a<br \/>\n<a href=\"https:\/\/yyshell.com\/wp-content\/uploads\/2016\/10\/zabbix7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-363 size-full\" src=\"https:\/\/yyshell.com\/wp-content\/uploads\/2016\/10\/zabbix7.png\" alt=\"zabbix7\" width=\"971\" height=\"385\" \/><\/a>\u586b\u5199\u76f8\u5e94\u7684\u5185\u5bb9\uff1a<br \/>\n<a href=\"https:\/\/yyshell.com\/wp-content\/uploads\/2016\/10\/zabbix8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-368 size-full\" src=\"https:\/\/yyshell.com\/wp-content\/uploads\/2016\/10\/zabbix8.png\" alt=\"zabbix8\" width=\"960\" height=\"594\" \/><\/a>\u6dfb\u52a0\u4e2a\u6a21\u677f\uff1a<br \/>\n<a href=\"https:\/\/yyshell.com\/wp-content\/uploads\/2016\/10\/zabbix9.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-366 size-full\" src=\"https:\/\/yyshell.com\/wp-content\/uploads\/2016\/10\/zabbix9.png\" alt=\"zabbix9\" width=\"973\" height=\"371\" \/><\/a>\u5230\u6b64\uff0c\u5bf9\u5e94\u7684\u670d\u52a1\u5668\u5df2\u7ecf\u6dfb\u52a0\u5230\u6211\u4eec\u642d\u5efa\u7684zabbix server\u4e2d\u53bb\u4e86\u3002<\/p>\n<p>\u53ef\u4ee5\u770b\u5230\u76f8\u5e94\u7684\u56fe\u5f62\u6570\u636e\uff1a<br \/>\n<a href=\"https:\/\/yyshell.com\/wp-content\/uploads\/2016\/10\/zabbix10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-370 size-full\" src=\"https:\/\/yyshell.com\/wp-content\/uploads\/2016\/10\/zabbix10.png\" alt=\"zabbix10\" width=\"966\" height=\"629\" \/><\/a>\uff08\u5b8c\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5ba2\u6237\u7aef\u670d\u52a1\u5668\u4e5f\u662fCentOS6\uff0cIP\uff1a192.168.42.101 \u5b89\u88c5\u5b98\u65b9re<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,8,12,7],"tags":[45,43,47,44],"class_list":["post-362","post","type-post","status-publish","format-standard","hentry","category-linux","category-web","category-12","category-7","tag-centos6","tag-php7","tag-zabbix-agent","tag-zabbix3-2"],"_links":{"self":[{"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/posts\/362","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yyshell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=362"}],"version-history":[{"count":4,"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/posts\/362\/revisions"}],"predecessor-version":[{"id":371,"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/posts\/362\/revisions\/371"}],"wp:attachment":[{"href":"https:\/\/yyshell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yyshell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=362"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yyshell.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}