自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(59)
  • 收藏
  • 关注

原创 puppetd 客户端安装

1. 安装ruby    yum install ruby2. 下载    http://downloads.puppetlabs.com/facter/facter-1.6.6.tar.gz   http://downloads.puppetlabs.com/puppet/puppet-2.6.14.tar.gz3. 安装  ruby install inst

2012-03-21 18:36:31 321

转载 nginx 非 root 用户下启动

在 Unix-like 系统上, 非 root 用户只能使用 1024 之上的端口。所以, 默认的 80 端口就无效了。转: http://www.reistlin.com/blog/360Apache,Nginx 非 root 用户下启动 HTTP 80 端口(端口范围小于1024)方法一:所有用户都可以运行(因为是755权限,文件所有者:root,组所有者:root

2012-01-04 18:03:33 2975

转载 nginx 日志切割

1. 编写 cut_nginx_logs.sh  自动切割日志脚本 #!/bin/bash#function:cut nginx log files for lnmp v0.5 and v0.6#author: http://lnmp.org#set the path to nginx log fileslog_files_path="/data1/wwwlogs/"

2012-01-04 16:33:18 481

原创 php-fpm 启动脚本

php-fpm 启动脚本1. 复制fpm 下得启动路径到 /etc/init.d/data1/soft/php-5.3.8/sapi/fpmcp init.d.php-fpm /etc/init.d/php-fpmchmod +x php-fpm添加到启动列表/sbin/chkconfig --add php-fpm

2011-12-31 18:29:28 849

原创 powerdns 配置向前解析查询

使用的是cnnic 提供的dnsrecursor=210.2.2.2

2011-12-30 16:14:29 316

转载 Nginx 启动脚本/重启脚本

转自:http://www.21andy.com/blog/20100201/1606.html第一步先运行命令关闭nginxsudo kill `cat /usr/local/nginx/logs/nginx.pid`第二步vi /etc/init.d/nginx输入以下内容#!/bin/sh## ngi

2011-12-21 11:17:11 190

转载 memcache 管理指令 --stats

来源:http://www.blogjava.net/jzone/articles/302991.htmlmqq@32_167_game:~> telnet server portTrying 172.16.32.166...Connected to 172.16.32.166.Escape character is '^]'.statsSTAT pid 26530ST

2011-12-20 11:31:29 187

原创 python xmpp 资料

http://www.iteye.com/topic/1117470 python gtalk机器人 http://www.oschina.net/code/snippet_70229_2371  即时通信网络Gateway地址AIMaim.jaim.atICQicq.jaim.atMSNmsn.jab

2011-12-15 23:41:51 576

原创 nginx 资料

Nginx模块开发指南中文版http://www.oschina.net/question/12_4180 英文原版http://www.evanmiller.org/nginx-modules-guide.html  Nginx模块参考手册中文版http://howtocn.org/nginx:nginx%E6%A8%A1%E5%9D%97%E5%8F%82%E8

2011-12-13 17:20:03 177

转载 在Windows下用MinGW编译Python扩展模块

http://gashero.yeax.comMinGW的安装我的是gcc 3.2.3的解压缩包,解压后设置PATH就可以用了。构建可以直接在构建命令上指定编译器来运行:python setup.py build -c mingw32python setup.py build -compiler=mingw32两种命令都相同。编译完成后可以在 \build\l

2011-12-09 18:12:52 427

原创 emesene windows 编译安装

ImportError: No module named OpenSSLpython openssl  https://launchpad.net/pyopenssl下载 http://launchpadlibrarian.net/58498635/pyOpenSSL-0.11.winxp32-py2.7.msi   xmpphttp://launchpadlibr

2011-12-07 23:49:57 456

原创 SQLSTATE[HY000]: General error: 126 Incorrect key file... 解决办法

Message: SQLSTATE[HY000]: General error: 126 Incorrect key file for table '/tmp/#sql_6d8e_2.MYI'; try to repair it 参见:http://www.automation-excellence.com/blog/general-error-126-incorrect-key-

2011-12-07 11:01:00 1422

原创 vmware 同步时间

修改CentOS.vmx 文件 原来:tools.syncTime = "FALSE"修改为 tools.syncTime = "TRUE"

2011-12-06 14:34:48 222

原创 mysql 导出表结构 存储过程

