自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 资源 (3)
  • 收藏
  • 关注

原创 微信手Q分享js定制

define(function(require,exports,module){    var share_data={};    share_data.url='http://'+location.host+'/php_cgi/syb_video/html/';    share_data.title='游戏时刻';//默认    share_da

2015-10-15 10:49:40 2008

原创 nginx 生成环境反向代码配置

upstream www.test.com { server 192.168.11.32:80; server 192.168.11.42:80; ip_hash;}server { listen 80; server_name www.test.com; access_log /data/NVClog/access.log mylogformat;

2013-11-21 11:41:38 715

原创 php生产环境XHProf 性能分析工具

1.  PHP 编译安装XHProf 模块,这个很简单网上大把资料,我这里就多说了。2.  在你代码入口增加以下代码if (mt_rand(1, 100) == 1) { if(function_exists('xhprof_enable')) { xhprof_enable(); $code=

2013-11-21 11:35:11 912

转载 Nginx HTTP负载均衡/反向代理的相关参数测试

测试目的(1)弄清楚HTTP Upstream 模块中Server指令的max_fails与fail_timeout参 数的关系、它们对后端服务器健康情况的检查起到了什么作用、它们的取值对Http proxy模块中的其它指令是否有直接或间接的影响等……(2)测试HTTP Proxy模块中proxy_next_upstream、proxy_connect_timeout、proxy_read

2013-11-21 11:02:13 731

转载 nginx,apache web服务器支持POST动态下载文件

ob_end_clean();header('Content-Type: audio/mpeg');$file='c:/down/R_ACC_LOCATION_ALL.bin';$filename='R_ACC_LOCATION_AddL.bin';header('Content-Disposition: attachment; filename='.$filename );h

2013-10-20 14:16:40 1161

转载 php连接mysql 内存占用的测试代码

$db = mysql_connect('192.168.xx.xx','xxxx','xxxx');$sql = 'SELECT * from items';mysql_select_db('jv01',$db);echo 'SELECT_DB: ',convert(memory_get_usage()),"\n"; //619.26 kb$r = mysql_query($s

2013-01-11 09:39:29 382

转载 nginx 高速处理文件下载

lighttpd 有一个 X-Sendfile 的特性很有意思。比如传统的做一些需要严格验证的下载之类的功能比如收费下载,需要在程序里验证权限,然后由程序读取文件输出,这样性能不好,占用资源也大,而 web server 本身的功能又不足以提供验证。使用 X-Sendfile 就可以让程序来做验证,而把文件传输交给 web server 来做,各自做各自擅长的事情。本来以为这功能目前就 lig

2013-01-08 17:59:25 420

原创 Linux修改IP地址及激活网卡

LINUX--修改IP地址1.修改:/etc/sysconfig/network-scripts/ifcfg-eth0# Intel Corporation 82540EM Gigabit Ethernet ControllerDEVICE=eth0#BOOTPROTO=dhcpBOOTPROTO=staticONBOOT=yesHWADDR=08:00:27:95:f7:2

2012-12-29 15:31:07 520

原创 查看fastdfs 连接数

netstat -antp | grep 23000 | grep ESTABLISHED -c

2012-12-26 15:38:57 3888

转载 苹果消息推送服务器 php 证书生成

1.准备好aps_developer_identity.cer, push.p12这两个证书文件2. 生成证书如下:openssl x509 -in aps_developer_identity.cer -inform der -out PushChatCert.pemopenssl pkcs12 -nocerts -out PushChatKey.pem

2012-12-21 09:20:37 504

原创 PHP 将Yii模板代码变量替换后生成新的控制器代码写入文件

1.Yii 模板代码Controller.php如下:<?php/** * This is the template for generating a controller class file. * The following variables are available in this template: * - $this: the ControllerCode object

2012-12-20 16:57:36 637

原创 Yii中的公共方函数封装与db读写分离,为测试方便,缓存暂时配置为file

1. 在protected/config目录中新建文件 globals.php2. 在index.php中增加$globals=dirname(__FILE__).'/protected/config/globals.php';require_once($globals);3. globals.php中的内容如下:<?phpfunction user(){ retur

2012-12-20 14:03:22 559

erlang最新api

erlang最新 api

2012-06-16

固定资产管理系统

北大青鸟第一学期项目案例

2008-01-17

冰刃v6.0

强制删除工具.............

2008-01-13

空空如也

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

TA关注的人

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