东儿童
爱拼才会赢
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页
摘要: Nginx FastCGI一个十分经典的程序,但是有人对这个经典还是有些不了解。下面我们就详细的看看有关的命令。希望在之后可以更好的进行相关操作。关于Nginx FastCGI的几个指令:fastcgi_cache_path/usr/local/Nginx/fastcgi_cachelevels=1:2keys_zone=TEST:10minactive=5m;这个指令为FastCGI缓存指定一个路径,目录结构等级,关键字区域存储时间和非活动删除时间。fastcgi_connect_timeout300;指定连接到后端FastCGI的超时时间。fastcgi_send_timeout300;向 阅读全文
posted @ 2012-01-06 11:12 哎!无悔 阅读(1703) 评论(0) 推荐(0) 编辑
摘要: 一般来说nginx配置文件中对优化比较有作用的为以下几项:worker_processes 8;nginx进程数,建议按照cpu数目来指定,一般为它的倍数。worker_cpu_affinity 00000001 00000010 00000100 00001000 00010000 00100000 01000000 10000000;为每个进程分配cpu,上例中将8个进程分配到8个cpu,当然可以写多个,或者将一个进程分配到多个cpu。worker_rlimit_nofile 102400;这个指令是指当一个nginx进程打开的最多文件描述符数目,理论值应该是最多打开文件数(ulimit 阅读全文
posted @ 2012-01-06 10:27 哎!无悔 阅读(2150) 评论(1) 推荐(0) 编辑
摘要: Options+FollowSymLinks#IndexIgnore<em>/</em>RewriteEngineonRewriteBase/#ifadirectoryorafileexists,useitdirectly#RewriteCond%{REQUEST_FILENAME}!-f#RewriteCond%{REQUEST_FILENAME}!-d#otherwiseforwardittoindex.phpRewriteRule^/(.*)/test.phpRewriteRule^(.*)test.php 阅读全文
posted @ 2011-12-07 22:44 哎!无悔 阅读(219) 评论(0) 推荐(0) 编辑
摘要: This article is part of a series on testing untestable code:Testing private methodsTesting code that uses singletonsStubbing static methodsStubbing hard-coded dependenciesNo, notthose privates. If you need help with those,this bookmight help.One question I get over and over again when talking aboutU 阅读全文
posted @ 2011-12-02 17:29 哎!无悔 阅读(298) 评论(0) 推荐(0) 编辑
摘要: This article is part of a series on testing untestable code:Testing private methodsTesting code that uses singletonsStubbing static methodsStubbing hard-coded dependenciesNo, notthose privates. If you need help with those,this bookmight help.One question I get over and over again when talking aboutU 阅读全文
posted @ 2011-12-02 17:29 哎!无悔 阅读(1183) 评论(0) 推荐(0) 编辑
摘要: 敏捷开发思想首先,编写类定义;其次,编写测试用例;第三,实现类;第四,实现测试用例;第五,反复测试修改。准备工作安装PHPUnit自动安装pear install phpunit手动安装下载http://pear.phpunit.de/get/PHPUnit-3.3.9.tgz,解压到PHP目录,将pear-phpunit和pear-phpunit.bat,复制到PHP目录,重命名为phpunit和phpunit.bat,将PHP目录加入PATH路径。编辑phpunit,修改为:编辑phpunit.bat,假设PHP路径为D:\PHP,修改为:@echo offphp -d safe_mode 阅读全文
posted @ 2011-12-02 17:15 哎!无悔 阅读(2247) 评论(0) 推荐(0) 编辑
摘要: 【转至:http://blog.csdn.net/castellan/article/details/2451063】由于不喜欢VSS的工作机制,我尝试在我的开发小组里推行Subversion做版本管理。网络上已经有很多的安装例子了。这里只是把我自己的经历记录下来。关于使用的心得,我会再之后在做增加。系统环境:WindowsXP安装软件:apache_2.0.63、svn-1.4.6安装路径:Apache使用默认的安装路径:C:/Program Files/Apache Group/Apache2;Subversion使用默认的路径:C:/Program Files/Subver。步骤:1.安 阅读全文
posted @ 2011-12-01 15:42 哎!无悔 阅读(581) 评论(0) 推荐(0) 编辑
摘要: 问题原因:在页面中使用了onload事件,该事件的调用方法中,使用了JS来设置FCKEditor的值(FCKEditor在当前页面中).可以理解为还没有加载完FCKEditor就设置其值.所以会报错.解决方案:将onload事件的调用方法名改为:FCKeditor_OnComplete 阅读全文
posted @ 2011-10-21 18:29 哎!无悔 阅读(217) 评论(0) 推荐(0) 编辑
摘要: MyBatis学习 之 一、MyBatis简介与配置MyBatis+Spring+MySqlMyBatis学习 之 二、SQL语句映射文件(1)resultMapMyBatis学习 之 二、SQL语句映射文件(2)增删改查、参数、缓存MyBatis学习 之 三、动态SQL语句MyBatis学习 之 四、MyBatis配置文件 阅读全文
posted @ 2011-10-20 23:26 哎!无悔 阅读(2536) 评论(0) 推荐(0) 编辑
摘要: MyBatis中,可以使用Generator自动生成代码,包括DAO层、 MODEL层 、MAPPING SQL映射文件。第一步:下载MyBatis的Generator工具下载地址:http://code.google.com/p/mybatis/downloads/detail?name=mybatis-generator-core-1.3.1-bundle.zip&can=3&q=Product%3DGenerator第二步:配置自动生成代码所需的XML配置文件,例如(generator.xml)Xml代码<?xmlversion="1.0"enc 阅读全文
posted @ 2011-10-20 23:24 哎!无悔 阅读(702) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页