mysqldump -h192.168.138.183 -uiiscan -pnosec83  -d -R  --add-drop-table dbname > dbname.sql

2011-11-10 09:54:36 377

原创 apache 日志按日自动切割

ErrorLog   "|/usr/sbin/rotatelogs /etc/httpd/logs/webscan_error_%Y%m%d.log 86400 480" CustomLog  "|/usr/sbin/rotatelogs /etc/httpd/logs/we

2011-10-11 17:38:36 293

原创 apache 禁止 list 目录浏览

方法一:Options Indexes FollowSymLinks,使用#注释掉或者去掉其中的Indexes就可以了.方法二:.htaccess配置:Options -Indexes

2011-10-11 14:29:16 742

原创 python 安装 setuptools Compression requires the (missing) zlib module 的解决方案

Compression requires the (missing) zlib moduleyum install zlib-devel安装完成后,重新编译 python

2011-09-28 18:39:11 2491

转载 Apache拦截HTTP请求

http://fengchangjian.com/?p=865有些时候,为了保证Web应用的安全性,可以选择在Apache服务器中将一些危险的HTTP请求过滤,例如DELETE请求,也可以将系统不作处理的无效请求过滤,例如TRACE、OPTIONS请求,以防入侵者发送

2011-09-16 11:04:46 3241

转载 memcached Telnet Interface

http://lzone.de/articles/memcached.htmSadly the syntax description isn't really clear and a simple help command listing the existing

2011-09-15 20:46:52 282

转载 java 自定义错误页面

http://stackoverflow.com/questions/2748220/how-to-show-user-friendly-error-page-instead-of-tomcat-log-with-stack-trace-in-brjust d

2011-09-15 18:53:54 428

原创 centos 使用163的源

参考:http://mirrors.163.com/.help/centos.html使用说明首先备份/etc/yum.repos.d/CentOS-Base.repo mv /etc/yum.repos.d/CentOS-Bas

2011-09-04 20:36:47 192

原创 gearmand requires a C++ compiler that can handle C++98 的解决办法

checking whether __ICC is declared... nochecking for ISO C++ 98 include files... noconfigure: error: No working C++ Compiler has been fo

2011-09-04 20:35:26 575

原创 vi 配置

修改 vi的配置文件 .vimrcvi ~/.vimrc; 显示行号   set number; 检测文件的类型   filetype on;语法高亮    syntax on

2011-09-01 22:34:26 143

原创 boost::asio 在 code::blocks 中的环境设置

 1. project->build options->compiler settings->#defines             _WIN32_WINDOWS 2. project->build options->linker settings 增加  /MinGW/lib/libws2_32.a 3. project->build options->linker set

2010-03-27 19:34:00 343

转载 Advanced XSS exploitation with AJAX

转自:http://www.benjamin-mosse.com/home/articles/AdvancedXssExploitation/Advanced_XSS_Exploitation.html Advanced XSS exploitation with AJAXAuthor: Benjamin Mosse alias BenjilenoobLast revisi

2009-12-20 11:57:00 1010

原创 163博客自动发贴机

 163博客自动发贴机  一个帐户一次可以发送200篇。发送速度快,一天发个10多万没有问题。 发送的线程数和每个帐户发贴数可以设置。截图如下: 设置: 程序界面 发帖结果 如有需要,请联系 QQ 413955596  添加时请注明:163blog自动发贴机

2009-11-29 18:36:00 158

原创 mssql server sql 注入整理(1)

mssql Server:1. 猜数据库的名字 http://192.168.1.3/index_SiteNews_Content.asp?fID_SiteNewsContent=7 and db_name()>0   2. 猜主机名http://192.168.1.3/index_SiteNews_Content.asp?fID_SiteNewsContent=7 and h

2009-10-29 16:51:00 202

原创 windows2003 终端服务管理器

使用 wtsapi32.dll 提供的 函数//---------------------------------------------------------------------------char* __fastcall Tfm_LoginList::GetWTSString(DWORD sID,WTS_INFO_CLASS wtsInfo){        LPTS

2009-08-06 11:58:00 889

原创 mod_python安装

1.  版本要求:     python Python-2.5.4.tgz     mod_python mod_python-3.3.1    apache 2. mod_python 的源文件要做修改,不然编译不过   src/connobject.c 的 142 行,改成  //!(b == APR_BRIGADE_SENTINEL(b) ||  !(

