zabbix 监控服务系列之--------NO1yum安装篇

本文涉及的产品
云数据库 RDS MySQL Serverless,0.5-2RCU 50GB
云数据库 RDS MySQL Serverless,价值2615元额度,1个月
简介:

 yum安装,一切为了方便

Red Hat Enterprise Linux / CentOS

Install the repository configuration package. This package contains yum configuration files.


Zabbix 2.2 for RHEL5, Oracle Linux 5, CentOS 5:

yum 源的安装

# rpm -ivh http://repo.zabbix.com/zabbix/2.2/rhel/5/x86_64/zabbix-release-2.2-1.el5.noarch.rpm

Zabbix 2.2 for RHEL6, Oracle Linux 6, CentOS 6:x86_64


# rpm -ivh http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/zabbix-release-2.2-1.el6.noarch.rpm


Zabbix 2.2 for RHEL6, Oracle Linux 6, CentOS 6:i386


http://repo.zabbix.com/zabbix/2.2/rhel/6/i386/zabbix-release-2.2-1.el6.noarch.rpm

Installing Zabbix packages


Install Zabbix packages. Example for Zabbix server and web frontend with mysql database.


Zabbix

# yum install zabbix-server-mysql zabbix-web-mysql

# yum install zabbix-agent

Database

Create zabbix database and user on MySQL.


# mysql -uroot

mysql> create database zabbix character set utf8 collate utf8_bin;

mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';

mysql> exit

Import initial schema and data.


# cd /usr/share/doc/zabbix-server-mysql-2.2.0/create

# mysql -uroot zabbix < schema.sql

# mysql -uroot zabbix < images.sql

# mysql -uroot zabbix < data.sql

Starting Zabbix server process


Edit database configuration in zabbix_server.conf


# vi /etc/zabbix/zabbix_server.conf

DBHost=localhost

DBName=zabbix

DBUser=zabbix

DBPassword=zabbix

Start Zabbix server process.


# service zabbix-server start


Editing PHP configuration for Zabbix frontend


Apache configuration file for Zabbix frontend is located in /etc/httpd/conf.d/zabbix.conf. Some PHP settings are already configured.


php_value max_execution_time 300

php_value memory_limit 128M

php_value post_max_size 16M

php_value upload_max_filesize 2M

php_value max_input_time 300

# php_value date.timezone Europe/Riga

It's necessary to uncomment the “date.timezone” setting and set the right timezone for you. After changing the configuration file restart the apache web server.


# service httpd restart

Zabbix frontend is available at http://zabbix-frontend-hostname/zabbix in the browser. Default username/password is Admin/zabbix 注意大小写



假如出现一些插件如(zabbix_sender,zabbix_get)无法使用,请使用源码包安装、






      本文转自crazy_charles 51CTO博客,原文链接:http://blog.51cto.com/douya/1427389,如需转载请自行联系原作者



相关实践学习
基于CentOS快速搭建LAMP环境
本教程介绍如何搭建LAMP环境,其中LAMP分别代表Linux、Apache、MySQL和PHP。
全面了解阿里云能为你做什么
阿里云在全球各地部署高效节能的绿色数据中心,利用清洁计算为万物互联的新世界提供源源不断的能源动力,目前开服的区域包括中国(华北、华东、华南、香港)、新加坡、美国(美东、美西)、欧洲、中东、澳大利亚、日本。目前阿里云的产品涵盖弹性计算、数据库、存储与CDN、分析与搜索、云通信、网络、管理与监控、应用服务、互联网中间件、移动服务、视频服务等。通过本课程,来了解阿里云能够为你的业务带来哪些帮助 &nbsp; &nbsp; 相关的阿里云产品:云服务器ECS 云服务器 ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。产品详情: https://www.aliyun.com/product/ecs
相关文章
|
13天前
|
缓存
yum 如何设置可以将安装的rpm包都缓存下来
【4月更文挑战第17天】yum 如何设置可以将安装的rpm包都缓存下来
38 0
|
29天前
|
Linux C语言
linux yum安装ffmpeg 图文详解
linux yum安装ffmpeg 图文详解
46 0
|
29天前
|
Linux
linux yum 安装rar和unrar
linux yum 安装rar和unrar
76 0
|
1月前
|
关系型数据库 MySQL PHP
LAMP YUM安装配置实战
LAMP YUM安装配置实战
35 3
|
29天前
|
关系型数据库 MySQL Linux
CentOS 7.4下使用yum安装MySQL5.6
CentOS 7.4下使用yum安装MySQL5.6
74 0
|
9天前
|
弹性计算 关系型数据库 MySQL
安装LAMP 环境(yum 版本)
【4月更文挑战第29天】
7 0
|
10天前
|
弹性计算 关系型数据库 Shell
安装 LAMP 环境(yum 版本)
【4月更文挑战第29天】
24 5
|
15天前
|
Linux
centos 6.5安装yum
centos 6.5安装yum
48 0
|
17天前
|
存储 Linux 网络安全
centos7使用yum网络安装
这些是使用Yum进行网络安装的基本步骤。根据你的需求,你可以重复步骤3和4来安装其他软件包。请注意,执行Yum操作需要root或具有sudo权限的用户。
44 1
|
20天前
|
应用服务中间件 nginx
yum 安装报错 No package nginx available Error:Nothing to do
yum 安装报错 No package nginx available Error:Nothing to do
40 1