1. 程式人生 > >zabbix安裝

zabbix安裝

zabbix

一 zabbix安裝配置

http://www.zabbix.org/wiki/Main_Page

centos安裝參考:

http://www.zabbix.org/wiki/InstallOnCentOS_6.x_RHEL_6.x

useradd zabbix

su - zabbix

create database zabbix character set utf8;
grant all privileges on zabbix.* to [email protected] identified by ‘zabbix‘; 
mysql -uzabbix -p zabbix < /usr/share/zabbix-mysql/schema.sql
mysql -uzabbix -p zabbix < /usr/share/zabbix-mysql/images.sql
mysql -uzabbix -p zabbix < /usr/share/zabbix-mysql/data.sql
vi /etc/zabbix/zabbix_server.conf 
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
vi /etc/php.ini
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/Brussels
adjust selinux
semanage port -a -t http_port_t -p tcp 10051
service httpd restart
service zabbix-server start
service zabbix-agent start
yum install http://mirror.iprimus.com.au/epel/6/x86_64/epel-release-6-8.noarch.rpm

參考yum源:

epel.repo

[epel]

name=Extra Packages for Enterprise Linux 6 - $basearch

baseurl=http://mirrors.aliyun.com/epel/6/$basearch

http://mirrors.aliyuncs.com/epel/6/$basearch

failovermethod=priority

enabled=1

gpgcheck=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

[epel-debuginfo]

name=Extra Packages for Enterprise Linux 6 - $basearch - Debug

baseurl=http://mirrors.aliyun.com/epel/6/$basearch/debug

http://mirrors.aliyuncs.com/epel/6/$basearch/debug

failovermethod=priority

enabled=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

gpgcheck=0

[epel-source]

name=Extra Packages for Enterprise Linux 6 - $basearch - Source

baseurl=http://mirrors.aliyun.com/epel/6/SRPMS

http://mirrors.aliyuncs.com/epel/6/SRPMS

failovermethod=priority

enabled=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

gpgcheck=0


centos.repo

[base]

name=CentOS-$releasever - Base

failovermethod=priority

baseurl=http://mirrors.aliyun.com/centos/$releasever/os/$basearch/

http://mirrors.aliyuncs.com/centos/$releasever/os/$basearch/

gpgcheck=1

gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-6

http://mirrors.aliyuncs.com/centos/RPM-GPG-KEY-CentOS-6

#released updates

[updates]

name=CentOS-$releasever - Updates

failovermethod=priority

baseurl=http://mirrors.aliyun.com/centos/$releasever/updates/$basearch/

http://mirrors.aliyuncs.com/centos/$releasever/updates/$basearch/

gpgcheck=1

gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-6

http://mirrors.aliyuncs.com/centos/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful

[extras]

name=CentOS-$releasever - Extras

failovermethod=priority

baseurl=http://mirrors.aliyun.com/centos/$releasever/extras/$basearch/

http://mirrors.aliyuncs.com/centos/$releasever/extras/$basearch/

gpgcheck=1

gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-6

http://mirrors.aliyuncs.com/centos/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages

[centosplus]

name=CentOS-$releasever - Plus

failovermethod=priority

baseurl=http://mirrors.aliyun.com/centos/$releasever/centosplus/$basearch/

http://mirrors.aliyuncs.com/centos/$releasever/centosplus/$basearch/

gpgcheck=1

enabled=0

gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-6

http://mirrors.aliyuncs.com/centos/RPM-GPG-KEY-CentOS-6

#contrib - packages by Centos Users

[contrib]

name=CentOS-$releasever - Contrib

failovermethod=priority

baseurl=http://mirrors.aliyun.com/centos/$releasever/contrib/$basearch/

http://mirrors.aliyuncs.com/centos/$releasever/contrib/$basearch/

gpgcheck=1

enabled=0

gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-6

http://mirrors.aliyuncs.com/centos/RPM-GPG-KEY-CentOS-6


本文出自 “snowhill” 博客,請務必保留此出處http://snowhill.blog.51cto.com/339421/1946049

zabbix安裝