{"id":28952,"date":"2023-02-08T12:43:14","date_gmt":"2023-06-22T04:55:48","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%9a%84zabbix5-0-lts\/"},"modified":"2025-08-12T10:57:20","modified_gmt":"2025-08-12T02:57:20","slug":"%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%9a%84zabbix5-0-lts","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%9a%84zabbix5-0-lts\/","title":{"rendered":"\u5728CentOS7\u4e0a\u5b89\u88c5\u6700\u65b0\u7684Zabbix5.0 LTS"},"content":{"rendered":"<h1>\u9996\u5148\u7531\u4e8e\u6700\u8fd1\u5f88\u5c11\u4f7f\u7528Zabbix\uff0c\u5e76\u4e14\u5b83\u5df2\u7ecf\u8fdb\u5316\u5e76\u66f4\u65b0\u4e3a\u6700\u65b0\u7248\u672c5.0 LTS\uff0c\u56e0\u6b64\u6211\u51b3\u5b9a\u5728CentOS7\u4e0a\u5b89\u88c5\u5b83\u3002<\/p>\n<h1>\u73af\u5883CentOS7.8\u5df2\u7ecf\u5728\u521d\u59cb\u5b89\u88c5\u72b6\u6001\u4e0b\u51c6\u5907\u597d\u4e86\u3002<\/p>\n<pre class=\"post-pre\"><code># cat \/etc\/redhat-release\r\nCentOS Linux release 7.8.2003 (Core)\r\n<\/code><\/pre>\n<h1>\u5927\u4f53\u9700\u8981\u7684\u4e1c\u897f\u30fbZabbix\u670d\u52a1\u5668<br \/>\n\u30fbZabbix\u4ee3\u7406<br \/>\n\u30fbMySQL &gt;&gt;&gt; MariaDB<br \/>\n\u30fbPHP<\/p>\n<h1>\u4e00\u8d77\u6765\u5427<\/p>\n<h3>1. \u5b89\u88c5MariaDB\u5728Zabbix\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0cPHP\u4f1a\u81ea\u52a8\u51c6\u5907\u597d\uff0c\u6240\u4ee5\u53ea\u9700\u8981\u51c6\u5907\u6570\u636e\u5e93\u5373\u53ef\u3002<\/p>\n<pre class=\"post-pre\"><code># yum install mariadb mariadb-server\r\n# systemctl start mariadb\r\n# systemctl status mariadb\r\n<\/code><\/pre>\n<h3>2. MariaDB\u7684\u521d\u59cb\u8bbe\u7f6e\u53ea\u9700\u4f7f\u7528mysql_secure_installation\u8fdb\u884c\u521d\u59cb\u8bbe\u7f6e\uff0c\u5148\u4ec5\u8bbe\u7f6eroot\u5bc6\u7801\u5373\u53ef\u3002<\/p>\n<pre class=\"post-pre\"><code># mysql_secure_installation\r\n\r\nNOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB\r\n      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!\r\n\r\nIn order to log into MariaDB to secure it, we'll need the current\r\npassword for the root user.  If you've just installed MariaDB, and\r\nyou haven't set the root password yet, the password will be blank,\r\nso you should just press enter here.\r\n\r\nEnter current password for root (enter for none):\r\nOK, successfully used password, moving on...\r\n\r\nSetting the root password ensures that nobody can log into the MariaDB\r\nroot user without the proper authorisation.\r\n\r\nSet root password? [Y\/n] y\r\nNew password:\r\nRe-enter new password:\r\nPassword updated successfully!\r\nReloading privilege tables..\r\n ... Success!\r\n\r\n\r\nBy default, a MariaDB installation has an anonymous user, allowing anyone\r\nto log into MariaDB without having to have a user account created for\r\nthem.  This is intended only for testing, and to make the installation\r\ngo a bit smoother.  You should remove them before moving into a\r\nproduction environment.\r\n\r\nRemove anonymous users? [Y\/n] y\r\n ... Success!\r\n\r\nNormally, root should only be allowed to connect from 'localhost'.  This\r\nensures that someone cannot guess at the root password from the network.\r\n\r\nDisallow root login remotely? [Y\/n] n\r\n ... skipping.\r\n\r\nBy default, MariaDB comes with a database named 'test' that anyone can\r\naccess.  This is also intended only for testing, and should be removed\r\nbefore moving into a production environment.\r\n\r\nRemove test database and access to it? [Y\/n] y\r\n - Dropping test database...\r\n ... Success!\r\n - Removing privileges on test database...\r\n ... Success!\r\n\r\nReloading the privilege tables will ensure that all changes made so far\r\nwill take effect immediately.\r\n\r\nReload privilege tables now? [Y\/n] y\r\n ... Success!\r\n\r\nCleaning up...\r\n\r\nAll done!  If you've completed all of the above steps, your MariaDB\r\ninstallation should now be secure.\r\n\r\nThanks for using MariaDB!\r\n\r\n<\/code><\/pre>\n<p>\u53ea\u8981\u5b89\u88c5\u4ee5\u4e0b\u5185\u5bb9\uff0cMariaDB\u7684\u6570\u636e\u5e93\u8bbe\u7f6e\u5e94\u8be5\u5c31\u6ca1\u6709\u95ee\u9898\u4e86\u3002<\/p>\n<pre class=\"post-pre\"><code># vi \/etc\/my.cnf.d\/server.cnf\r\n[mysqld]\r\ncharacter-set-server = utf8\r\ncollation-server     = utf8_bin\r\ninnodb_file_per_table\r\n<\/code><\/pre>\n<p>character-set-server: \u9ed8\u8ba4\u5b57\u7b26\u7f16\u7801\u7528\u4e8e\u521b\u5efa\u6570\u636e\u5e93\u65f6<br \/>\ncollation-server: \u9ed8\u8ba4\u5b57\u7b26\u7f16\u7801\u7528\u4e8e\u8bbf\u95eeMySQL\u65f6\u7684\u8f93\u51fa<br \/>\ninnodb_file_per_table: \u5c06InnoDB\u7684\u6bcf\u4e2a\u8868\u7684\u6570\u636e\u548c\u7d22\u5f15\u5206\u522b\u7ba1\u7406\u4e3a\u72ec\u7acb\u7684\u6587\u4ef6<br \/>\n\u203b\u5982\u679c\u60a8\u662f\u4ece\u524d\u5f00\u59cb\u4f7f\u7528MySQL\u7684\u4eba\uff0c\u6211\u8ba4\u4e3a\u60a8\u4f1a\u660e\u767d\uff0c\u4e4b\u524d\u7531\u4e8eInnoDB\u7684\u6bcf\u4e2a\u6570\u636e\u90fd\u4fdd\u5b58\u5728ibdata1\u4e2d\u5bfc\u81f4\u5bb9\u91cf\u81a8\u80c0\u7684\u95ee\u9898\uff0c\u73b0\u5728\u8fd9\u4e2a\u95ee\u9898\u7ec8\u4e8e\u5f97\u5230\u89e3\u51b3\u4e86\uff01\uff01\uff08\u636e\u8bf4MySQL 5.6.6\u53ca\u4ee5\u540e\u7684\u7248\u672c\u9ed8\u8ba4\u6253\u5f00\u8fd9\u4e2a\u9009\u9879\uff09<\/p>\n<p>\u30fb\u6700\u540e\u91cd\u65b0\u542f\u52a8MariaDB<\/p>\n<pre class=\"post-pre\"><code># systemctl restart mariadb\r\n<\/code><\/pre>\n<h3>3. \u5b89\u88c5Zabbix\u6211\u5011\u5c07\u53c3\u8003\u5b98\u65b9\u7db2\u7ad9\u4e0a\u7684\u8cc7\u8a0a\u7e7c\u7e8c\u9032\u884c\u3002<\/p>\n<h4>3-1. \u6ce8\u518c\u5b58\u50a8\u5e93\u6211\u4f7f\u7528\u7684\u662fCentOS7\uff0c\u5df2\u7ecf\u6ce8\u518c\u4ee5\u4e0b\u7684\u8f6f\u4ef6\u6e90\u3002\u8bf7\u6839\u636e\u60a8\u81ea\u5df1\u7684\u73af\u5883\u8fdb\u884c\u9002\u914d\u3002<\/p>\n<pre class=\"post-pre\"><code># rpm -Uvh https:\/\/repo.zabbix.com\/zabbix\/5.0\/rhel\/7\/x86_64\/zabbix-release-5.0-1.el7.noarch.rpm\r\n# yum clean all\r\n<\/code><\/pre>\n<h4>3-2. \u5b89\u88c5zabbix\u670d\u52a1\u5668\u548c\u4ee3\u7406<\/p>\n<pre class=\"post-pre\"><code># yum install zabbix-server-mysql zabbix-agent\r\n<\/code><\/pre>\n<h4>3-3. \u5b89\u88c5SCL\u5b58\u50a8\u5e93\u6309\u7167\u5b98\u65b9\u7f51\u7ad9\u4e0a\u7684\u6b65\u9aa4\u8fdb\u884c\u64cd\u4f5c\uff0c\u4e5f\u8fdb\u884cSCL\u7684\u5b89\u88c5\u3002<br \/>\nSCL\uff08Software Collections\uff09\u662f\u4e0eRed Hat Enterprise Linux\uff08RHEL\uff09\u7684\u751f\u547d\u5468\u671f\u5206\u5f00\u7684\u4e00\u79cd\u65b9\u5f0f\uff0c<br \/>\n\u5b83\u63d0\u4f9b\u4e86\u4e00\u79cd\u5b89\u88c5\u7a33\u5b9a\u7684\u6700\u65b0\u8f6f\u4ef6\u7248\u672c\u7684\u65b9\u6cd5\uff0c\u7c7b\u4f3c\u4e8eRed Hat Software Collections\u3002<br \/>\n\u7531\u4e8ezabbix-web-mysql\u548capache\u9700\u8981\u989d\u5916\u5b89\u88c5SCL\uff0c\u6240\u4ee5\u6211\u4eec\u5728\u8fd9\u91cc\u5b89\u88c5\u5b83\u3002\uff08\u603b\u4e4b\u5c31\u662fWEB\u754c\u9762\u90e8\u5206\u5427\uff01\uff09<\/p>\n<pre class=\"post-pre\"><code># yum install centos-release-scl\r\n<\/code><\/pre>\n<h4>3-4. \u7f16\u8f91\u4ed3\u5e93\u5728\u8fd9\u91cc\u6309\u7167\u5b98\u65b9\u6b65\u9aa4\u542f\u7528\u524d\u7aef\u4ee3\u7801\u5e93\u53ef\u80fd\u4e00\u5f00\u59cb\u6ca1\u6709\u95ee\u9898\u3002<\/p>\n<pre class=\"post-pre\"><code># vi \/etc\/yum.repos.d\/zabbix.repo\r\n[zabbix-frontend]\r\n...\r\nenabled=1\r\n...\r\n<\/code><\/pre>\n<h4>3-5. \u5b89\u88c5\u524d\u7aef\u5305\u88f9\u4ef6\u3002\u5373\u4f7f\u6ca1\u6709\u5b89\u88c5Apache\u6216PHP\uff0c\u5b83\u4eec\u4e5f\u4f1a\u5728\u8fd9\u91cc\u901a\u8fc7\u4f9d\u8d56\u5173\u7cfb\u81ea\u52a8\u5b89\u88c5\u3002<br \/>\n\u987a\u4fbf\u63d0\u4e00\u4e0b\uff0c\u6839\u636e\u6700\u65b0\u76845.0\u7248\u672c\uff0cPHP\u7684\u6700\u4f4e\u8981\u6c42\u8c8c\u4f3c\u662f7.2\u3002<\/p>\n<pre class=\"post-pre\"><code># yum install zabbix-web-mysql-scl zabbix-apache-conf-scl\r\n<\/code><\/pre>\n<h3>4. Zabbix\u7684\u8bbe\u7f6e<\/p>\n<h4>\u521b\u5efa\u7528\u4e8eZabbix\u7684\u6570\u636e\u5e93<\/p>\n<pre class=\"post-pre\"><code># mysql -uroot -p\r\nmysql\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\r\n\r\nmysql&gt; create database zabbix character set utf8 collate utf8_bin;\r\nmysql&gt; create user zabbix@localhost identified by 'password \u2190 \u5fc5\u8981\u306b\u5fdc\u3058\u3066\u5909\u3048\u3066\u306d\uff01';\r\nmysql&gt; grant all privileges on zabbix.* to zabbix@localhost;\r\nmysql&gt; quit;\r\n<\/code><\/pre>\n<h4>4-2. \u5c06\u6a21\u5f0f\u548c\u6570\u636e\u5bfc\u5165\u5230Zabbix\u6240\u7528\u7684\u6570\u636e\u5e93\u3002<\/p>\n<pre class=\"post-pre\"><code># zcat \/usr\/share\/doc\/zabbix-server-mysql*\/create.sql.gz | mysql -uzabbix -p zabbix\r\n4-2\u3067\u8a2d\u5b9a\u3057\u305fzabbix\u7528\u306eDB\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u6c42\u3081\u3089\u308c\u307e\u3059\r\n<\/code><\/pre>\n<h4>4-3. Zabbix\u670d\u52a1\u5668\u914d\u7f6e\u8bbe\u7f6e<\/p>\n<pre class=\"post-pre\"><code># vi \/etc\/zabbix\/zabbix_server.conf\r\nDBPassword=password \u2190 zabbix\u7528\u306eDB\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\r\n<\/code><\/pre>\n<h4>\u5c06php\u7684\u9ed8\u8ba4\u65f6\u533a\u8bbe\u7f6e\u4e3a\u65e5\u672c\u3002<\/p>\n<pre class=\"post-pre\"><code># vi \/etc\/opt\/rh\/rh-php72\/php-fpm.d\/zabbix.conf\r\n\r\n; php_value[date.timezone] = Europe\/Riga\u3000\u2190 \u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u306e\u307e\u307e\u3067OK\r\nphp_value[date.timezone] = Asia\/Tokyo\u3000\u2190 \u8ffd\u52a0\u3057\u3088\u3046\r\n<\/code><\/pre>\n<h4>4-5. \u542f\u7528\u91cd\u65b0\u542f\u52a8\u548c\u81ea\u52a8\u542f\u52a8\u3002<\/p>\n<pre class=\"post-pre\"><code># systemctl restart zabbix-server zabbix-agent httpd rh-php72-php-fpm\r\n# systemctl enable zabbix-server zabbix-agent httpd rh-php72-php-fpm mariadb\r\n<\/code><\/pre>\n<h4>\u5fc5\u987b\u6253\u5f00\u9632\u706b\u5899\uff01\u8bf7\u5728\u542f\u7528 SELinux \u7684\u60c5\u51b5\u4e0b\u8fdb\u884c\u3002<\/p>\n<pre class=\"post-pre\"><code># firewall-cmd --add-service=https --zone=public --permanent\r\n# firewall-cmd --add-service=http --zone=public --permanent\r\n# firewall-cmd --add-port=10050\/tcp --zone=public --permanent\r\n# firewall-cmd --add-port=10051\/tcp --zone=public --permanent\r\n# firewall-cmd --reload\r\n<\/code><\/pre>\n<p>\u3010\u7b14\u8bb0\u3011<br \/>\nZabbix\u670d\u52a1\u5668 \u2192 Zabbix\u4ee3\u7406 10050<br \/>\nZabbix\u4ee3\u7406 \u2192 Zabbix\u670d\u52a1\u5668 10051<\/p>\n<h3>5. \u6765\u5427\uff0c\u8ba9\u6211\u4eec\u6765\u8bbf\u95ee\u4e00\u4e0b\u5427\uff01\uff01\uff01\uff01<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657cfece37434c4406bc692a\/51-5.png\" alt=\"6.PNG\" \/><\/p>\n<h3>6. \u767b\u5f55\u9ed8\u8ba4<br \/>\n\u7528\u6237\uff1a\u7ba1\u7406\u5458<br \/>\n\u5bc6\u7801\uff1azabbix<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657cfece37434c4406bc692a\/54-1.png\" alt=\"8.PNG\" \/><\/p>\n<h3>\u7531\u4e8eSELinux\u7684\u5f71\u54cd\uff0cZabbix\u670d\u52a1\u5668\u7684\u72b6\u6001\u53d8\u4e3a\u201c\u672a\u8fd0\u884c\u201d\uff0c\u9700\u8981\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002\u30fb\u67e5\u8be2Zabbix\u76f8\u5173\u7684\u8bb8\u53ef\u89c4\u5219\u7ec4\u5b9a\u4e49\u3002<\/p>\n<pre class=\"post-pre\"><code># getsebool -a|grep zabbix\r\nhttpd_can_connect_zabbix --&gt; off\r\nzabbix_can_network --&gt; off\r\nzabbix_run_sudo --&gt; off\r\n<\/code><\/pre>\n<p>httpd_can_connect_zabbix\uff1a\u5141\u8bb8httpd\u4f7f\u7528CGI\u3001PHP\u7b49\u811a\u672c\u8bbf\u95eeZabbix\u670d\u52a1\u5668<br \/>\nzabbix_can_network\uff1a\u5141\u8bb8Zabbix\u670d\u52a1\u5668\u8bbf\u95ee\u5176\u4ed6\u7f51\u7edc<br \/>\nzabbix_run_sudo\uff1a\u5141\u8bb8\u901a\u8fc7Zabbix\u670d\u52a1\u5668\u8fd0\u884csudo\u547d\u4ee4\u3002<\/p>\n<p>\u30fb\u4e0d\u9700\u8981\u901a\u8fc7Zabbix\u670d\u52a1\u5668\u6388\u4e88sudo\u4f7f\u7528\u6743\u9650\u8fdb\u884c\u547d\u4ee4\u6267\u884c\uff0c\u56e0\u6b64\u53ea\u9700\u5c06\u5176\u4ed6\u6743\u9650\u6253\u5f00\u3002<\/p>\n<pre class=\"post-pre\"><code># setsebool -P httpd_can_connect_zabbix on\r\n# setsebool -P zabbix_can_network on\r\n<\/code><\/pre>\n<p>\u30fbSELinux\u4ecd\u7136\u5341\u5206\u56fa\u6267\u3002<br \/>\n\u4ec5\u4ec5\u505a\u5230\u8fd9\u4e00\u70b9\u662f\u4e0d\u591f\u7684\u3002\u5728\u8fd9\u79cd\u72b6\u6001\u4e0b\uff0c\u5373\u4f7f\u91cd\u65b0\u542f\u52a8Zabbix\u670d\u52a1\u5668\u4e5f\u4f1a\u51fa\u73b0\u9519\u8bef\uff0c\u56e0\u6b64\u9700\u8981\u8fdb\u4e00\u6b65\u8c03\u6574\u3002<br \/>\n\u5bf9\u4ed8\u8fd9\u79cdSELinux\u95ee\u9898\uff0c\u53ef\u4ee5\u4f7f\u7528audit2allow\u3002<br \/>\naudit2allow\u547d\u4ee4\u4f1a\u8bfb\u53d6\u65e5\u5fd7\u5e76\u663e\u793a\u62d2\u7edd\u7684\u539f\u56e0\u548c\u89e3\u51b3\u65b9\u6848\u3002<br \/>\n\uff08\u5c1d\u8bd5\u8bfb\u53d6\/var\/log\/audit\/audit.log\uff09<\/p>\n<p>\u4ece\u8fd9\u91cc\u5f00\u59cb\u91cd\u590d\u3002<br \/>\n\u203b\u5728\u6211\u7684\u73af\u5883\u4e2d\u5df2\u7ecf\u6267\u884c\u4e86\u4e09\u6b21\u3002<\/p>\n<pre class=\"post-pre\"><code># grep zabbix_server \/var\/log\/audit\/audit.log | audit2allow\r\n\r\n\r\n#============= zabbix_t ==============\r\nallow zabbix_t zabbix_var_run_t:sock_file create;\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code># grep zabbix_server \/var\/log\/audit\/audit.log | audit2allow -M zabbix-policy\r\n******************** IMPORTANT ***********************\r\nTo make this policy package active, execute:\r\n\r\nsemodule -i zabbix-policy.pp\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code># semodule -i zabbix-policy.pp\r\n# systemctl restart zabbix-server\r\n# systemctl status  zabbix-server\r\n<\/code><\/pre>\n<p>\u91cd\u590d\u7ed3\u675f<\/p>\n<p>\u5728\u6211\u7684\u73af\u5883\u4e2d\uff0c\u6700\u7ec8\u663e\u793a\u4e86\u4ee5\u4e0b\u4e09\u4e2a\u9009\u9879\u3002<\/p>\n<pre class=\"post-pre\"><code># grep zabbix_server \/var\/log\/audit\/audit.log | audit2allow\r\n\r\n\r\n#============= zabbix_t ==============\r\n\r\n#!!!! This avc is allowed in the current policy\r\nallow zabbix_t self:unix_stream_socket connectto;\r\n\r\n#!!!! This avc is allowed in the current policy\r\nallow zabbix_t zabbix_var_run_t:sock_file unlink;\r\nallow zabbix_t zabbix_var_run_t:sock_file create;\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657cfece37434c4406bc692a\/69-0.png\" alt=\"image.png\" \/><\/p>\n<h3>\u5bf9\u65e5\u672c\u8bed\u7684\u672c\u571f\u5316<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657cfece37434c4406bc692a\/71-0.png\" alt=\"image.png\" \/><\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657cfece37434c4406bc692a\/72-0.png\" alt=\"image.png\" \/>\u51fa\u73b0\u7684\u9519\u8bef\u53ea\u662fSELinux\u7684\u90e8\u5206\u3002<br \/>\n\u7ec6\u8282\u4e0a\u9700\u8981\u8c03\u4f18MariaDB\u7684\u5185\u5b58\u4ee5\u53caZabbix\u7684\u8fdb\u7a0b\u6570\u91cf\u7b49\uff0c\u4f46\u603b\u4f53\u6765\u8bf4\u5df2\u7ecf\u5b8c\u6210\u5230\u80fd\u591f\u8fd0\u884c\u7684\u72b6\u6001\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148\u7531\u4e8e\u6700\u8fd1\u5f88\u5c11\u4f7f\u7528Zabbix\uff0c\u5e76\u4e14\u5b83\u5df2\u7ecf\u8fdb\u5316\u5e76\u66f4\u65b0\u4e3a\u6700\u65b0\u7248\u672c5.0 LTS\uff0c\u56e0\u6b64\u6211\u51b3\u5b9a\u5728CentOS7\u4e0a\u5b89 [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[227],"class_list":["post-28952","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-227"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5728CentOS7\u4e0a\u5b89\u88c5\u6700\u65b0\u7684Zabbix5.0 LTS - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u5173\u4e8e\u5728CentOS7\u4e0a\u5b89\u88c5\u6700\u65b0\u7684Zabbix5.0 LTS\u7684\u6280\u672f\u6587\u7ae0\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728centos7\u4e0a\u5b89\u88c5\u6700\u65b0\u7684zabbix5-0-lts\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728CentOS7\u4e0a\u5b89\u88c5\u6700\u65b0\u7684Zabbix5.0 LTS\" \/>\n<meta property=\"og:description\" content=\"\u5173\u4e8e\u5728CentOS7\u4e0a\u5b89\u88c5\u6700\u65b0\u7684Zabbix5.0 LTS\u7684\u6280\u672f\u6587\u7ae0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728centos7\u4e0a\u5b89\u88c5\u6700\u65b0\u7684zabbix5-0-lts\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-06-22T04:55:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-12T02:57:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657cfece37434c4406bc692a\/51-5.png\" \/>\n<meta name=\"author\" content=\"\u6e05, \u5b87\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6e05, \u5b87\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%9a%84zabbix5-0-lts\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%9a%84zabbix5-0-lts\/\",\"name\":\"\u5728CentOS7\u4e0a\u5b89\u88c5\u6700\u65b0\u7684Zabbix5.0 LTS - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-06-22T04:55:48+00:00\",\"dateModified\":\"2025-08-12T02:57:20+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/1a6ecd3d914d22a5ac32791ffc1fbd8e\"},\"description\":\"\u5173\u4e8e\u5728CentOS7\u4e0a\u5b89\u88c5\u6700\u65b0\u7684Zabbix5.0 LTS\u7684\u6280\u672f\u6587\u7ae0\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%9a%84zabbix5-0-lts\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%9a%84zabbix5-0-lts\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%9a%84zabbix5-0-lts\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728CentOS7\u4e0a\u5b89\u88c5\u6700\u65b0\u7684Zabbix5.0 LTS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/1a6ecd3d914d22a5ac32791ffc1fbd8e\",\"name\":\"\u6e05, \u5b87\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g\",\"caption\":\"\u6e05, \u5b87\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%9a%84zabbix5-0-lts\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5728CentOS7\u4e0a\u5b89\u88c5\u6700\u65b0\u7684Zabbix5.0 LTS - Blog - Silicon Cloud","description":"\u5173\u4e8e\u5728CentOS7\u4e0a\u5b89\u88c5\u6700\u65b0\u7684Zabbix5.0 LTS\u7684\u6280\u672f\u6587\u7ae0","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728centos7\u4e0a\u5b89\u88c5\u6700\u65b0\u7684zabbix5-0-lts\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5728CentOS7\u4e0a\u5b89\u88c5\u6700\u65b0\u7684Zabbix5.0 LTS","og_description":"\u5173\u4e8e\u5728CentOS7\u4e0a\u5b89\u88c5\u6700\u65b0\u7684Zabbix5.0 LTS\u7684\u6280\u672f\u6587\u7ae0","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728centos7\u4e0a\u5b89\u88c5\u6700\u65b0\u7684zabbix5-0-lts\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-06-22T04:55:48+00:00","article_modified_time":"2025-08-12T02:57:20+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657cfece37434c4406bc692a\/51-5.png"}],"author":"\u6e05, \u5b87","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6e05, \u5b87","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%9a%84zabbix5-0-lts\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%9a%84zabbix5-0-lts\/","name":"\u5728CentOS7\u4e0a\u5b89\u88c5\u6700\u65b0\u7684Zabbix5.0 LTS - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-06-22T04:55:48+00:00","dateModified":"2025-08-12T02:57:20+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/1a6ecd3d914d22a5ac32791ffc1fbd8e"},"description":"\u5173\u4e8e\u5728CentOS7\u4e0a\u5b89\u88c5\u6700\u65b0\u7684Zabbix5.0 LTS\u7684\u6280\u672f\u6587\u7ae0","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%9a%84zabbix5-0-lts\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%9a%84zabbix5-0-lts\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%9a%84zabbix5-0-lts\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5728CentOS7\u4e0a\u5b89\u88c5\u6700\u65b0\u7684Zabbix5.0 LTS"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/1a6ecd3d914d22a5ac32791ffc1fbd8e","name":"\u6e05, \u5b87","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g","caption":"\u6e05, \u5b87"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%9a%84zabbix5-0-lts\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/28952","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=28952"}],"version-history":[{"count":3,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/28952\/revisions"}],"predecessor-version":[{"id":111414,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/28952\/revisions\/111414"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=28952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=28952"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=28952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}