当前位置: 首页 > OpenSource
  • nginx 的debug模式

    编译的时候添加: –with-debug  nginx.conf中的配置: error_log  logs/error.log debug; #master_process  off;daemon          off;daemon off;             说明:master_proces ...

    阅读全文
    作者:2hei | 分类:OpenSource | 阅读:6,829 views | 标签:
    nginx 的debug模式已关闭评论
  • Your intltool is too old. You need intltool 0.35.0 or later

    编译rrdtool时,提示这样的错误:checking for intltool >= 0.35.0… 0.31.2 foundconfigure: error: Your intltool is too old.  You need intltool 0.35.0 or later. 解决办法如下:wget http://ftp.gnome.org/pub/gnome/sources/intltool/0.40/intltool-0.40.6.tar.gztar zxvf intltool-0.40.6.tar.gzc ...

    阅读全文
    作者:2hei | 分类:OpenSource | 阅读:5,636 views | 标签:
    Your intltool is too old. You need intltool 0.35.0 or later已关闭评论
  • linux下使用uuencode/mutt发送带附件的邮件

    linux下使用uuencode/mutt发送带附件的邮件: 前提,sendmail服务配置好且正常工作: 设置附件大小:cat /etc/mail/sendmail.cfO MaxMessageSize=10485760   #10m 方法一: 使用uuencode下载地址:http://rpm.pbone.net/index.php3/stat/4/idpl/8081358/com/sharutils-4.6.1-2.x86_64.rpm.html根据内核版本找 ...

    阅读全文
    作者:2hei | 分类:OpenSource | 阅读:3,560 views | 标签:,
  • ssh登陆到终端的时候去掉Your default context is root提示

    使用ssh或者telnet登陆到终端的时候,发现有的机器会有如下的提示:[local@2hei.net ~]$ su – Password: Your default context is root:system_r:unconfined_t. Do you want to choose a different one? [n] [root@2hei.net ~]# getenforcePermissive 解决办法一:[root@2hei.net ~]#  vi /etc/pam.d/su &n ...

    阅读全文
    作者:2hei | 分类:OpenSource | 阅读:3,377 views | 标签:
    ssh登陆到终端的时候去掉Your default context is root提示已关闭评论
  • Windows下安装 Lighttpd php fastcgi mysql环境

     windows下搭建apache+php+mysql环境很简单,不过也总会有一些问题 以下是我搭建过程中的遇到的问题:Windows + apache2.2.11 + php5.2.9 + mysql5,每个软件安全都很简单,只是apache启动后半分钟就自动关闭。具体日志如下:[Mon May 25 23:34:13 2009] [notice] Apache/2.2.11 (Win32) PHP/5.2.9-1 configured & ...

    阅读全文
    作者:2hei | 分类:OpenSource | 阅读:5,164 views
    Windows下安装 Lighttpd php fastcgi mysql环境已关闭评论
  • use mod_gnutls replace mod_ssl in apache VirtualHost

    use mod_gnutls replace mod_ssl in apachemod_gnutls一个替换apache mod_ssl的模块。 mod_gnutls uses the GnuTLS library to provide SSL 3.0, TLS 1.0 and TLS 1.1 encryption for Apache HTTPD. It is similar to mod_ssl in purpose, but does not use OpenSSL.作者很有意思,写了为啥自己要写mod_gnutls模块,据 ...

    阅读全文
    作者:2hei | 分类:OpenSource | 阅读:3,832 views
    use mod_gnutls replace mod_ssl in apache VirtualHost已关闭评论
  • linux kernel: oom-killer

    apache 终于停止服务了,系统为2.6内核、64位操作系统、2G内存。/var/log/messages 有这样的错误提示Mar  8 20:18:24 2hei-net kernel: oom-killer: gfp_mask=0x1d2Mar  8 20:18:24 2hei-net kernel: Mem-info:Mar  8 20:18:24 2hei-net kernel: Node 0 DMA per-cpu:Mar  8 20:18:24 2hei-net kern ...

    阅读全文
    作者:2hei | 分类:OpenSource | 阅读:4,742 views
    linux kernel: oom-killer已关闭评论
  • apache日志中 X-Forwarded-For 参数的设定

    apache日志中默认有%h来指定来访客户端你的ip地址,但是如果客户端使用了代理上网则%h获得的ip地址会不准。 apache 日志中可以设定 X-Forwarded-For 参数来获取客户端真实的ip地址 对于使用了反向代理的客户端,跟踪真实的ip地址X-Forwarded-For header is supported by most proxy servers, including Squid,[1] Apach ...

    阅读全文
    作者:2hei | 分类:OpenSource | 阅读:6,896 views | 标签:
    apache日志中 X-Forwarded-For 参数的设定已关闭评论
  • 将应用程序添加到右键的方法,just like UE

    今天下载了一个notepad++,绿色版,所有鼠标右键里并没有像UE和EditPlus的快捷方式,于是修改了注册表,手工添加了进去可以使用两种方式来添加,原理是一样的。 ———————-notepad.reg————————Windows Registry Editor Versi ...

    阅读全文
    作者:2hei | 分类:OpenSource | 阅读:3,173 views
    将应用程序添加到右键的方法,just like UE已关闭评论
  • linux下不错的工具 fping

    fping 是linux下不错的网络测评工具,相信大家都很熟悉,不多说了,仅作为收藏、备忘。 http://fping.sourceforge.net/ ./fping –help./fping: invalid option — – Usage: ./fping [options] [targets…]   -a         show targets that ar ...

    阅读全文
    作者:2hei | 分类:OpenSource | 阅读:4,888 views
    linux下不错的工具 fping已关闭评论
  • svn: Can’t convert string from native encoding to UTF-8

    项目需要用到ant和svn结合使用,在使用ant svnup时,系统提示:svn: Can’t convert string from native encoding to ‘UTF-8’:大概意思是:不能把字符串从本地编码转换为“UTF-8”编码google了半天,都说是修改本地环境变量。$locale $LANG=en_US.UTF-8$LC_CTYPE=”en_US.UTF-8″$LC_NUMERIC= ...

    阅读全文
    作者:2hei | 分类:OpenSource | 阅读:3,752 views | 标签:
  • kernel: mptscsih: ioc0: task abort: SUCCESS

    收到服务器报警,查看/var/log/messages 中很多类似下面的日志:Dec  9 00:03:22 kernel: mptscsih: ioc0: attempting task abort! (sc=ffff81007ec8bb00)Dec  9 00:03:22 kernel: sd 0:0:0:0:Dec  9 00:03:22 kernel:         command: Read(10): 28 00 05 4c ...

    阅读全文
    作者:2hei | 分类:OpenSource | 阅读:6,773 views | 标签:
    kernel: mptscsih: ioc0: task abort: SUCCESS已关闭评论
  • redhat9使用vnc安装oracle9i

    需求来了:一台老机器,系统是redhat9,上面需要安装oracle9i,呵呵,开始折腾!生活就是在折腾来折腾去,最后也没弄清楚到底在折腾啥,完事后对这镜子哈哈大笑,至少我还折腾过!废话少说,步入正题。 好久没有装过oracle9了,以往的笔记都是在rhel4下面使用vnc来操作的。据说oracle9i也可以在字符界面下安装,./runIn ...

    阅读全文
    作者:2hei | 分类:database, OpenSource | 阅读:3,385 views | 标签:,
    redhat9使用vnc安装oracle9i已关闭评论
  • how to resove — kernel: mptbase: ioc0: LogInfo

    cat /var/log/messages i meet such logs: kernel: mptbase: ioc0: LogInfo(0x31120401): Originator={PL}, Code={Abort}, SubCode(0x0401) #modinfo mptbasefilename:       /lib/modules/2.6.18-53.1.13.el5/kernel/drivers/message/fusion/mptbase.koversion: &n ...

    阅读全文
    作者:2hei | 分类:OpenSource | 阅读:4,550 views | 标签:
    how to resove — kernel: mptbase: ioc0: LogInfo已关闭评论
  • php compile in 64bit Linux error

    I install php5.2.6 with apache2.x, I meet this error! Installing PHP SAPI module:       apache2handler/home/apache2/build/instdso.sh SH_LIBTOOL=’/home/apache2/build/libtool’ libphp5.la /home/apache2/modules/home/apache2/build/libtool –mode=install ...

    阅读全文
    作者:2hei | 分类:OpenSource, php | 阅读:2,814 views | 标签:
    php compile in 64bit Linux error已关闭评论
  • liba52在AMD64位机器下的编译问题

    http://liba52.sourceforge.net/http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz liba52 is a free library for decoding ATSC A/52 streams. It is released under the terms of the GPL license. The A/52 standard is used in a variety of applications, including digital television and DVD. It is al ...

    阅读全文
    作者:2hei | 分类:OpenSource | 阅读:3,308 views | 标签:
    liba52在AMD64位机器下的编译问题已关闭评论
  • nagios的check_ping使用

    nagios的一些辅助工具很有用处,如check_ping,check_tcp等等,这里介绍一下check_ping的用法: nagios的check_ping命令: 源码可见 nagios插件: nagios-plugins-1.4.12/plugins/check_ping.c   用法: ./check_ping  Usage: check_ping -H <host_address> -w <wrta> ...

    阅读全文
    作者:2hei | 分类:OpenSource | 阅读:4,314 views | 标签:
    nagios的check_ping使用已关闭评论