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 zabbix@localhost 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(网上过程有坑先下班等有空再整理)
原文地址:http://blog.51cto.com/viphyy/2105920