iis服务器助手广告广告
返回顶部
首页 > 资讯 > 数据库 >zabbix 监控服务系列之--------NO1yum安装篇
  • 597
分享到

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

2024-04-02 19:04:59 597人浏览 独家记忆
摘要

 yum安装,一切为了方便Red Hat Enterprise linux / CentosInstall the repository configuration package. This p


 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 < p_w_picpaths.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)无法使用,请使用源码包安装、

您可能感兴趣的文档:

--结束END--

本文标题: zabbix 监控服务系列之--------NO1yum安装篇

本文链接: https://www.lsjlt.com/news/42776.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作