- 博客(37)
- 资源 (20)
- 收藏
- 关注
原创 MAGENTO安装提示错误Database server does not support the InnoDB storage engine - 让Magento1.7.0.2支持Mysql5.6
my.cnf中找到如下的代码:skip-innodb修改为如下:#skip-innodb如果已经注释掉了,看下你的mysql版本,因为Mysql 5.6.1版本已经已经丢弃了“have_innodb”这个函数.而Magento1.7.0.2以下,都是使用该函数检测Mysql是否激活了InnodB引擎。So,我们只需要修改修改安装的代码。就能正常安装Magento了:)首
2014-02-28 07:04:26 2857
原创 手动 4- linux配置varnish
安装varnish:1.安装环境,其他软件,varnish需要这些软件的支持。yum install -y automake autoconf libtool ncurses-devel libxslt groff pcre-devel pkgconfig libedit*2.wget http://jaist.dl.sourceforge.net/project/pcre/
2014-02-27 20:10:02 1536
原创 手动 3- nginx - php 配置magento环境
1nginx配置magento的环境在启动nginx如果出现错误:nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)吧nginx的进程全部kill掉1.nginx.conf/var/log/nginx/error.log2.default.confserver_nam
2014-02-27 17:32:39 1199
原创 手动 2- 安装nginx和php(配置) linux
先安装下面的组件: yum install ntp vim-enhanced gcc gcc-c++ gcc-g77 flex bison autoconf automake glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel libtool* zlib-devel libxml2-dev
2014-02-27 15:42:35 1038
原创 手动 1- linux 安装mysql5.6
第一步,先查看系统上有没有安装了旧版本的mysql ,用下面的命令rpm -qa | grep mysql如果有,用以下命令卸载rpm -e --nodeps 上步显示mysql名称安装编译mysql 需要的依赖包yum install libevent* libtool* autoconf* libstd* ncurse* bison* openssl*yu
2014-02-27 13:44:25 1099
原创 安装lnmp nginx php mysql环境 -magento
1.首先更新环境yum update2.安装yum install ntp vim-enhanced gcc gcc-c++ gcc-g77 flex bison autoconf automake glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel libtool* zlib-d
2014-02-26 21:38:06 1135
转载 安装nginx
转载地址:http://www.server110.com/nginx/201311/3269.htmlUbuntu下安装nginx,直接apt-get installnginx就行了,很方便。但是今天装了CentOS6.3,直接yum installnginx不行,要先处理下源,下面是安装完整流程,也十分简单:1,我的是CentOS 6,先执行:rpm-ivh htt
2014-02-26 21:09:56 699
原创 CentOS 6.4永久关闭SELinux
[root@lujie ~]# vim /etc/sysconfig/selinux# This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:# enforcing - SELinux security policy
2014-02-25 09:33:38 1423
转载 centos 6.4 下的lnmp 生产环境搭建及安装脚本
centos 6.4 下的lnmp 生产环境搭建及安装脚本近期公司打算从lamp 更换到lnmp 平台,所以研究了一下lnmp的安装。将这个整理成了一个脚本.后面会附带给大家的,脚本写的很烂,基本没有什么判断,希望大家能够谅解.可以提出意见 我尽力改正。软件版本:12345678910111213
2014-02-25 08:36:00 741
原创 谷歌获取货币汇率代码
<?phpfunction currency($from_Currency,$to_Currency,$amount) { $amount = urlencode($amount); $from_Currency = urlencode($from_Currency); $to_Currency = urlencode($to_Currency); $get = file_get
2014-02-24 10:59:14 4090
原创 magento rest api 火狐测试工具
下载地址:https://addons.mozilla.org/zh-cn/firefox/addon/restclient/
2014-02-22 17:00:26 1068
原创 magento rest api get Token key and secret
ini_set('memory_limit','1000M');require 'app/Mage.php';if (!Mage::isInstalled()) { echo "Application is not installed yet, please complete install wizard first."; exit;}// On
2014-02-22 16:54:07 1489
原创 magento rest api 调用!
1 $apiUrl = 'http://121.199.39.117/api/rest'; $consumerKey = '72af70cc284ffda1abe13098a392c3e8'; $consumerSecret = '78b7efbabeb12bfe0f669e69ab24bf27';
2014-02-22 15:12:34 2928 2
原创 在线生成magento插件包
http://www.silksoftware.com/magento-module-creator/#.UwgfGIVzd5s
2014-02-22 11:52:51 1111
原创 magento rest api 调用
1.需要在magento后台设置:参看文章:http://inchoo.net/ecommerce/magento/configure-magento-rest-and-oauth-settings/2设置好后,需要在服务器做重写规则apache:在htaccess文件中加入:RewriteRule ^api/rest api.php?type=rest [QSA,L]
2014-02-22 10:21:41 2586
原创 nginx 升级成 tengine 的代码
wget http://code.mf8.biz/wdcp/tengine_up.shsh tengine_up.sh升级成功后,会报错:Starting php-fpm Cannot load Zend Extension Manager - it was built with configuration 1.2.0, whereas running engine is API22009
2014-02-21 23:19:16 1538
原创 代替nginx的服务器 - The Tengine Web Server
Tengine是由淘宝网发起的Web服务器项目。它在Nginx的基础上,针对大访问量网站的需求,添加了很多高级功能和特性。
2014-02-21 22:44:38 2010
原创 php oauth 模块在linux下安装
wget http://pecl.php.net/get/oauth-1.1.0.tgztar -zxf oauth-1.1.0.tgz && cd oauth-1.1.0/www/wdlinux/nginx_php-5.3.27/bin/phpize./configure --with-php-config=/www/wdlinux/nginx_php-5.3.27/bin/php-con
2014-02-21 16:13:55 1398
原创 转自:inchoo.net - magento add order (create order , 增加订单)
Programmatically create order in Magento24th OCT 2010 | Posted by Branko Ajzelein Magento, Orders, Programming Surprisingly one of the trickiest parts of “under the hood” Magento is
2014-02-21 10:05:37 1033
原创 magento soap api 调用
1如果在后台设置magento的api账户,可以参看文章:http://www.sunzhenghua.com/magento-soap-api-v1-v2-config2设置好了权限和账户,就可以调用了如果您这个账户是用来拉订单信息的,那么在权限里面吧sale order部分勾选上调用的代码:$client = new SoapClient('http://magen
2014-02-20 16:51:37 1579 1
原创 magento facebook 账号登陆
http://inchoo.net/ecommerce/magento/social-connect-magento-extension/
2014-02-20 15:13:50 1210
原创 用谷歌账号登陆magento、
http://inchoo.net/ecommerce/magento/google-connect-magento-extension/
2014-02-20 09:41:18 875
原创 magento数据库清除 log
magento本身会记录很多日志,这些日志长年累积会占用非常大的空间。下面是一些日志表 ’dataflow_batch_export’, ’dataflow_batch_import’, ’log_customer’, ’log_quote’, ’log_summary’, ’log_summary_type’, ’log_url’, ’log_url_in
2014-02-19 15:38:09 1332
原创 magento - 表单提交 插件 WebForms: Community Edition
http://www.magentocommerce.com/magento-connect/webforms-community-edition.htmlkey : http://connect20.magentocommerce.com/community/WebForms
2014-02-19 15:03:18 820
原创 Redis和Memcache对比及选择
没有必要过多的关注性能。由于Redis只使用单核,而Memcached可以使用多核,所以在比较上,平均每一个核上Redis在存储小数据时比Memcached性能更高。而在100k以上的数据中,Memcached性能要高于Redis,虽然Redis最近也在存储大数据的性能上进行优化,但是比起Memcached,还是稍有逊色。说了这么多,结论是,无论你使用哪一个,每秒处理请求的次数都不会成为瓶颈。
2014-02-19 11:59:18 912
转载 一个很不错的bash脚本编写教程,至少没接触过BASH的也能看懂!
一个很不错的bash脚本编写教程,至少没接触过BASH的也能看懂!建立一个脚本 Linux中有好多中不同的shell,但是通常我们使用bash (bourne again shell) 进行shell编程,因为bash是免费的并且很容易使用。所以在本文中笔者所提供的脚本都是使用bash(但是在大多数情况下,这些脚本同样可以在 bash的大姐,bourne shell中运行)。
2014-02-19 09:46:23 1274 1
原创 magento - 通过storeid,分类id,天数(几天内)得到产品
//通过 $storeId,分类id,几天之前的数据。 返回 $products public function getBestsellingProducts($storeId,$category_id,$days) { $productCount = 4; $today = time(); $last = $toda
2014-02-17 16:27:29 1023
转载 关于mysql升级到5.5报错问题
关于mysql升级到5.5报错问题升级命令wget http://down.wdlinux.cn/in/mysql_up55.shsh mysql_up55.sh安装日志错误部分Shutting down MySQL. SUCCESS! scripts/mysql_install_db.sh: line 325: @HOSTNAME@: command
2014-02-15 09:45:42 1359
原创 wdlinux lanmp mysql 升级到5.5
wget http://down.wdlinux.cn/in/mysql_up55.shsh mysql_up55.sh
2014-02-15 09:11:47 697
原创 wdlinux
http://www.wdlinux.cn/bbs/thread-6292-1-1.htmlhttp://www.wdlinux.cn/bbs/thread-1356-1-1.html
2014-02-15 08:51:54 625
原创 13linux script - shell script 例子
1.while 的例子新建文件 shtest.sh #!/bin/bashi=0s=0while [ "$i" != "100" ]do i=$(($i+1)) s=$(($s+$i))doneecho "1+2+...+100=$s" ss="$1" #$1代表sh shtest.sh dd 这个命令中的ddfor tt
2014-02-13 09:44:49 503
原创 erp -ebay 添加一个网店
加一个新的店的步骤:1:找到,Zqy_Ebayemail_Model_Ebay_Ebayapikeys1.1下面的方法中加入店名,这个是随便起的,这里起的是COMEBUYpublic function getEbayStoreName(){ return array("COMEBUY"); }1.2public funct
2014-02-11 17:35:39 1403
原创 Linxu 10 - vim 程序编辑器
vim 程序编辑器vi与vim在linux中用文本编辑器编辑你的linux参数配置文件时一件重要的事情,绝大多数的文件都在我们这里生成,你可以在这里看到文件,为什么要学习vi编辑器:所有的UNIX Like系统都会内置vi文本编辑器,其他的文本编辑器则不一定会存在很多软件的编辑接口都会主动调用vi,(例如后面会谈到的crontab,visudo,edquota等命令)
2014-02-10 22:08:37 477
原创 11.Linux - Bash shell
Linux - Bash1bash Bourne Again SHell 是一个shell2shell:命令行界面shell远程管理:命令行shell界面比较快Linux的任督二脉:shell检查一下/etc/shells这个文件,我们发现有很多可以用的shell/bin/sh(已经被/bin/bash所替代)/bin/bash(Linux默认的shell)
2014-02-07 22:14:29 672
原创 ebay api 对接
沙盒测试对于以下参数的获取1注册账户参看:http://blog.csdn.net/terry_water/article/details/185977532登录账户后,访问:https://developer.ebay.com/DevZone/build-test/test-tool/进入开发测试页面这个页面会给与下面的所有参数3获取数据文件,使用的是xm
2014-02-07 10:29:12 5002 1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人