{"id":18,"date":"2019-03-02T15:01:24","date_gmt":"2019-03-02T07:01:24","guid":{"rendered":"http:\/\/www.aiqinqin.info\/?p=18"},"modified":"2019-03-27T23:16:54","modified_gmt":"2019-03-27T15:16:54","slug":"zabbix%e5%ae%89%e8%a3%85%e8%84%9a%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/www.aiqinqin.info\/?p=18","title":{"rendered":"zabbix\u5b89\u88c5\u811a\u672c(\u6839\u636e\u5b98\u65b9\u6587\u6863\u6574\u7406)"},"content":{"rendered":"<ul>\n<li>\u5b89\u88c5\u7cfb\u7edf\u4e3aCENTOS7.X\uff0c\u5176\u4f59\u7248\u672c\u4e0d\u9002\u5408\u672c\u811a\u672c\u3002<\/li>\n<\/ul>\n<pre><code class=\"\">#!\/bin\/bash\nrpm -i https:\/\/repo.zabbix.com\/zabbix\/4.0\/rhel\/7\/x86_64\/zabbix-release-4.0-1.el7.noarch.rpm\nyum install zabbix-server-mysql zabbix-web-mysql zabbix-agent -y\n<\/code><\/pre>\n<ul>\n<li>\u6570\u636e\u5e93\u9700\u8981\u7684\u8bbe\u7f6e\u5305\u62ec\u7528\u6237\u6388\u6743\u548c\u521d\u59cb\u5316\u7684SQL\u7684\u5bfc\u5165\u3002\u6570\u636e\u5e93\u5b89\u88c5\u6587\u6863\uff0c\u53c2\u8003: <em><a href=\"https:\/\/www.aiqinqin.info\/?p=143\" title=\"CentOS7\u901a\u8fc7yum\u65b9\u5f0f\u5b89\u88c5mysql8\">CentOS7\u901a\u8fc7yum\u65b9\u5f0f\u5b89\u88c5mysql8<\/a><\/em><\/li>\n<\/ul>\n<pre><code class=\"\">mysql -uroot -p\nmysql&gt; create database zabbix character set utf8 collate utf8_bin;\nmysql&gt; create user 'zabbix'@'localhost' identified by 'password';\nmysql&gt; grant all privileges on `zabbix`.* to 'zabbix'@'localhost';\nmysql&gt; ALTER USER 'zabbix'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;   #\u4fee\u6539\u52a0\u5bc6\u89c4\u5219 \nmysql&gt; ALTER USER 'zabbix'@'localhost' IDENTIFIED WITH mysql_native_password BY 'psssword';   #\u66f4\u65b0\u4e00\u4e0b\u7528\u6237\u7684\u5bc6\u7801\nmysql&gt; quit;\n\n#\u5bfc\u5165\u6570\u636e\u5e93\u6587\u4ef6\nzcat \/usr\/share\/doc\/zabbix-server-mysql*\/create.sql.gz | mysql -uzabbix -p password\n\n#\u7f16\u8f91  \/etc\/zabbix\/zabbix_server.conf \u4fee\u6539\u6570\u636e\u5e93\u7684\u8fde\u63a5\u5bc6\u7801\nDBPassword=password\n\n#\u542f\u52a8zabbix \u5e76\u8bbe\u7f6e\u5f00\u673a\u542f\u52a8\nsystemctl restart zabbix-server zabbix-agent httpd\nsystemctl enable zabbix-server zabbix-agent httpd\n<\/code><\/pre>\n<ul>\n<li>PHP\u7684\u5b89\u88c5\u73af\u5883\uff0c\u8bf7\u53c2\u8003\uff1a<em><a href=\"https:\/\/www.aiqinqin.info\/?p=143\" title=\"CENTOS7\u901a\u8fc7YUM\u65b9\u5f0f\u5b89\u88c5PHP7\">CENTOS7\u901a\u8fc7YUM\u65b9\u5f0f\u5b89\u88c5PHP7<\/a><\/em><\/li>\n<li>NGINX\u7684\u5b89\u88c5\u73af\u5883\uff0c\u8bf7\u53c2\u8003\uff1a <em><a href=\"https:\/\/www.aiqinqin.info\/?p=129\" title=\"Nginx\u6e90\u7801\u5b89\u88c5\u811a\u672c\">Nginx\u6e90\u7801\u5b89\u88c5\u811a\u672c<\/a><\/em><\/li>\n<li>\u6700\u540e\u5c06zabbix\u63d0\u4f9b\u7684WEB\u6587\u4ef6\u653e\u5728NGINX\u8bbe\u7f6e\u7684\u4f4d\u7f6e\u5373\u53ef\uff0cNGINX\u7684\u4f7f\u7528\u6587\u6863\uff0c\u672c\u5b9d\u5b9d\u8fd8\u6ca1\u6709\u5199\u7684<\/li>\n<\/ul>\n<blockquote><p>\n  \u53c2\u8003\u94fe\u63a5\uff1a <em><a href=\"https:\/\/www.zabbix.com\/documentation\/4.0\/manual\/installation\/install_from_packages\/rhel_centos\" title=\"zabbix\u5b98\u65b9\u6587\u6863\">zabbix\u5b98\u65b9\u6587\u6863<\/a><\/em>\n<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88c5\u7cfb\u7edf\u4e3aCENTOS7.X\uff0c\u5176\u4f59\u7248\u672c\u4e0d\u9002\u5408\u672c\u811a\u672c\u3002 #!\/bin\/bash rpm -i https:\/\/r [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,13,15,2],"tags":[],"class_list":["post-18","post","type-post","status-publish","format-standard","hentry","category-linux","category-shell-linux","category-zabbix","category-jiankong"],"_links":{"self":[{"href":"https:\/\/www.aiqinqin.info\/index.php?rest_route=\/wp\/v2\/posts\/18","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aiqinqin.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aiqinqin.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aiqinqin.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aiqinqin.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=18"}],"version-history":[{"count":20,"href":"https:\/\/www.aiqinqin.info\/index.php?rest_route=\/wp\/v2\/posts\/18\/revisions"}],"predecessor-version":[{"id":165,"href":"https:\/\/www.aiqinqin.info\/index.php?rest_route=\/wp\/v2\/posts\/18\/revisions\/165"}],"wp:attachment":[{"href":"https:\/\/www.aiqinqin.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aiqinqin.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aiqinqin.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}