标签:zabbix server agent php httpd mysql
# rpm -ivh http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/zabbix-release-X.X-X.elX.noarch.rpm
(Example: rpm -ivh http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/zabbix-release-2.2-1.el6.noarch.rpm)
# yum install zabbix-server-mysql zabbix-web-mysql
# yum install zabbix-agent
在MYSQL上创建数据库和用户
# mysql -uroot
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by ‘zabbix‘;
mysql> exit
导入初始数据库
# cd /usr/share/doc/zabbix-server-mysql-2.2.0/create
# mysql -uroot zabbix < schema.sql
# mysql -uroot zabbix < images.sql
# mysql -uroot zabbix < data.sql
在zabbix_server.conf编辑数据库设置
# vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
启动zabbix服务器
# service zabbix-server start
# vi /etc/httpd/conf.d/zabbix.conf
php_value max_execution_time 300
php_value memory_limit 128M
php_value post_max_size 16M
php_value upload_max_filesize 2M
php_value max_input_time 300
# php_value date.timezone Europe/Riga
设置php的时区与系统一样
# vi /etc/php.ini
date.timezone = Asia/Shanghai
service httpd start
service zabbix-agent start
service zabbix-server start
service mysqld start
关掉防火墙或服务器开放10050端口
http://zabbixserverip:zabbix 一步一步设置,默认管理用户名:Admin 密码:zabbix
博主个人网站 www.davis-wiki.com
本文出自 “永远的C” 博客,请务必保留此出处http://4011746.blog.51cto.com/4001746/1676759
标签:zabbix server agent php httpd mysql
原文地址:http://4011746.blog.51cto.com/4001746/1676759