引用
https://www.zabbix.com/documentation/3.0/manual/installation/install_from_packages http://www.zabbix.net.cn/viewtopic.php?f=13&t=1096&sid=c7083137d85cde63fad7c2430cfdee08
|
|
Zabbix 3.0 for Ubuntu 14.04 LTS:
|
|
Installing Zabbix packages 安装zabbix包
Example for Zabbix server and web frontend with mysql database.
安装zabbix的php前端和mysql服务器,中间会提示配置mysql的用户信息,本文以 root:root
为例
|
|
Example for installing Zabbix agent only. 安装zabbix客户端(本地也作为一个客户端)
|
|
Creating initial database
Create zabbix database and user on MySQL. For instructions on doing that, see database creation scripts for MySQL. 在mysql里创建一个zabbix的数据库
|
|
Then import initial schema and data. 创建表结构
|
|
Edit database configuration in zabbix_server.conf
配置数据库信息
|
|
|
|
启动服务器
|
|
Editing PHP configuration for Zabbix frontend
Apache configuration file for Zabbix frontend is located in /etc/apache2/conf.d/zabbix
or /etc/apache2/conf-enabled/zabbix.conf
. Some PHP settings are already configured.
配置zabbix专用的配置文件里php部分,修改时区
|
|
最后一行,去掉#号,时区改成 Asia/Shanghai
|
|
然后浏览器登录:
|
|
数据库帐号是root,密码是你设置的密码:root 一路安装。。。web登录帐号是Admin/zabbix,基本ok!
汉化
|
|
把zh_CN后面参数写true
|
|
在文件中增加语言和编码的设置:
|
|
重新设置本地配置:
|
|
|
|
用包里的文件替换里面的文件 安装字体
|
|
把解压缩出来的msyh.ttf放到/usr/share/zabbix/fonts目录下面 然后修改/usr/share/zabbix/include/defines.inc.php 找到
|
|
修改成:
|
|
|
|
一些提示 tips
重新启动zabbix-server服务进程
|
|
重启apache进程
|
|