Ubuntu14.04安装zabbix

一、安装基础环境LAMP

apt-get install apache2

apt-get install mysql-server
apt-get install mysql-client
apt-get install php5-mysql

apt-get install php5
apt-get install libapache2-mod-php5

apt-get install php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl

apt-get install phpmyadmin

 

二、建数据库:

shell> 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 ‘helian’;
mysql> quit;

 

三、安装zabbix server、proxy、agent

wget http://repo.zabbix.com/zabbix/3.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.4-1+trusty_all.deb
dpkg -i zabbix-release_3.4-1+trusty_all.deb
apt update
apt install zabbix-server-mysql
apt install zabbix-proxy-mysql
apt install zabbix-frontend-php

zcat /usr/share/doc/zabbix-server-mysql/create.sql.gz | mysql -uzabbix -p zabbix
zcat /usr/share/doc/zabbix-proxy-mysql/schema.sql.gz | mysql -uzabbix -p zabbix

# vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=<password>

service zabbix-server start
update-rc.d zabbix-server enable

service apache2 restart

apt install zabbix-agent
service zabbix-agent start

发表评论

电子邮件地址不会被公开。 必填项已用*标注