CentOS 6.5 + LAMP ��װZabbix 3.0
�رգ�iptables&Selinux����
#iptables -F
#iptables -nv -L
�鿴SELinux״̬��
/usr/sbin/sestatus -v ##���SELinux status����Ϊenabled��Ϊ����״̬
SELinux status: enabled
#getenforce ##Ҳ���������������
#setenforce 0 ##����SELinux ��Ϊpermissiveģʽ
��Selinux���ã�������Ч��
#vim /etc/selinux/config
��SELINUX=enforcing��ΪSELINUX=disabled
#################################LAMP##################################################
Linux�汾��
CentOS 6.5 X86_64
Apache�汾��
Server version: Apache/2.2.15 (Unix)
Server built: May 11 2016 19:28:33
MySQL�汾��
mysql Ver 14.14 Distrib 5.1.73, for redhat-linux-gnu (x86_64) using readline 5.1
PHP�汾��( zabbix_3.0 Ҫ��php�汾������5.4���� )
PHP 5.4.45 (cli) (built: Oct 16 2015 11:24:58)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
1.��װLAMP
��װPHP5.4
rpm -Uvh http://repo.webtatic.com/yum/el6/latest.rpm
# yum install httpd httpd-devel
# yum install mysql mysql-server
# yum install php54w php54w-cli php54w-common php54w-devel php54w-pear php54w-gd php54w-mbstring php54w-mysql php54w-xml php54w-bcmath
����web&mysql����
# service httpd start
# service mysqld start
#############################Zabbix 3.0��װ#######################################################
CentOS/RHEL 6:
wget http://repo.zabbix.com/zabbix/3.0/rhel/6/x86_64/zabbix-release-3.0-1.el6.noarch.rpm
�����£�
# rpm -Uvh 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 zabbix-java-gateway
��¼��ݿ⣬�����ʺź�����Ȩ�ޣ�
mysql> use mysql;
mysql>create database zabbix character set utf8;
mysql> GRANT ALL PRIVILEGES on zabbix.* to zabbix@localhost IDENTIFIED BY '����';
mysql> FLUSH PRIVILEGES;
mysql> quit
����Zabbix��ݿ�ģ�壺
# cd /usr/share/doc/zabbix-server-mysql-3.0.0
# zcat create.sql.gz | mysql -uroot zabbix
��Zabbix�����ļ�����ݿ��Ӧ����
# vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=����
����Zabbix�����̣�
#server zabbix-server start
#ss -tnl
[root@zabbix ~]# ss -tnl | grep :10051
LISTEN 0 128 :::10051 :::*
LISTEN 0 128 *:10051 *:*
��php.ini����
#vim /etc/php.ini
max_execution_time 300 (Ĭ��Ϊ30)
memory_limit 128M
post_max_size 16M
upload_max_filesize 2M
max_input_time 300 (Ĭ��Ϊ60)
always_populate_raw_post_data -1
date.timezone = RPC (Ĭ��Ϊ��)
����httpd��������Zabbix-web����
#service httpd restart
http://zabbix-web-hostIP/zabbix
############################################��ѡ����#############################################################
����zabbix�û�����
#groupadd zabbix
#useradd -g zabbix -m zabbix
���ij��� ������д�� ���ͣ�����ر����˳���http://shadowhk.blog.51cto.com/2903709/1812246