- 博客(8)
- 收藏
- 关注
原创 rabbitmq install
echo "deb http://www.rabbitmq.com/debian/ testing main" > /etc/apt/sources.list.d/rabbitmq.listwget http://www.rabbitmq.com/rabbitmq-signing-key-public.ascsudo apt-key add rabbitmq-signing-key-publi
2015-06-24 17:00:07
614
转载 Varnish and nginx setup
SetupWe will be using nginx as SSL offloader forwarding regular HTTP traffic to the varnish proxy on port 8080 on the same host.Update and upgrade the serversudo apt-get update && sudo a
2014-02-24 15:20:36
706
转载 drupal如何通过URL查找对应的程序
drupal的hook_menu可以定制module的入口path,但drupal并不是每次访问都去搜索所有menu hook,而是会先把path记到数据库,以后访问一个path时,drupal都会搜索数据库得到对应的module。所以要找到一个path是属于那个module,可以搜索一下menu_router表。例如地址为 http://localhost/user/register
2013-12-11 13:38:58
749
原创 开启Mysql 慢查询
1 寻找mysql配置文件路径:cd /usr/bin (到mysql执行文件路径)./mysql --help | grep 'my.cnf'返回: order of preference, my.cnf, $MYSQL_TCP_PORT,/etc/my.cnf /etc/mysql/my.cnf /usr/etc/my.cnf ~/.my.cnf 2 配置
2013-02-20 16:21:14
336
转载 使用file_get_contents提交http post
使用file_get_contents提交http post时需开启了allow_url_fopen。1.先看一下目标网页(假设是http://localhost/response.php)response.php<?php echo ""; print_r($_POST); print_r($_COOKIE); ?> 本文讲述的只是http post请求的
2012-12-05 14:16:01
438
1
翻译 探析magento的Layout xml Part 2
前言:首先,让我们先看下在这篇文章中用的比较多的方法。MVC Action:没什么多说的,就是mvc的action。eg:当调用category页面时将调用Mage_Catalog_CategoryController::viewAction()。Layout Instance:用来呈现页面。在页面呈现前,Magento总是先实例化layout。Layout Update Instance
2012-11-28 17:48:41
659
原创 Magento admin system config 写好后注意事项
在Magento admin system config写好配置后,有2点需要注意的:1 添加acl
2012-11-26 21:35:01
378
翻译 探析magento的Layout xml Part 1
在Magento的MVC模式中的View层被分为2个部分:Layout 和Template。Template 是在layout中定义的在页面的具体什么位置显示的html。Magento 提供了十分简便,灵活的xml的配置。1 Layout XML layout的xml能在系统的app/design/frontend/[package]/[theme]/layout中找到。每个Ma
2012-11-09 15:35:11
1453
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人