ubuntu16.04 安装zabbix3.4(网上过程有坑先下班等有空再整理)
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu16.04 安装zabbix3.4(网上过程有坑先下班等有空再整理)相关的知识,希望对你有一定的参考价值。
部署Zabbix需要LAMP环境(Linux、Apache、mysql、php),所以首先要安装Apache、MySQL和PHP。在Ubuntu 16.04下只有php7.0而没有php5
sudo apt-get install apache2 sudo apt-get install mysql-serversudo apt-get install php7.0 php7.0-gd libapache2-mod-php7.0 php7.0-mysql php7.0-bcmath php7.0-mbstring php7.0-xml
sudo /etc/init.d/apache2 restart
# wget http://repo.zabbix.com/zabbix/3.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.4-1+xenial_all.deb
# dpkg -i zabbix-release_3.4-1+xenial_all.deb
# apt update
# apt install zabbix-server-mysql zabbix-frontend-php zabbix-agent
# mysql -uroot -p
password
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to [email protected] identified by 'password';
mysql> quit;
# zcat /usr/share/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
之后还要修改zabbix_server.conf文件
完成以上配置后,重启zabbix-server
# systemctl restart zabbix-server zabbix-agent apache2
# systemctl enable zabbix-server zabbix-agent apache2
# 下载安装>sudo apt-get install zabbix-frontend-php
# 拷贝zabbix到apache2的前端文件夹里sudo cp -r /usr/share/zabbix /var/www/html/zabbix
以上是关于ubuntu16.04 安装zabbix3.4(网上过程有坑先下班等有空再整理)的主要内容,如果未能解决你的问题,请参考以下文章
Ubuntu16.04和Centos7 Yum部署zabbix3.4 结合钉钉智能报警
Ubuntu14.04server + LNMP + Zabbix3.4安装教程