一、快速配置安装zabbix3.2
1、本地zabbix源,
本地zabbix源配置
添加zabbix本地yum源,包下载地址http://www.zabbix.com/
```shell
#cat > /etc/yum.repos.d/zabbix3.2.repo << EOF
[zabbix3.2]
name=zabbix3.2
baseurl=file:///root/zabbix3.2
gpgcheck=0
enabled=1
EOF
```
2、添加php56remi源remi-release-6.rpm
下载地址:https://mirrors.tuna.tsinghua.edu.cn/remi/
#rpm -ivh remi-release-6.rpm
注意:第一次安装可能会报错:如下错误
[root@byqtest yum.repos.d]# rpm -ivh remi-release-6.rpm
warning: remi-release-6.rpm: Header V4 DSA/SHA1 Signature, key ID 00f97f56: NOKEY
error: Failed dependencies:
epel-release = 6 is needed by remi-release-6.9-1.el6.remi.noarch
解决办法:
Centos 6.x
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -ivh epel-release-6-8.noarch.rpm
rpm -ivh remi-release-6.rpm
安装后编辑remi.repo
vim /etc/yum.repos.d/remi.repo
修改 enabled=1
这里使用sed 一步到位:sed -i 's/^enabled=0/enabled=1/g' /etc/yum.repos.d/remi.repo
删除redhat原有的yum
rpm -aq|grep yum|xargs rpm -e --nodeps
下载yum安装文件
注意,如果下载时找不到文件,就登录到:http://mirrors.163.com/centos/6/os/x86_64/
上查找相应的文件。然后再下载。
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.27-14.el6.centos.noarch.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-40.el6.noarch.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-ini parse-0.3.1-2.1.el6.noarch.rpm
yum clean All
yum makecache
yum install vim #testing
yum list mysql mysql-server
yum install mysql mysql-server
service mysqld start/stop/restart
mysqladmin -u root password 'new-password'
3、安装zabbix相关软件
#yum -y install zabbix-agent zabbix-get zabbix-java-gateway zabbix-sender zabbix-server-mysql zabbix-web zabbix-web-mysql
4、安装apache、php
#yum -y install gd httpd
#yum -y install php56-php php56-php-gd php56-php-bcmath php56-php-mbstring php56-php-xml php56-php-gd php56-php-pdo php56-php-mysqlnd php56-php-cli php56-php-ldap