更多 IT 认证资源请访问 美河学习在线 www.eimhe.com
This document contains information that is proprietary and confidential to Baozun, Inc. or its technical alliance
partners, which shall not be disclosed outside or duplicated, used, or disclosed in whole or in part for any purpose.
Any use or disclosure in whole or in part of this information without the express written permission of Baozun, Inc.
is prohibited.
© 2014 Baozun, Inc..All rights reserved.
zabbix 监控系统安装说明文档 ............................................................................................................. 1
1. Part1.Zabbix 简介 ........................................................................................................................... 4
a) Zabbix 简介 ............................................................................................................................ 4
b) Zabbix 功能 ............................................................................................................................ 4
c) 优劣势 ..................................................................................................................................... 4
2. Part2. LNMP 环境安装部署 .......................................................................................................... 5
a) 服务端环境准备 ..................................................................................................................... 5
安装 java 环境 ............................................................................................................................... 5
b) 安装 nginx............................................................................................................................... 6
1、编译安装 zlib .................................................................................................................... 6
2、编译安装 OpenSSL .......................................................................................................... 6
3、安装 pcre(nginx 正则表达式支持) ............................................................................. 6
4、下载 ngx_cache_purge 缓存管理模块 ............................................................................. 6
5、下载 nginx_concat_module 合并请求模块 ..................................................................... 6
6、创建 nginx 用户及用户组,并创建 nginx 工作目录 ..................................................... 6
7、下载并安装 nginx ............................................................................................................. 7
8、nginx 配置 ......................................................................................................................... 7
c) 部署 mysql .............................................................................................................................. 8
1、安装 cmake ....................................................................................................................... 8
2、安装 mysql 源码包 ........................................................................................................... 8
3、建立一个用于启动 mysql 的用户 ................................................................................... 8
4、建立数据目录,并且初始化数据文件 ........................................................................... 8
5、修改配置文件 my.cnf ....................................................................................................... 8
6、启动 mysql 服务 ............................................................................................................... 9
7、新安装数据库需要给 root 用户添加密码,注意密码尽量复杂点 .................................. 9
8、创建 zabbix 数据库 .......................................................................................................... 9
d) 部署 php ................................................................................................................................ 10
1、php 编译的时候需要用到的一些子功能,都是来源其他软件的库或者头文件。 .. 10
2、编译安装 mhash ............................................................................................................. 10
3、编译安装 libmcrypt ........................................................................................................ 10
4、编译安装 mcrypt ............................................................................................................ 10
5、安装 jpeg ......................................................................................................................... 10
6、安装 libpng ..................................................................................................................... 11
7、安装 freetype ................................................................................................................... 11
8、安装 curl ......................................................................................................................... 12
9、安装 libxml2 ................................................................................................................... 12
10、安装 gd2 ........................................................................................................................ 12
11、编译 php ........................................................................................................................ 12
12、重新编译 php 的 gettext 库 .......................................................................................... 13
13、重新编译 php 的 gd 库 ................................................................................................. 13
14、配置 php ........................................................................................................................ 13
15、配置 php-fpm ................................................................................................................ 14
e) 测试 nginx 能够支持 php ..................................................................................................... 14
3. Part3.安装配置监控主程序—zabbix2.2.6(server 端) ............................................................ 15
a) 编译安装 zabbix 主程序 ...................................................................................................... 15
b) 配置文件及 web 前端文件修改 .......................................................................................... 15
评论