Check nagios配置文件报错例如以下:[nagios@2 etc]$
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfgNagios Core
4.0.6Copyright (c) 2009-present Nag...
分类:
移动开发 时间:
2014-05-27 00:07:04
阅读次数:
364
方法一安装cURLwgethttp://curl.haxx.se/download/curl-7.17.1.tar.gztar -zxf
curl-7.17.1.tar.gz./configure --prefix=/usr/local/curlmake & make
install方法二进入安装原...
分类:
Web程序 时间:
2014-05-26 21:25:29
阅读次数:
698
一 、查看已安装的nginx是否包含stub_status模块
/usr/local/nginx/sbin/nginx -V nginx version: Nginx/1.2.0 configure arguments:
--with-http_stub_status_module 确定支持stub...
分类:
其他好文 时间:
2014-05-26 16:34:01
阅读次数:
233
$ ID=$(sudo docker run -d ubuntu /usr/bin/top
-b)$ sudo docker attach $ID在容器中运行top命令。如果attach 的时候就能看到top的是输出。$ sudo docker
stop $ID 就能结束这个容器。docker bu...
分类:
其他好文 时间:
2014-05-26 14:38:52
阅读次数:
421
常用命令1 查找文件位置: $locate php-fpm
软件变动的话更新locate本地库,可能比较耗时。 $sudo /usr/libexec/locate.updatedb2 查找运行文件位置 $whereis
php-fpm $witch php-fpm所有命令最好再超级管理员下...
分类:
其他好文 时间:
2014-05-23 03:42:11
阅读次数:
360
We added a system call to modify idt table,
then programed it inmodify_idt.c1. Put our modify_idt.c file
in/usr/src/linux-3.10.15/arch/x86/kernel2./us...
分类:
其他好文 时间:
2014-05-22 15:51:03
阅读次数:
269
1、用SAP router实现从外网登录SAP服务器(方式一)
自已搭建的局域网结构如下:
SAP服务器IP: 192.168.0.2, 路由器中设为DMZ区
在SAP服务器上启用SAP router,即可
SAP router的搭建非常简单:
1.找到SAP的安装目录(例如D:\usr\sap\ECC\DVEBMGS00\exe\),可以看到saprouter.exe文件
...
分类:
其他好文 时间:
2014-05-21 16:55:39
阅读次数:
455
最近闲来无事写了一个统计C或者C++代码行数的程序,主要用到了python以及正则表达式
#-*-coding:utf-8
#!/usr/bin/python
import re
import os
import sys
'''get the file or dir in one path'''
def getfilename(path):
if os.path.exi...
分类:
编程语言 时间:
2014-05-21 15:06:30
阅读次数:
379
1.解压[root@zabbix~]#tar-jxvfmsmtp-1.4.32.tar.bz22.配置[root@zabbix~]#cdmsmtp-1.4.32[root@zabbixmsmtp-1.4.32]#./configure--prefix=/usr/local/msmtp--sysconfdir=/usr/local/msmtp/etccheckingbuildsystemtype...x86_64-unknown-linux-gnucheckinghostsystemtype...x86..
分类:
其他好文 时间:
2014-05-21 12:58:08
阅读次数:
378
1、在进入系统的时候经常提示Youhavenewmailin/var/spool/mail/rootecho“unsetMAILCHECK”>>/etc/profilesource/etc/profile关闭sendmail的功能:chmod0/usr/sbin/sendmailmv/usr/sbin/sendmail/usr/sbin/sendmail.bakln-s/var/qmail/bin/sendmail/usr/sbin/sendmail清..
分类:
其他好文 时间:
2014-05-21 12:39:10
阅读次数:
278