系统相关
首页 > 系统相关> > [Zabbix]监控Apache2.4.6 (CentOS)

[Zabbix]监控Apache2.4.6 (CentOS)

作者:互联网

1.查看Apache版本

[root@worker1 ~]# httpd -v
Server version: Apache/2.4.6 (CentOS)
Server built:   Apr  2 2020 13:13:23

2.开启server-status

cat >> /etc/httpd/conf/httpd.conf <<'EOF'
<Location "/server-status">
    SetHandler server-status
    Allow from 10.1.30.0/24 #添加你允许访问的网段
</Location>

3.重启服务

systemctl restart httpd

4.成功状态

http://<httpd服务器ip>/server-status

END

标签:status,httpd,CentOS,server,Zabbix,conf,Apache,Server,Apache2.4
来源: https://www.cnblogs.com/leoshi/p/13563271.html