摘要: 1.当$compile_check开启的时候(默认开启),每个模板文件和配置文件都会在缓存检查的的时候执行编译检查,如果这些文件在缓存生成后修改,那么缓存会马上重新生成。这是一个覆盖的选项,所以更好的性能建议把$compile_check设置成false$smarty->setCompileCheck(false);2.如果开启了$force_compile,缓存文件将总是会重新生成,效果和关闭缓存是一样的。而且还会降低性能$force_compile一般用于调试目地。更却当的方式是把缓存$caching设置成Smarty::CACHING_OFF3.isCached()函数可以检查模板 阅读全文
posted @ 2014-03-21 23:48 yumuxu 阅读(209) 评论(0) 推荐(0) 编辑
摘要: MetalScrollhttp://code.google.com/p/metalscroll/MetalScroll是RockScroll插件的替代者。它用一个代码缩略图替换代码编辑器的滚动条。 阅读全文
posted @ 2014-03-17 17:05 yumuxu 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 参考资料:http://www.jb51.net/LINUXjishu/86331.htmlchkconfig --add httpdchkconfig --add mysqldchkconfig --level 2345 httpd onchkconfig --level 2345 mysqld on 阅读全文
posted @ 2014-03-13 22:39 yumuxu 阅读(150) 评论(0) 推荐(0) 编辑
摘要: http://www.if-not-true-then-false.com/2010/install-apache-php-on-fedora-centos-red-hat-rhel/ 阅读全文
posted @ 2014-03-12 00:42 yumuxu 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 比较详尽的介绍:http://www.cnblogs.com/mchina/archive/2013/01/04/2842275.html详尽的命令介绍:http://www.linuxsky.org/doc/newbie/200801/230.html查询软件的安装路径rpm -qpl mysql 阅读全文
posted @ 2014-03-12 00:25 yumuxu 阅读(121) 评论(0) 推荐(0) 编辑
摘要: #yum install "@Chinese Support" 注意双引号 阅读全文
posted @ 2014-03-12 00:13 yumuxu 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 一开始只知道改/etc/resove.conf结果改完好了,重启之后有还原回127.0.0.1了再次google发现如下方法在/etc/sysconfig/network-scripts下根据你的设备号创建一个文件例如 ifcfg-wlan0 因为我的是用无线网卡输入如下内容DEVICE=wlan0IPADDR=192.168.1.52NETMASK=255.255.255.0DNS1=8.8.8.8DNS2=8.8.4.4----------------------------------------------------------reboot 在次查看 /etc/resove.conf 阅读全文
posted @ 2014-03-12 00:12 yumuxu 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 工具:Universal-USB-Installer-1.9.5.2IOS:CentOS-6.5-x86_64-LiveCD制作完之后用U盘启动。里面直接安装。简单方便;无线网卡的安装命令:lspci查看无线网卡的型号命令:uname -a查看系统内核版本参考:http://linux.chinaitlab.com/administer/938709.htmlgccdepen cloop-ppl,cpp,glibc-devel,libgomp最好是能用yum安装不然关联关系会折腾死掉的。 阅读全文
posted @ 2014-03-11 22:16 yumuxu 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 下载 apache2,apr,apr-util,pcrehttps://apr.apache.org/download.cgihttp://httpd.apache.org/download.cgi#apache24http://docs.huihoo.com/gnu/linux/gmake.html安装 apr./configure --prefix=/usr/local/aprmakemake install安装apr-util./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/bin/apr-1-confi 阅读全文
posted @ 2014-03-09 21:16 yumuxu 阅读(151) 评论(0) 推荐(0) 编辑
摘要: if (!Array.prototype.indexOf) { Array.prototype.indexOf = function(obj, start) { for (var i = (start || 0), j = this.length; i < j; i++) { if (this[i] === obj) { return i; } } return -1; } }http:... 阅读全文
posted @ 2013-12-12 10:01 yumuxu 阅读(153) 评论(0) 推荐(0) 编辑