[root@linuxidc.cm ~]# cd /usr/src/zabbix-3.4.12
[root@linuxidc.cm zabbix-3.4.12]# ls
aclocal.m4 config.guess database Makefile README
AUTHORS config.log depcomp Makefile.am sass
bin config.status frontends Makefile.in src
build config.sub include man upgrades
ChangeLog configure INSTALL misc
compile configure.ac install-sh missing
conf COPYING m4 NEWS
[root@linuxidc.cm zabbix-3.4.12]# mkdir /usr/local/apache/htdocs/zabbix
[root@linuxidc.cm zabbix-3.4.12]# cp -a frontends/php/* /usr/local/apache/htdocs/zabbix/
[root@linuxidc.cm zabbix-3.4.12]# chown -R apache.apache /usr/local/apache/htdocs
//配置apache虚拟主机
[root@linuxidc.cm ~]# vi /etc/httpd24/httpd.conf
</VirtualHost>
<VirtualHost :80>
DocumentRoot "/usr/local/apache/htdocs/zabbix"
ServerName zabbix.ranwoaini.com
ProxyRequests Off
ProxyPassMatch ^/(..php)$ fcgi://127.0.0.1:9000/usr/local/apache/htdocs/zabbix/$1
<Directory "/usr/local/apache/htdocs/zabbix">
Options none
AllowOverride none
Require all granted
</Directory>
</VirtualHost>
//设置zabbix/conf目录的权限,让zabbix有权限生成配置文件zabbix.conf.php
[root@linuxidc.cm ~]# chmod 777 /usr/local/apache/htdocs/zabbix/conf
[root@linuxidc.cm ~]# ll -d /usr/local/apache/htdocs/zabbix/conf
drwxrwxrwx. 2 apache apache 81 Jul 30 19:41 /usr/local/apache/htdocs/zabbix/conf
//重启apache
[root@linuxidc.cm ~]# apachectl stop
[root@linuxidc.cm ~]# apachectl start
//添加域名映射
192.168.56.12 zabbix.ranwoaini.com
//关闭防火墙,使用域名访问
[root@linuxidc.cm ~]# systemctl stop firewalld
[root@linuxidc.cm ~]# setenforce 0
默认登录用户Admin,登录密码zabbix
更多Zabbix相关教程集合:
在Ubuntu 16.04服务器上安装Zabbix 3.2 https://www.linuxidc.com/Linux/2017-07/145519.htm
CentOS 7 LNMP环境搭建Zabbix3.0 https://www.linuxidc.com/Linux/2017-02/140134.htm
Ubuntu 16.04安装部署监控系统Zabbix2.4 https://www.linuxidc.com/Linux/2017-03/141436.htm
Zabbix监控安装部署及警报配置 https://www.linuxidc.com/Linux/2017-03/141611.htm
Zabbix触发器表达式详解 https://www.linuxidc.com/Linux/2017-03/141921.htm
Ubuntu 16.04下安装部署Zabbix3.0 https://www.linuxidc.com/Linux/2017-02/140395.htm
CentOS 7 下 Zabbix 3.0安装详解 https://www.linuxidc.com/Linux/2017-03/141716.htm
Zabbix 3.2.6 通过Orabbix监控Oracle数据库 https://www.linuxidc.com/Linux/2017-10/147224.htm
Zabbix3.4添加Web监测功能 https://www.linuxidc.com/Linux/2018-06/152769.htm
Zabbix告警发送邮件时附带性能图 https://www.linuxidc.com/Linux/2018-05/152194.htm
Zabbix3.0编译升级过程记录 https://www.linuxidc.com/Linux/2018-05/152193.htm
Debian 9.2安装Zabbix 3.4.2 https://www.linuxidc.com/Linux/2018-03/151338.htm