Zabbix 出错,求解答,急急急。。。
下面我把安装的每个步骤都描述下方面问题跟踪:1.下载zabbix的yum安装源
rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/6/x86_64/zabbix-release-3.0-1.el6.noarch.rpm
yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent httpd php -y
上面把数据库mysql 还有zabbix-server都安装好了已验证没问题。
2.启动Mysql
service mysqld start;
chkconfig mysqld on;
service httpd start;
chkconfig httpd on
service zabbix-server start;(or :zabbix_server -c /etc/zabbix/zabbix-server.conf)
chkconfig zabbix-serveron
service zabbix-agentd start; (or :zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf)
chkconfig zabbix_agentdon
3.导入数据
cd database\mysql
mysql -u root ;
> create database zabbix default charset utf8;
> grant all on zabbix.* to zabbix@localhost identified by 'zabbix';
>flush privileges;
>exit
# mysql -uzabbix -p zabbix < schema.sql# mysql -uzabbix -p zabbix < images.sql# mysql -uzabbix -p zabbix < data.sql
4.禁用防火墙和setlinux
service iptables stop
编辑vim /etc/selinux/config配置文件SELINUX 属性为:disabled
SELINUX=disabled
5.修改配置文件
修改/etc/httpd/conf/httpd.conf
DirectoryIndex index.html index.html.var index.php
# vi /etc/php.ini 找到如下几项,改成下面的值,前面有;号的要删掉
max_execution_time = 300
max_input_time = 300
date.timezone = PRC
post_max_size = 32M
修改/usr/local/zabbix/etc/zabbix_server.conf参数:
DBName=zabbix
DBUser=root
DBPassword=zabbix
6.重启httpd和zabbix_server、zabbix_agent
service httpd restart
service zabbix_server restart
service zabbix_agentrestart
ps -ef | grep -i zabbix
到这里都没问题,然后再浏览器中http://ip 是可以看到apache主页的,这说明httpd没问题。
但是http://ip/zabbix 访问不了;到底怎么回事了
/etc/httpd/conf/httpd.conf文件里指定的目录是哪里?默认是如下目录
DocumentRoot "/var/www/html"
zabbix web部署
mkdir /var/www/html/zabbix创建apache下zabbix目录
cp –a /home/zabbix/downloads/zabbix-3.0.1/frontends/php/* /var/www/html/zabbix/
拷贝zabbix包中的web界面到apache zabbix目录下 是因为你的php没安装和配置,我也配到类似的问题过 spritluo 发表于 2016-7-25 15:12
是因为你的php没安装和配置,我也配到类似的问题过
你现在处理好了吗,我的处理好了。对了,记得一定要关闭防火墙。systemctl stop firewalld.service(service stop iptables) systemctl disable firewalld.service
页:
[1]