一、Nagios简介 Nagios是一款开源的电脑系统和网络监视工具,能有效监控Windows、Linux和Unix的主机状态,交换机路由器等网络设置,打印机等。在系统或服务状态异常时发出邮件或短信报警第一时间通知网站运维人员,在状态恢复后发出正常的邮件或短信通知。 Nagios原名为NetSa.....
分类:
移动开发 时间:
2014-08-01 13:26:01
阅读次数:
406
题目:Given inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.题解:这道题跟pre....
分类:
编程语言 时间:
2014-08-01 06:56:51
阅读次数:
185
题目:Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.题解: 1 ...
分类:
编程语言 时间:
2014-08-01 06:56:41
阅读次数:
228
飞信机器人大家应该并不陌生,我们经常用它来作为监控系统的报警,在32位系统上安装比较简单,而在64位系统上安装稍微麻烦些。1、首先下载fetion以及其依赖的库文件大家自己想办法吧,好像无法访问官方网站了。然后上传到linux上的/usr/local/fetion,共以下几个文件:[root@lo..
分类:
其他好文 时间:
2014-08-01 00:16:21
阅读次数:
332
Problem Description:
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
Do not allocate extra space for another array, you ...
分类:
其他好文 时间:
2014-08-01 00:08:50
阅读次数:
274
angularjs 使用ng-repeat报错
{{word}}
[ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys
发现是因为相同的内容重复引起,解决方案
{{word}}
在ng-...
分类:
其他好文 时间:
2014-07-31 13:34:04
阅读次数:
199
前言:早晨磁盘报警刚清空完tomcat和nginx日志,使用的命令是类似echo "" > show_web-error.log或者> show_web-debug.log清空语句,然后rm -rf 掉一些tar.gz包,空出来30G空间。而且也关闭了tomcat的debug信息。刚刚又接到报警,磁盘100%了。怎么回事??1,进去df -h下,确实100%了,如下所示:[root@localho...
分类:
其他好文 时间:
2014-07-31 09:51:43
阅读次数:
310
题目:Given a collection of integers that might contain duplicates, S, return all possible subsets.Note:Elements in a subset must be in non-descending o....
分类:
编程语言 时间:
2014-07-31 09:38:05
阅读次数:
341
Remove Duplicates from Sorted Array IIFollow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted array A =...
分类:
其他好文 时间:
2014-07-30 20:22:54
阅读次数:
139
今天收到报警邮件,提示网站502 bad gateway,输入网站url后果然无法打开:登录服务器查看nginx进程正常:查看fastcGI进程已经停止运行了:问题找到后就该查找是什么原因产生的问题,先把fastcGI进程启动后网站能够访问了再细找原因。查看php日志 tail –n 1000 /u...
分类:
Web程序 时间:
2014-07-30 17:12:33
阅读次数:
329