文章出处借鉴于 http://www.cnblogs.com/-10086/p/5317524.html
1.下载deb
# wget http://repo.zabbix.com/zabbix/3.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.0-1+trusty_all.deb
# dpkg -i zabbix-release_3.0-1+trusty_all.deb
# apt-get update
2.安装lamp环境,以及zabbix
# sudo apt-get install zabbix-server-mysql php5-mysql zabbix-frontend-php
2.1配置zabbix——server.conf
# vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
2.2设置msyql
mysql>create database zabbix character set utf8 collate utf8_bin;
mysql>grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';
mysql> flush privileges;
cd /usr/share/doc/zabbix-server-mysql
zcat create.sql.gz | mysql -u root -p zabbix
sudo cp -r /usr/share/zabbix /var/www/html/zabbix
/etc/init.d/zabbix-server restart
2.3修改web端配置
2.3.1配置PHP参数
sudo vim /etc/php5/apache2/php.ini修改项:
post_max_size = 16M
max_execution_time = 300
max_input_time = 300
date.timezone = "Asia/Shanghai"
修改完成后重启apache2
/etc/init.d/apache2 restart
2.3.2网页端配置
直接按照网页端配置执行。
地址:
http://ip/zabbix
用户名密码:
Admin/zabbix
web页面文字乱码汉化
汉化包
cd /usr/share/fonts/truetype/dejavu
将楷体 传进当前目录
删除之前字体
# rm DejaVuSans.ttf
#mv SIMKAI.TFF DejaVuSans.ttf
启动zabbix服务
/etc/init.d/zabbix-server restart