- 博客(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 736
原创 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 808
转载 点击不在这个区域部分,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 610
原创 Mongodb
1 http://wulijun.github.io/2012/12/10/mongodb-php-driver-connectiong-handling.html 2 http://rockmongo.com/wiki/configuration?lang=zh_cn
2014-04-25 15:17:57 603
原创 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 1016
转载 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 610
转载 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 592
原创 varnish 重新加载配置文件 不重启
varnishadm vcl.load reload01 /etc/varnish/include/header.vcl vcl.use reload01
2014-04-22 19:08:55 1933
原创 root账号远程不能登录的解决方式
vim /etc/ssh/sshd_config #PermitRootLogin yes 去掉# service sshd restart
2014-04-22 09:30:22 1508
原创 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 :80 pkill varnishd 2 /app/code
2014-04-21 15:09:12 803
原创 动态内容的缓存技术 CSI,SSI,ESI
CDN 中动态内容是不太好解决的,通常需要很麻烦的技术和方法来实现这些功能,比如我设计过一种动态缓存的方法,基于 session 栏接,然后根据热点来做动态缓存时间的控制.目前开放的实现 Cache 的技术主要有 CSI,SSI,ESI 之类几种.在一个动态网页中,内容不断更新和变化,但这并不意味不能缓存,其实还是有 90% 的内容都可以做到 CDN 中的.只要花点心思.但这些都对客户有更加高的
2014-04-18 17:42:55 720
原创 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 1094
原创 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 869
转载 新建一个分类的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 1041
原创 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 1378
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人