[Config]Zabbix的Mongodb插件安装,centos

本文涉及的产品
云数据库 MongoDB,独享型 2核8GB
推荐场景:
构建全方位客户视图
简介: 1.yum install php-devel php-pear httpd-devel 2.安装mongo php驱动,pecl install mongo 3.pecl install mongo 4.
1.yum install php-devel php-pear httpd-devel
2.安装mongo php驱动, pecl   install mongo
3.pecl install mongo
4. 创建/etc/php.d/mongo.ini 写入一下内容
echo  extension=mongo.so  >>/etc/php.d/mongo.ini
 
5.验证成功安装php驱动
 localhost:27017: [Errno  13] Permission denied
解释如下:
The default Apache settings on these systems do not let requests make network
connections, meaning that the driver will get "Permission denied" errors when it tries to
connect to the database. If you run into this, try running:
解决方法如下:
$ /usr/sbin/setsebool -P httpd_can_network_connect 1
Then restart Apache. (This issue has also occurred with SELinux.)
 
 
7.导入下载的文件
  • Configuration >> Templates
  • Click on the "Import Template" button on the top right-hand corner
  • In the "Import file" dialog box, browse/search/enter the filename of the Zabbix template that was downloaded
  • Upload the template

8.配置mongodb服务器
      Configuration >> hosts
     createhosts
     在templates上的linked templates选择添加,选择 Template_MongoDB
     在Macors上,配置以下信息
     
  • {$MONGODB_HOSTNAME} = Hostname or IP address of mongod or mongos process
  • {$MONGODB_PORT} = Port number for mongod or mongos process(27017)
  • {$MONGODB_ZABBIX_NAME} = The hostname for the MongoDB server/instance as defined in Zabbix
     保存
参考:
相关实践学习
MongoDB数据库入门
MongoDB数据库入门实验。
快速掌握 MongoDB 数据库
本课程主要讲解MongoDB数据库的基本知识,包括MongoDB数据库的安装、配置、服务的启动、数据的CRUD操作函数使用、MongoDB索引的使用(唯一索引、地理索引、过期索引、全文索引等)、MapReduce操作实现、用户管理、Java对MongoDB的操作支持(基于2.x驱动与3.x驱动的完全讲解)。 通过学习此课程,读者将具备MongoDB数据库的开发能力,并且能够使用MongoDB进行项目开发。   相关的阿里云产品:云数据库 MongoDB版 云数据库MongoDB版支持ReplicaSet和Sharding两种部署架构,具备安全审计,时间点备份等多项企业能力。在互联网、物联网、游戏、金融等领域被广泛采用。 云数据库MongoDB版(ApsaraDB for MongoDB)完全兼容MongoDB协议,基于飞天分布式系统和高可靠存储引擎,提供多节点高可用架构、弹性扩容、容灾、备份回滚、性能优化等解决方案。 产品详情: https://www.aliyun.com/product/mongodb
目录
相关文章
|
6月前
|
存储 安全 Java
在CentOS 7上安装和配置Elasticsearch的方法
在CentOS 7上安装和配置Elasticsearch的方法
400 0
|
8月前
|
安全 关系型数据库 MySQL
CentOS 8 中安装与配置 MySQL
CentOS 8 中安装与配置 MySQL
620 3
|
SQL 关系型数据库 MySQL
Mysql的安装与配置(Centos7)
Mysql的安装与配置(Centos7)
164 1
Mysql的安装与配置(Centos7)
|
SQL 监控 关系型数据库
centos7上部署zabbix4.0版本--最新配置(二)
1.zabbix4.0监控系统部署 zabbix4.0软件分为:zabbix-server-mysql zabbix-web-mysql 这里虽然是-mysql但是不是安装的数据库哟,而是这个zabbix将来使用什么版本的数据库,可以是postgresql也可以是mysql 预先配置
324 0
centos7上部署zabbix4.0版本--最新配置(二)
|
存储 JSON NoSQL
Centos 7.5安装配置MongoDB 4.0.5
Centos 7.5安装配置MongoDB 4.0.5
321 0
Centos 7.5安装配置MongoDB 4.0.5
|
MySQL 关系型数据库 Linux
centos mysql 安装及配置
安装Mysql   1 Centos 6.6下安装Mysql很简单, yum list mysql-server 2 当只有一个时候就可以直接 yum install mysql-server 进行安装 3 过...
816 0
|
关系型数据库 MySQL Shell
CentOS7下安装MySQL5.7安装与配置(YUM)
CentOS7下安装MySQL5.7安装与配置(YUM) 安装环境:CentOS7 64位 MINI版,安装MySQL5.7 1、配置YUM源 在MySQL官网中下载YUM源rpm安装包:http://dev.
1085 0
|
NoSQL MongoDB 数据安全/隐私保护
Centos6.5安装使用mongoDB
在Centos6.5下安装mongodb,可以选择从官网下载安装,这里使用yum安装。 在/etc/yum.repos.d/中添加文件,如10gen.repo: image.png 内容为: image.png 接下来使用yum update进行更新。
1081 0