{"id":14752,"date":"2025-04-18T21:23:31","date_gmt":"2025-04-18T13:23:31","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/14752.html"},"modified":"2025-04-18T21:23:31","modified_gmt":"2025-04-18T13:23:31","slug":"%e3%80%90%e5%85%8d%e8%b4%b9%e3%80%91centos7minizabbix5-0agentapachephp%e6%90%ad%e5%bb%ba%e7%9b%91%e6%8e%a7%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%ba%af%e6%96%87%e6%9c%ac%e6%96%87%e5%ad%97%e7%b2%be","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/14752.html","title":{"rendered":"\u3010\u514d\u8d39\u3011Centos7mini+Zabbix5.0+agent+Apache+PHP\u642d\u5efa\u76d1\u63a7\u670d\u52a1\u5668(\u7eaf\u6587\u672c\u6587\u5b57\u7cbe\u7b80\u7248) \u65b0\u88c5\u7cfb\u7edf\u6309\u6b65\u64cd\u4f5c\u4e00\u6b21\u6210\u529f"},"content":{"rendered":"<p>\u65e0\u987b\u770b\u56fe&#xff0c;\u5b8c\u5168\u6309\u7167\u6b65\u9aa4\u64cd\u4f5c\u5373\u53ef\u642d\u5efa\u5b8c\u6210<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;Centos7.9&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>centos\u5b89\u88c5\u5305\u955c\u50cf\u4e0b\u8f7dhttps:\/\/mirrors.aliyun.com\/centos\/7.9.2009\/isos\/x86_64\/<\/p>\n<p>\u9009\u62e9\u201cCentOS-7-x86_64-DVD-2009.iso 4.4GB\u201d<\/p>\n<p>Centos7.9\u5b89\u88c5\u8fc7\u7a0b\u7565&#xff0c;\u5176\u4e2d&#xff1a;\u65f6\u533a\u4e2d\u8c03\u6574\u597d\u5f53\u524d\u65f6\u95f4&#xff0c;\u57fa\u672c\u73af\u5883\u9009\u201c\u6700\u5c0f\u5b89\u88c5\u201d<\/p>\n<p>Login as&#xff1a;Root<\/p>\n<p>Password&#xff1a;\u5b89\u88c5\u7cfb\u7edf\u65f6\u6700\u540e\u8bbe\u7f6e\u7684root\u5bc6\u7801<\/p>\n<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;Network&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p># vi \/etc\/sysconfig\/network-scripts\/ifcfg-ens33\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0#\u4fee\u6539\u7f51\u7edc\u914d\u7f6e<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0BOOTPROTO&#061;\u201cdhcp\u201d\u6539\u4e3a\u201cstatic\u201d<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ONBOOT&#061;\u201cno\u201d\u6539\u4e3a\u201cyes\u201d<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u589e\u52a0 \u2193\u00a0 \u00a0 \u00a0 \u00a0 \u4ee5\u4e0bIP\u6839\u636e\u81ea\u5df1\u5de5\u4f5c\u7f51\u7edc\u73af\u5883\u8fdb\u884c\u5339\u914d\u4fee\u6539<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0IPADDR&#061;192.168.0.2<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0NETMASK&#061;255.255.255.0 \u6216\u00a0PREFIX&#061;24<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0GATEWAY&#061;192.168.0.1<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 DNS1&#061;8.8.8.8<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0DNS2&#061;114.114.114.114<\/p>\n<p>&#xff1a;wq\u00a0 \u00a0 \u00a0 \u00a0 #\u4fdd\u5b58\u9000\u51fa<\/p>\n<p># systemctl restart network\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0# \u91cd\u542f\u7f51\u7edc\u670d\u52a1<\/p>\n<p># ping www.baidu.com\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0# \u6d4b\u8bd5\u7f51\u7edc\u662f\u5426\u8fde\u901a\u5916\u7f51<\/p>\n<p>\u6ce8\u610f&#xff1a;\u5982\u679c\u662fVMware\u865a\u62df\u673a\u672c\u673a\u642d\u5efa&#xff0c;\u6ce8\u610f\u6865\u63a5\u4e0eNAT\u6a21\u5f0f\u7684\u9009\u62e9&#xff0c;\u53ef\u80fd\u4f1a\u5f71\u54cd\u4e4b\u540e\u7684wget\u4e0b\u8f7d\u5931\u8d25\u3002\u6865\u63a5\u6a21\u5f0f\u662f\u4e0e\u672c\u673aIP\u76f8\u540c\u7f51\u6bb5\u7f51\u7edc\u7ed9\u865a\u62df\u673a\u7cfb\u7edf\u3002NAT\u6a21\u5f0f\u662f\u672c\u673a\u4e3a\u8def\u7531\u5e76\u521b\u5efa\u4e00\u4e2a\u865a\u62df\u7f51\u6bb5\u7ed9\u865a\u62df\u673a\u4e2d\u7cfb\u7edf\u4f7f\u7528\u3002<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;\u57fa\u7840\u73af\u5883\u51c6\u5907&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p># systemctl\u00a0stop\u00a0firewalld\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0# \u5173\u95ed\u9632\u706b\u5899<\/p>\n<p># vi \/etc\/selinux\/config\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0# \u5c06SELINUX\u8bbe\u7f6e\u4e3adisabled<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0SELINUX&#061;enforcing \u6539\u4e3a SELINUX&#061;disabled<\/p>\n<p>&#xff1a;wq\u00a0 \u00a0 \u00a0 \u00a0 # \u4fdd\u5b58\u9000\u51fa\u00a0 \u00a0 \u00a0 \u00a0 # \u7f51\u4e0a\u8bf4\u9700\u8981\u91cd\u542f\u7cfb\u7edf&#xff0c;\u6211\u7684\u8c8c\u4f3c\u4e0d\u9700\u8981\u91cd\u542f<\/p>\n<p># rpm -Uvh https:\/\/mirrors.aliyun.com\/zabbix\/zabbix\/5.0\/rhel\/7\/x86_64\/zabbix-release-5.0-1.el7.noarch.rpm\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0# \u5b89\u88c5\u963f\u91cc\u4e91\u6e90<\/p>\n<p> # sed -i &#039;s#http:\/\/repo.zabbix.com#https:\/\/mirrors.aliyun.com\/zabbix#&#039; \/etc\/yum.repos.d\/zabbix.repo\u00a0\u00a0 \u00a0# \u66ff\u6362\u6e90<\/p>\n<p> # mv \/etc\/yum.repos.d\/CentOS-Base.repo \/etc\/yum.repos.d\/CentOS-Base.repo.old\u00a0 \u00a0 \u00a0 \u00a0 # \u5907\u4efd<\/p>\n<p> # vi \/etc\/yum.repos.d\/CentOS-Base.repo\u00a0\u00a0 \u00a0# \u65b0\u5efa&#xff0c;\u5e76\u7c98\u8d34\u4ee5\u4e0b\u914d\u7f6e\u5185\u5bb9 [base] name&#061;CentOS-$releasever &#8211; Base baseurl&#061;http:\/\/vault.centos.org\/7.9.2009\/os\/$basearch\/ gpgcheck&#061;1 gpgkey&#061;file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-CentOS-7<\/p>\n<p>[updates] name&#061;CentOS-$releasever &#8211; Updates baseurl&#061;http:\/\/vault.centos.org\/7.9.2009\/updates\/$basearch\/ gpgcheck&#061;1 gpgkey&#061;file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-CentOS-7<\/p>\n<p>[extras] name&#061;CentOS-$releasever &#8211; Extras baseurl&#061;http:\/\/vault.centos.org\/7.9.2009\/extras\/$basearch\/ gpgcheck&#061;1 gpgkey&#061;file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-CentOS-7<\/p>\n<p> :wq\u00a0 \u00a0 \u00a0 \u00a0 # \u4fdd\u5b58\u9000\u51fa<\/p>\n<p># yum clean all\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 # \u6e05\u7406yum\u7f13\u5b58#\u6e05\u7406yum\u7f13\u5b58\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0 # yum makecache\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0# \u66f4\u65b0 yum \u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u7684\u7f13\u5b58 # yum update -y\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0# \u5347\u7ea7\u6240\u6709\u5305\u5347\u7ea7\u8f6f\u4ef6\u548c\u7cfb\u7edf\u5185\u6838<\/p>\n<p># yum install vim -y\u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0\u00a0# \u5b89\u88c5vim (\u4e0d\u7528\u53ef\u4e0d\u5b89\u88c5&#xff0c;\u672c\u6587\u672a\u4f7f\u7528)<\/p>\n<p># yum install wget -y\u00a0 \u00a0 \u00a0 \u00a0\u00a0 # \u5b89\u88c5wget(\u4e0d\u7528\u53ef\u4e0d\u5b89\u88c5&#xff0c;\u672c\u6587\u672a\u4f7f\u7528)<\/p>\n<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;\u6b63\u5f0f\u5b89\u88c5zabbix5.0&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p># yum install -y zabbix-server-mysql zabbix-agent\u00a0 \u00a0 \u00a0 \u00a0 # \u5b89\u88c5zabbix\u8f6f\u4ef6\u5305\u670d\u52a1\u548c\u76d1\u63a7<\/p>\n<p># yum install -y centos-release-scl\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0# \u5b89\u88c5SCL\u5b98\u65b9\u4ed3\u5e93<\/p>\n<p># vi \/etc\/yum.repos.d\/zabbix.repo\u00a0 \u00a0 \u00a0 \u00a0 # \u4fee\u6539\u914d\u7f6e \u00a0\u00a0 \u00a0[zabbix-frontend] \u00a0\u00a0 \u00a0\u2026\u2026 \u00a0\u00a0 \u00a0enabled&#061;0 \u6539\u4e3a 1\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 # \u6539\u4e3a\u542f\u52a8 \u00a0\u00a0 \u00a0:wq<\/p>\n<p># vi \/etc\/yum.repos.d\/CentOS-SCLo-scl.repo\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0# \u4fee\u6539\u914d\u7f6e \u00a0\u00a0 \u00a0[centos-sclo-sclo] \u00a0\u00a0 \u00a0\u6ce8\u91ca\u6389# mirrorlist&#061;http:\/\/\u2026\u2026 \u00a0\u00a0 \u00a0\u589e\u52a0 baseurl&#061;http:\/\/vault.centos.org\/7.9.2009\/sclo\/$basearch\/sclo\/ \u00a0\u00a0 \u00a0:wq<\/p>\n<p># vi \/etc\/yum.repos.d\/CentOS-SCLo-scl-rh.repo\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0# \u4fee\u6539\u914d\u7f6e \u00a0\u00a0 \u00a0[centos-sclo-rh] \u00a0\u00a0 \u00a0\u6ce8\u91ca\u6389#mirrorlist&#061;http:\/\/\u2026\u2026 \u00a0\u00a0 \u00a0\u589e\u52a0 baseurl&#061;http:\/\/vault.centos.org\/7.9.2009\/sclo\/$basearch\/rh\/ \u00a0\u00a0 \u00a0:wq<\/p>\n<p># yum install -y zabbix-web-mysql-scl zabbix-apache-conf-scl\u00a0\u00a0 \u00a0# \u5b89\u88c5web apache\u76f8\u5173\u4f9d\u8d56<\/p>\n<p># yum install -y mariadb-server\u00a0 \u00a0 \u00a0 \u00a0 \u00a0# \u5b89\u88c5mariadb\u670d\u52a1\u6570\u636e\u5e93<\/p>\n<p># systemctl enable &#8211;now mariadb\u00a0\u00a0 \u00a0# \u542f\u52a8\u6570\u636e\u5e93&#xff0c;\u5e76\u914d\u7f6e\u5f00\u673a\u81ea\u52a8\u542f\u52a8<\/p>\n<p># mysql_secure_installation\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0# mysql\u5b89\u5168\u5411\u5bfc&#xff0c;\u914d\u7f6eroot\u5bc6\u7801 \u00a0\u00a0 \u00a0\u56de\u8f66 \u00a0\u00a0 \u00a0y \u00a0\u00a0 \u00a0zabbix\u00a0 \u00a0 \u00a0 \u00a0 # \u521b\u5efaroot\u5bc6\u7801 \u00a0\u00a0 \u00a0zabbix\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0# \u786e\u8ba4root\u5bc6\u7801 \u00a0\u00a0 \u00a0y \u00a0\u00a0 \u00a0y \u00a0\u00a0 \u00a0y \u00a0\u00a0 \u00a0y<\/p>\n<p> # mysql -u root -p\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 # root\u767b\u5f55\u6570\u636e\u5e93 Enter password: zabbix\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0# \u8f93\u5165root\u5bc6\u7801<\/p>\n<p>MariaDB [(none)]&gt; create database zabbix character set utf8 collate utf8_bin;\u00a0 \u00a0 \u00a0 \u00a0 #\u00a0\u521b\u5efazabbix\u5e93\u91c7\u7528utf8\u7684\u7f16\u7801 MariaDB [(none)]&gt; create user zabbix&#064;localhost identified by &#039;zabbix&#039;;\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0#\u00a0\u521b\u5efazabbix\u7528\u6237&#xff0c;\u8bbe\u7f6e\u5bc6\u7801 MariaDB [(none)]&gt; grant all privileges on zabbix.* to zabbix&#064;localhost;\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 # \u6388\u6743zabbix\u7528\u6237\u8bbf\u95ee\u6743\u9650 MariaDB [(none)]&gt; flush privileges;\u00a0\u00a0 \u00a0# \u5237\u65b0 MariaDB [(none)]&gt; quit;\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0# \u9000\u51fa<\/p>\n<\/p>\n<p># cd \/usr\/share\/doc\/zabbix-server-mysql-5.0.46\/\u00a0 \u00a0 \u00a0 \u00a0 # \u8fdb\u5165\u76ee\u5f55<\/p>\n<p># zcat \/usr\/share\/doc\/zabbix-server-mysql-5.0.46\/create.sql.gz | mysql zabbix -uzabbix -pzabbix\u00a0 \u00a0 \u00a0 \u00a0 #\u00a0\u521d\u59cb\u5316\u5e76\u5bfc\u5165\u6570\u636e\u5e93<\/p>\n<p># vi \/etc\/zabbix\/zabbix_server.conf\u00a0 \u00a0 \u00a0 \u00a0 # \u4fee\u6539\u914d\u7f6e\u6587\u4ef6 \u00a0\u00a0 \u00a0 91 # DBHost&#061;localhost\u00a0\u00a0 \u00a0\u6539\u4e3a DBHost&#061;localhost \u00a0\u00a0 \u00a0124 # DBPassword&#061;\u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u6539\u4e3a DBPassword&#061;zabbix \u00a0\u00a0 \u00a0:wq<\/p>\n<p># vi \/etc\/opt\/rh\/rh-php72\/php-fpm.d\/zabbix.conf\u00a0 \u00a0 \u00a0 \u00a0 #\u00a0\u4fee\u6539\u914d\u7f6e\u6587\u4ef6 \u00a0\u00a0 \u00a0\u589e\u52a0php_value[date.timezone] &#061; Asia\/Shanghai \u00a0\u00a0 \u00a0:wq<\/p>\n<\/p>\n<p># systemctl restart zabbix-server zabbix-agent httpd rh-php72-php-fpm\u00a0 \u00a0 \u00a0 \u00a0 # \u91cd\u542f\u670d\u52a1<\/p>\n<p># systemctl enable zabbix-server zabbix-agent httpd rh-php72-php-fpm\u00a0 \u00a0 \u00a0 \u00a0 # \u8bbe\u7f6e\u5f00\u673a\u81ea\u542f<\/p>\n<\/p>\n<p>\u7f51\u9875\u6253\u5f00http:\/\/192.168.0.2\/zabbix 1&gt;Welcome to Zabbix 5.0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u9009Next step 2&gt;Check of pre-requisites\u00a0 \u00a0 \u00a0 \u00a0 \u9009Next step 3&gt;Configure DB connection \u00a0\u00a0 \u00a0Database type\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0MySQL\u00a0\u00a0 \u00a0\u00a0\u00a0# \u9ed8\u8ba4 \u00a0\u00a0 \u00a0Database host\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0localhost\u00a0\u00a0 \u00a0# \u9ed8\u8ba4 \u00a0\u00a0 \u00a0Database port\u00a0 \u00a0 \u00a0 \u00a0 \u00a00\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0# \u9ed8\u8ba4 \u00a0\u00a0 \u00a0Database name\u00a0 \u00a0 \u00a0 zabbix\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0# \u9ed8\u8ba4 \u00a0\u00a0 \u00a0User\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0zabbix\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0# \u9ed8\u8ba4 \u00a0\u00a0 \u00a0Password\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0zabbix\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u624b\u6572\u8f93\u5165 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u9009Next step 4&gt;Zabbix server details \u00a0\u00a0 \u00a0Host\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0localhost\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0# \u9ed8\u8ba4 \u00a0\u00a0 \u00a0Port\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a010051\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# \u9ed8\u8ba4 \u00a0\u00a0 \u00a0Name\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Zabbix Server\u00a0 \u00a0 \u00a0 \u624b\u6572\u8f93\u5165 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0 \u00a0\u9009Next step 5&gt;Pre-installation summary\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u9009Next step 6&gt;Install\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u9009Finish \u767b\u9646\u8d26\u6237&#xff1a;Admin \u767b\u9646\u5bc6\u7801&#xff1a;zabbix<\/p>\n<\/p>\n<p>\u8bbe\u7f6e\u4e2d\u6587 \u70b9\u51fb\u5de6\u4fa7\u83dc\u5355\u680f\u4e0b\u8fb9\u5c0f\u4eba\u56fe\u6807User settings \u2192 Language\u9009\u9879 \u2192 Chinese (zh_CN) \u2192 Update<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"918\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418132330-68025252540b6.png\" width=\"1918\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf18\u6b21\u3002rpm -Uvh https:\/\/mirrors.aliyun.com\/zabbix\/zabbix\/5.0\/rhel\/7\/x86_64\/zabbix-release-5.0-1.el7.noarch.rpm        # \u5b89\u88c5\u963f\u91cc\u4e91\u6e90\u3002# sed -i \\&#8217;s#http:\/\/repo.zabbix.com#https:\/\/mirrors.aliyun.com\/zabbix#\\&#8217; \/etc\/yum.repos.d\/zabbix.repo    # \u66ff\u6362\u6e90<\/p>\n","protected":false},"author":2,"featured_media":14751,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[331,59,433,937,230,935,936,43,44],"topic":[],"class_list":["post-14752","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-apache","tag-centos","tag-centos7-9","tag-mariadb","tag-php","tag-zabbix","tag-936","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010\u514d\u8d39\u3011Centos7mini+Zabbix5.0+agent+Apache+PHP\u642d\u5efa\u76d1\u63a7\u670d\u52a1\u5668(\u7eaf\u6587\u672c\u6587\u5b57\u7cbe\u7b80\u7248) \u65b0\u88c5\u7cfb\u7edf\u6309\u6b65\u64cd\u4f5c\u4e00\u6b21\u6210\u529f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\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.wsisp.com\/helps\/14752.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010\u514d\u8d39\u3011Centos7mini+Zabbix5.0+agent+Apache+PHP\u642d\u5efa\u76d1\u63a7\u670d\u52a1\u5668(\u7eaf\u6587\u672c\u6587\u5b57\u7cbe\u7b80\u7248) \u65b0\u88c5\u7cfb\u7edf\u6309\u6b65\u64cd\u4f5c\u4e00\u6b21\u6210\u529f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf18\u6b21\u3002rpm -Uvh https:\/\/mirrors.aliyun.com\/zabbix\/zabbix\/5.0\/rhel\/7\/x86_64\/zabbix-release-5.0-1.el7.noarch.rpm    # \u5b89\u88c5\u963f\u91cc\u4e91\u6e90\u3002# sed -i &#039;s#http:\/\/repo.zabbix.com#https:\/\/mirrors.aliyun.com\/zabbix#&#039; \/etc\/yum.repos.d\/zabbix.repo  # \u66ff\u6362\u6e90\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/14752.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T13:23:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418132330-68025252540b6.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/14752.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/14752.html\",\"name\":\"\u3010\u514d\u8d39\u3011Centos7mini+Zabbix5.0+agent+Apache+PHP\u642d\u5efa\u76d1\u63a7\u670d\u52a1\u5668(\u7eaf\u6587\u672c\u6587\u5b57\u7cbe\u7b80\u7248) \u65b0\u88c5\u7cfb\u7edf\u6309\u6b65\u64cd\u4f5c\u4e00\u6b21\u6210\u529f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T13:23:31+00:00\",\"dateModified\":\"2025-04-18T13:23:31+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/14752.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/14752.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/14752.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010\u514d\u8d39\u3011Centos7mini+Zabbix5.0+agent+Apache+PHP\u642d\u5efa\u76d1\u63a7\u670d\u52a1\u5668(\u7eaf\u6587\u672c\u6587\u5b57\u7cbe\u7b80\u7248) \u65b0\u88c5\u7cfb\u7edf\u6309\u6b65\u64cd\u4f5c\u4e00\u6b21\u6210\u529f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010\u514d\u8d39\u3011Centos7mini+Zabbix5.0+agent+Apache+PHP\u642d\u5efa\u76d1\u63a7\u670d\u52a1\u5668(\u7eaf\u6587\u672c\u6587\u5b57\u7cbe\u7b80\u7248) \u65b0\u88c5\u7cfb\u7edf\u6309\u6b65\u64cd\u4f5c\u4e00\u6b21\u6210\u529f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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.wsisp.com\/helps\/14752.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010\u514d\u8d39\u3011Centos7mini+Zabbix5.0+agent+Apache+PHP\u642d\u5efa\u76d1\u63a7\u670d\u52a1\u5668(\u7eaf\u6587\u672c\u6587\u5b57\u7cbe\u7b80\u7248) \u65b0\u88c5\u7cfb\u7edf\u6309\u6b65\u64cd\u4f5c\u4e00\u6b21\u6210\u529f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf18\u6b21\u3002rpm -Uvh https:\/\/mirrors.aliyun.com\/zabbix\/zabbix\/5.0\/rhel\/7\/x86_64\/zabbix-release-5.0-1.el7.noarch.rpm    # \u5b89\u88c5\u963f\u91cc\u4e91\u6e90\u3002# sed -i 's#http:\/\/repo.zabbix.com#https:\/\/mirrors.aliyun.com\/zabbix#' \/etc\/yum.repos.d\/zabbix.repo  # \u66ff\u6362\u6e90","og_url":"https:\/\/www.wsisp.com\/helps\/14752.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T13:23:31+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418132330-68025252540b6.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/14752.html","url":"https:\/\/www.wsisp.com\/helps\/14752.html","name":"\u3010\u514d\u8d39\u3011Centos7mini+Zabbix5.0+agent+Apache+PHP\u642d\u5efa\u76d1\u63a7\u670d\u52a1\u5668(\u7eaf\u6587\u672c\u6587\u5b57\u7cbe\u7b80\u7248) \u65b0\u88c5\u7cfb\u7edf\u6309\u6b65\u64cd\u4f5c\u4e00\u6b21\u6210\u529f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T13:23:31+00:00","dateModified":"2025-04-18T13:23:31+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/14752.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/14752.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/14752.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010\u514d\u8d39\u3011Centos7mini+Zabbix5.0+agent+Apache+PHP\u642d\u5efa\u76d1\u63a7\u670d\u52a1\u5668(\u7eaf\u6587\u672c\u6587\u5b57\u7cbe\u7b80\u7248) \u65b0\u88c5\u7cfb\u7edf\u6309\u6b65\u64cd\u4f5c\u4e00\u6b21\u6210\u529f"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/14752","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=14752"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/14752\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/14751"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=14752"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=14752"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=14752"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=14752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}