- 博客(15)
- 资源 (20)
- 收藏
- 关注
原创 mysql 表清空 ,查看sql在进程中的正在运行的sql ,log日志
1.TRUNCATE TABLE `index_process_event`;TRUNCATE TABLE `dataflow_batch_export`;TRUNCATE TABLE `dataflow_batch_import`;TRUNCATE TABLE `log_customer`;TRUNCATE TABLE `log_quote`;TRUNCATE
2014-04-29 17:23:35 749
原创 SVN - 常用命令
1.使用svn up 可以更新文件,可以查看到更新后的版本号,每一次svn up,如果有文件更新就会生成一次新的版本号使用svn log 查看所有的版本号使用svn log -r 300 查看某一个版本号的信息,可以查看更新的账户,时间r460 | terry | 2014-04-09 09:41:03 +0800 (Wed, 09 Apr 2014) | 1 line使用
2014-04-27 13:33:46 845
转载 点击不在这个区域部分,div消失,jquery代码 - hiding an element on click of anything else on the page
$(document).click(function(e) { var target = e.target; if (!$(target).is('#menu') && !$(target).parents().is('#menu')) { $('#menu').hide(); }});
2014-04-26 15:02:59 627
原创 Mongodb
1http://wulijun.github.io/2012/12/10/mongodb-php-driver-connectiong-handling.html2http://rockmongo.com/wiki/configuration?lang=zh_cn
2014-04-25 15:17:57 606
原创 shell命令刷新indexer
转子:http://www.propellermind.com/magento-tips/magento-re-index-data-with-command-shell/Magento uses a lot of resources to re-index data from the Admin Panel. A good way to re-index data without usi
2014-04-25 10:09:23 1030
转载 CentOS-6.3安装使用MongoDB
安装说明系统环境:Centos-6.3安装软件:mongodb-linux-x86_64-2.2.2.tgz下载地址:http://www.mongodb.org/downloads安装机器:192.168.15.237上传位置:/usr/local/软件安装位置:/usr/local/mongodb数据存放位置:/var/mongodb/data日志存放位置:/v
2014-04-23 11:49:58 616
转载 linux 下编译安装php mongodb扩展
因此以下相应的路径需改变。服务器环境Cent OS 5.6 32位, php版本 5.2.17编译安装,安装路径/usr/local/php 首先下载最新的php mongodb扩展源码,源码可以在http://pecl.php.net/package/mongo下载到 wget http://pecl.php.net/get/mongo-1.2.0.tgz tar z
2014-04-23 11:48:40 607
原创 varnish 重新加载配置文件 不重启
varnishadmvcl.load reload01 /etc/varnish/include/header.vclvcl.use reload01
2014-04-22 19:08:55 1955
原创 root账号远程不能登录的解决方式
vim /etc/ssh/sshd_config#PermitRootLogin yes 去掉#service sshd restart
2014-04-22 09:30:22 1563
原创 varnish - Nexcessnet_Turpentine
1./usr/local/varnish/sbin/varnishd -p cli_buffer=16384 -p esi_syntax=0x2 -f /usr/local/varnish/etc/varnish/default.vcl -s file, ,256M -T 127.0.0.1:6082 -a :80pkill varnishd2/app/code
2014-04-21 15:09:12 824
原创 动态内容的缓存技术 CSI,SSI,ESI
CDN 中动态内容是不太好解决的,通常需要很麻烦的技术和方法来实现这些功能,比如我设计过一种动态缓存的方法,基于 session 栏接,然后根据热点来做动态缓存时间的控制.目前开放的实现 Cache 的技术主要有 CSI,SSI,ESI 之类几种.在一个动态网页中,内容不断更新和变化,但这并不意味不能缓存,其实还是有 90% 的内容都可以做到 CDN 中的.只要花点心思.但这些都对客户有更加高的
2014-04-18 17:42:55 733
原创 magento 更新 custom option 的data数据
private function getIdByOptionValue($size_array,$value){ foreach($size_array as $k=>$v){ if($value == $v){ return $k; } } return false; } public function getOptionData($product,$si
2014-04-07 17:43:40 1107
原创 magento 分类指定id插入,id存在更新 - create category by category id
private function updateCategory($category_array){ Mage::register('isSecureArea', 1); foreach($category_array as $category){ $id = $category->id; $parent_id = $category->parent_id; $name =
2014-04-03 14:26:17 906
转载 新建一个分类的api ,Create new magento Rest api to get category list in magento
First create basic module using http://www.silksoftware.com/magento-module-creator/ this and then you have to create following file and add this file in given path.Module path = app/code/local/R
2014-04-02 17:07:31 1054
原创 magento rest api 调用
/*** magento Api 身份验证 调用示例* Example of simple product POST using Admin account via Magento REST API. OAuth authorization is used*/$callbackUrl = "http://127.0.0.1/oauth_admin.php";// 回调页面 $tempor
2014-04-02 11:33:57 1415
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人