上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 31 下一页
摘要: 首先需要安装alien工具:http://ftp.de.debian.org/debian/pool/main/a/alien/[root@localhost tmp]#tar zxvf alien_8.88.tar.gz[root@localhost alien]#perl Makefile.PL[root@localhost alien]#make[root@localhost alien]#make instal[root@localhost alien]#yum -y install rpm-build[root@Master Downloads]# alien -r libbz2-d 阅读全文
posted @ 2013-11-10 14:19 jackluo 阅读(24815) 评论(0) 推荐(0) 编辑
摘要: 1.core 文件简介在一个程序崩溃时,一般会在指定目录下生成一个core文件。core文件仅仅是一个内存映象(同时加上调试信息),主要是用来调试的。也就是说这种文件是程序意外中断时候生成的 debug 用的文件。这些文件对于普通用户没啥用,可以直接删除。2.如何开启或关闭 core 文件的生成用以下命令来阻止系统生成core文件:ulimit -c 0下面的命令可以检查生成core文件的选项是否打开:ulimit -a该命令将显示所有的用户定制,其中选项-a代表“all”。你也可以修改系统文件来调整 core 选项在/etc/profile通常会有这样一句话来禁止产生core文件,通常这种设 阅读全文
posted @ 2013-11-08 17:07 jackluo 阅读(850) 评论(0) 推荐(0) 编辑
摘要: 调用:strace[ -dffhiqrtttTvxx ] [ -acolumn ] [ -eexpr ] ...[ -ofile ] [ -ppid ] ... [ -sstrsize ] [ -uusername ] [ command [ arg ... ] ]strace-c [ -eexpr ] ... [ -Ooverhead ] [ -Ssortby ] [ command [ arg ... ] ]功能:跟踪程式执行时的系统调用和所接收的信号.通常的用法是strace执行一直到commande结束.并且将所调用的系统调用的名称、参数和返回值输出到标准输出或者输出到-o指定的文件. 阅读全文
posted @ 2013-11-07 17:54 jackluo 阅读(420) 评论(0) 推荐(0) 编辑
摘要: phpredis是redis的php的一个扩展,效率是相当高有链表排序功能,对创建内存级的模块业务关系很有用;以下是redis官方提供的命令使用技巧:下载地址如下:https://github.com/owlient/phpredis(支持redis 2.0.4)Redis::__construct构造函数$redis = new Redis();connect, open 链接redis服务参数host: string,服务地址port: int,端口号timeout: float,链接时长 (可选, 默认为 0 ,不限链接时间)注: 在redis.conf中也有时间,默认为300pconn 阅读全文
posted @ 2013-11-07 16:01 jackluo 阅读(79228) 评论(0) 推荐(6) 编辑
摘要: cookies的值超出了范围我是说看看了一下日志错误502 upstream sent too big header while reading response header from upstreamsudo gedit /var/log/nginx/error.log查看错误日志upstreamsenttoobigheaderwhilereadingresponseheaderfromupstream你去搜这个错误,网上的解释都差不多,无外乎是cookie携带的header太多了,让你设置:fastcgi_buffer_size 128k;fastcgi_buffers 8 128k;逐 阅读全文
posted @ 2013-11-06 15:54 jackluo 阅读(18497) 评论(0) 推荐(1) 编辑
摘要: null,// 只支持一台 Master 'slave'=>array(),// 可以有多台 Slave ); /** * 构造函数 * * @param boolean $isUseCluster 是否采用 M/S 方案 */ public function __construct($isUse... 阅读全文
posted @ 2013-11-06 11:43 jackluo 阅读(12123) 评论(0) 推荐(0) 编辑
摘要: 转 http://developer.51cto.com/art/200912/166495.htmfunction getip() { $unknown = 'unknown'; if (isset($_SERVER['HTTP_X_FORWARDED_FOR']) && $_SERVER['HTTP_X_FORWARDED_FOR'] && strcasecmp($_SERVER['HTTP_X_FORWARDED_FOR'], $unknown) ) { $ip = $_SERVER[' 阅读全文
posted @ 2013-11-04 19:01 jackluo 阅读(517) 评论(0) 推荐(0) 编辑
摘要: pconnect('127.0.0.1', 6379); if(isset($_SERVER['HTTP_REFERER'])){ $url_md5 = md5($_SERVER['HTTP_REFERER']); } $adve_key = 'adve'; $adve_key_exists = 'adve_exists'; if(!$redis->exists($adve_key_exists)){ $list = $mysql_obj->fetch_array("select... 阅读全文
posted @ 2013-11-04 18:11 jackluo 阅读(1226) 评论(0) 推荐(0) 编辑
摘要: pconnect('127.0.0.1', 6379); if(isset($_SERVER['HTTP_REFERER'])){ $url_md5 = md5($_SERVER['HTTP_REFERER']); } $adve_key = 'adve'; $adve_key_exists = 'adve_exists'; if(!$redis->exists($adve_key_exists)){ $list = $mysql_obj->fetch_array("select * from 阅读全文
posted @ 2013-11-01 15:12 jackluo 阅读(9315) 评论(0) 推荐(0) 编辑
摘要: 1548-Cannot load from mysql.proc. The table is probably corruptedhttp://bugs.mysql.com/bug.php?id=50183原因是mysql.proc升级时有个字段没有升级成功。在5.1中mysql.proc表的comment字段是varchar(64):`comment` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',但在5.5中应该是text:`comment` text CHARACTER SET utf8 阅读全文
posted @ 2013-10-29 21:05 jackluo 阅读(14255) 评论(0) 推荐(1) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 31 下一页