惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
CERT Recently Published Vulnerability Notes
G
Google Developers Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
宝玉的分享
宝玉的分享
Microsoft Security Blog
Microsoft Security Blog
Jina AI
Jina AI
L
LangChain Blog
博客园_首页
有赞技术团队
有赞技术团队
The Register - Security
The Register - Security
GbyAI
GbyAI
Blog — PlanetScale
Blog — PlanetScale
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
J
Java Code Geeks
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Security Archives - TechRepublic
Security Archives - TechRepublic
量子位
雷峰网
雷峰网
Security Latest
Security Latest
博客园 - 【当耐特】
V2EX - 技术
V2EX - 技术
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 聂微东
IT之家
IT之家
爱范儿
爱范儿
S
Schneier on Security
N
News | PayPal Newsroom
H
Help Net Security
Recent Announcements
Recent Announcements
Martin Fowler
Martin Fowler
N
News and Events Feed by Topic
C
Cyber Attacks, Cyber Crime and Cyber Security
U
Unit 42
博客园 - 司徒正美
Forbes - Security
Forbes - Security
P
Proofpoint News Feed
W
WeLiveSecurity
Cisco Talos Blog
Cisco Talos Blog
小众软件
小众软件
The Cloudflare Blog
AWS News Blog
AWS News Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
P
Palo Alto Networks Blog
Google DeepMind News
Google DeepMind News
H
Heimdal Security Blog
V
Vulnerabilities – Threatpost
Microsoft Azure Blog
Microsoft Azure Blog
T
Tailwind CSS Blog
G
GRAHAM CLULEY

博客园 - forrestsun

问题整理 weedfs getsockopt: connection timed out 利用cubieboard设置samba打印服务器 CubieTruck上安装mjpg_streamer devexpress bandgridview使用总结(14.2) WeedFS0.6.8-引用库列表 NSQ的消息订阅发布测试 WeedFS问题收集 WeedFS依赖库 0.6.1 golang 前置补0 golang 格式化时间为字符串 格式化字符串为时间学习总结 mgo-后续测试(指定字段,获取id) mgo中DBRef-数据查询测试 mgo中DBRef-数据添加测试 weed-fs 基础测试 weed-fs 压力测试 weed-fs参数列表 mgo like的两种写法
MongoDB-MMS使用总结
forrestsun · 2014-03-07 · via 博客园 - forrestsun

环境:阿里云

系统:ubuntu 12.04

数据库:MongoDB shell version: 2.0.4

  1. 登录MMS,注册相应用户
  2. 根据文档开始安装: Install the Monitoring Agent on Debian and Ubuntu

    这里要注意一点:nohup python agent.py > /LOG_DIRECTORY/agent.log 2>&1 & 中的LOG_DIRECTORY要换成自己想放angen日志的文件夹

   3. 查看agent.log文件看是否有报错信息

    常见的就是mongodb连接错误,或是防火墙未开启,在这个地方纠结了很长时间,一定要确保你的连接地址的正确性。测试

   mongo <你的ip>/admin  -u <管理员名称>  -p <你的密码> 如果这里登录不了admin集合,那要重新检测 

           参考: mongodb远程连接配置详解

   网上提到开443端口,由于阿里云端口为全开放,所以无此问题,如果是在墙内主机可按下面的方法尝试(未测试)

     附开启防火墙出口443,
     iptables -t filter -A OUTPUT -o eth1 -p tcp -m state --state NEW -m tcp --dport 443 -j ACCEPT
     service iptables restart

         4.在MMS中增加主机 填写的IP地址为你在本地服务器中设置的可远程连接的主机地址

         5. 如发现报文件打开限制,可参考如下文章进行设置

    MongoDB "Too Many Open Files"? Raise the limit