摘要: 数据库连接突然增多到1000的问题查看了一下,未有LOCK操作语句。但是明显有好多copy to tmp table的SQL语句,这条语读的时间比较长,且这个表会被加读锁,相关表的update语句会被排进队列。如果多执行几次这样的copyt to tmp table 语句,会造成更多的语句被阻塞。连... 阅读全文
posted @ 2014-09-01 23:57 thrillerz 阅读(14650) 评论(0) 推荐(0) 编辑
摘要: yum install libXpm-devel在查询他的安装位置:#rpm -ql libXpm-devel/usr/bin/cxpm/usr/bin/sxpm/usr/include/X11/xpm.h/usr/lib/libXpm.so/usr/lib/pkgconfig/xpm.pc/usr... 阅读全文
posted @ 2014-08-30 22:01 thrillerz 阅读(825) 评论(0) 推荐(0) 编辑
摘要: 如果ping命令返回如下错误,那主要的可能性就是系统的DNS设置有误。[cpp]view plaincopyprint?[root@CentOS5~]#pingwww.sina.com.cnping:unknownhostwww.sina.com.cn可以通过如下方法来解决,此方法已经在linux和... 阅读全文
posted @ 2014-08-30 22:01 thrillerz 阅读(3187) 评论(0) 推荐(0) 编辑
摘要: 一:Mcrypt简介Mcrypt是PHP的一个扩展,完成了常用加密算法的封装。其实该扩展是对mcrypt标准类库的封装,mcrypt完成了相当多的常用加密算法,如DES, TripleDES, Blowfish (default), 3-WAY, SAFER-SK64, SAFER-SK128, T... 阅读全文
posted @ 2014-08-30 18:43 thrillerz 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 有很多中方法,这里只取最简单的一种:把启动命令放到/etc/rc.d/rc.local文件里这样就可以每次启动的时候自动启动服务了,注意给rc.local执行权限 阅读全文
posted @ 2014-08-30 14:48 thrillerz 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 安装gd需要以下库:gd-2.0.33.tar.gz http://www.boutell.com/gd/ jpegsrc.v6b.tar.gz http://www.ijg.org/ libpng-1.2.7.tar.tar http://sourceforge.net/project... 阅读全文
posted @ 2014-08-27 23:27 thrillerz 阅读(937) 评论(0) 推荐(0) 编辑
摘要: 1 zlib是提供数据压缩用的函式库,2 libxml2Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform), it is ... 阅读全文
posted @ 2014-08-27 22:33 thrillerz 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 每次启动切换到 /usr/local/lighttpd/sbin 执行 ./lighttpd -f /usr/local/lighttpd/lighttpd.conf 比较麻烦, 而且不方便重新启动!1 切换到源码包的根目录下: # cd doc # cp sysconfig.lighttpd /e... 阅读全文
posted @ 2014-08-27 21:31 thrillerz 阅读(583) 评论(0) 推荐(0) 编辑
摘要: 今天安装了mysql5.6,记录备以后查看:1 我下载的是mysql-5.6.20-linux-glibc2.5-x86_64.tar.gz Compressed TAR Archive 这个版本2 先解压 tar zxf xxxx,然后整个mysql目录架构都出来了,放到自己想要的位置3 编配置文... 阅读全文
posted @ 2014-08-26 23:00 thrillerz 阅读(497) 评论(0) 推荐(0) 编辑
摘要: 配置防火墙,开启80端口、3306端口:CentOS 7.0默认使用的是firewall作为防火墙关闭firewall:systemctl stop firewalld.service #停止firewallsystemctl disable firewalld.service #禁止firew... 阅读全文
posted @ 2014-08-26 20:02 thrillerz 阅读(237) 评论(0) 推荐(0) 编辑