2009-04-25 11:30:00 405

原创 tinyxml 遍历

// 哎 弄了半天才弄出来 #include #include #include "tinyxml.h"#define TIXML_USE_STLusing namespace std;void ParaseUpdateXml(TiXmlNode* pParent);int main(){                TiXmlDocument doc("abc.xml");      

2009-03-03 20:49:00 2474 3

原创 vmware + redhat9 网络配置

  折腾了很久,网上也有很多文章 1.     设置成 net 方式    2. 将 VMware Network Adapter VMnet8 设置成固定ip    在cmd 下 ipconfig 看 vmnet8 固定获得ip是多少 ,根据这个设置固定ip 3.vmware  Edit->virtual network settings    选中 vm

2009-02-26 17:56:00 1768

原创 REDHAT Linux 9.0下载

REDHAT   Linux   9.0下载       [url]ftp://202.96.64.144/shrike-i386-disc1.iso[/url]       [url]ftp://202.96.64.144/shrike-i386-disc2.iso[/url]       [url]ftp://202.96.64.144/shrike-i386-disc3.iso[/url]

2009-02-25 09:52:00 333

原创 libtorrent 编译

编译过程走了很多弯路!1. 下载 http://libtorrent.rakshasa.no     我下载的是 libtorrent-0.12.02.  有的文件缺少头文件, 修改方法参见 http://libtorrent.rakshasa.no/attachment/ticket/1266/libtorrent-gcc43-v2.patch 3. 编译    ./co

2009-02-20 12:19:00 479

原创 bcb 平台 根据电脑名获得ip 根据ip获得电脑

因工作需要,根据客户电脑,我要把他的ip 保存下来  我写了个类,做了个封装//---------------------------------------------------------------------------#ifndef GetComputeIPH#define GetComputeIPH#include #include //-----------------------

2008-05-17 08:27:00 319

原创 将控制台重定位为到 Memo

本文参照了http://topic.csdn.net/t/20040826/20/3313485.html原来是一段vb的代码,我把它重写成 BCB/××××××××××××××××将控制台的输入重定位到Memo 的函数×××××××××××××××××××××××××××××××××××××/#ifndef PipeToMemoH#define PipeToMemoH#include void 

2008-04-05 06:43:00 273

原创 C# 运算符重载 == !=

闲话不多说了,直接贴代码//菜品的结构  public class CaiPinStruct    {        public string CaiPinCode;        public string CaiPinName;        public decimal CaiPnPrice;        public decimal CaiPinNum;    }// 菜品及 菜品明细

2008-03-14 08:42:00 358

原创 ThreadPool

命名空间: System.Threading.Net 提供了一个线程池,不用用户自己创建。 当然执行的工作肯定是 随机的,短暂的代码。线程池中的线程为,后台线程,即  IsBackground 属性为 true 当前台程序结束后,它们也会退出线程池的使用。QueueUserWorkItem  将方法排入队列以便执行。此方法在有线程池线程变得可用时执行。//下面是我测试用的一段代码using S

2008-03-05 23:38:00 371

原创 bcb递归删除文件夹

昨天头要我写一段递归删除文件夹的代码。 记下来,以后方便用.bool __fastcall  TForm1::DeleteFolder(AnsiString   sourceDir){        TSearchRec sr;        AnsiString strDir;        AnsiString strFile;        int Attr = 0;        Attr

2008-02-21 08:32:00 1328

原创 iReaper 下载中文MSDN Webcast工具

今天发现了一个下载  中文MSDN Webcast工具。非常的好用。以后收听微软中国的网络在线课程就非常方便了!当然,还有源码可以下载! 真是太好了。下载地址:http://myron.cnblogs.com/ 

2008-02-17 22:18:00 484

转载 简单工厂模式(Simple Factory Pattern)

转自:http://www.cnblogs.com/bit-sand/archive/2008/01/25/simple_Factory_Pattern.html 简单工厂模式(Simple Factory Pattern) 介绍:简单工厂模式不能说是一个设计模式,说它是一种编程习惯可能更恰当些。因为它至少不是Gof23种设计模式之一。但它在实际的编程中经常被用到,而且思想也非常简单,可以说是<

2008-02-16 16:14:00 380

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除