先上代码:
#include
#include
#include
#include
static char* whom = "World";
static int howmany = 1;
module_param( howmany, int, S_IRUGO );
module_param( whom, charp, S_IRUGO );
static int hello_ini...
分类:
系统相关 时间:
2014-08-23 01:08:59
阅读次数:
367
Zabbix之监控Nginx状态信息nginx需要支持http_stub_status_module编译的时候需要使用--with-http_stub_status_moduleyum默认支持此选项1.配置nginxstuats源码:vimnginx.confyum:vim/etc/nginx/conf.d/default.conf#andaddthefollowingtoyourserverblocklocation/nginx_status{s..
分类:
其他好文 时间:
2014-08-22 18:15:19
阅读次数:
316
FPGA HDL源程序FPGA统计摄像头的输出像素,窗体尺寸等等//----------------------------------------------------------------------------// user_logic.v - module//--------------...
分类:
其他好文 时间:
2014-08-22 12:51:28
阅读次数:
248
CStringCCallSchedulingSystemDlg::GetFilePath(void){ HMODULEmodule=GetModuleHandle(0); charpFileName[MAX_PATH]; GetModuleFileName(module,pFileName,MAX_PATH); CStringcsFullPath(pFileName); intnPos=csFullPath.ReverseFind(_T(‘\\‘)); if(nPos<0) returnCString..
分类:
其他好文 时间:
2014-08-21 19:34:55
阅读次数:
385
5down votefavorite2I don't know how I modified a iOS SDK file, but Xcode say I did. Here is what they reported.fatal error: file '/Applications/Xcode ...
分类:
其他好文 时间:
2014-08-21 18:54:14
阅读次数:
337
关于
nginx_http_push_module模块致力成为一个成熟的http推送和comet服务,它能够处理好全部链接,并且仅通过http请求,可以完成广播消息到所有客户端,这让你写异步web应用程序时得心应手,并且在代码中完全不必理会延时请求。该模块完整的实现了Basic HTTP Push Relay Protocol
为什么选择此模块
当你要写一个实时更新的模块时,例如某些聊天室、多人在线flash游戏等。无论哪种方式,我们都要避免更新请求时刷新页面或者每隔几秒轮训服务器,这样的代码丑陋无比(...
分类:
其他好文 时间:
2014-08-21 17:22:07
阅读次数:
267
1、编译
./configure --prefix=/home/fangjian/study/code/nginx-1.4.4/nginx --add-module=/home/fangjian/study/code
make
make install...
分类:
其他好文 时间:
2014-08-21 11:33:34
阅读次数:
222
1、ThinkPHP框架中所有配置文件的定义格式均采用返回PHP数组的方式,格式为://项目配置文件return array( 'DEFAULT_MODULE' => 'Index', //默认模块 'URL_MODEL' => '2', //URL模式 'SESSION_AUTO_ST...
分类:
其他好文 时间:
2014-08-21 11:08:03
阅读次数:
200
在进行编码前有必要对一些基本的认识进行介绍,以便后面的讲解。 1、JAXB: ????JAXB能够使用Jackson对JAXB注解的支持实现(jackson-module-jaxb-annotations),既方便生成XML,也方便生成JSON,这样一来可以更...
分类:
其他好文 时间:
2014-08-21 02:54:33
阅读次数:
363