自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Terry - 专注外贸B2C

GitHub地址:https://github.com/fancyecommerce

  • 博客(20)
  • 资源 (20)
  • 收藏
  • 关注

原创 二级域名跨域session共享, yii2

转载地址:http://www.cnblogs.com/linzhenjie/archive/2013/01/23/2872541.html1.利用COOKIE存放session_id();实例:域名一文件php代码:phpsession_start();setcookie("session_id",session_id(),time()+3600*24

2015-10-30 17:33:55 3708

转载 nodeJs get post

var request = require('request'); // Set the headersvar headers = { 'User-Agent': 'Super Agent/0.0.1', 'Content-Type': 'application/x-www-form-urlencoded'} // Configure the req

2015-10-26 18:20:04 585

原创 npm 安装module

npm install querystring --save

2015-10-26 18:05:28 2341

转载 Simple example - Node.js, Restify, MongoDb and Mongoose

https://cdnjs.com/libraries/backbone.js/tutorials/nodejs-restify-mongodb-mongoose

2015-10-26 17:48:42 625

原创 nodejs 安装 使用

1.安装: (https://nodejs.org/en/download/package-manager/)curl --silent --location https://rpm.nodesource.com/setup | bash -yum install gcc-c++ makeyum -y install nodejs2.查看安装是否成功node -vv0

2015-10-26 17:06:51 499

转载 Creating a basic site with Node.js and Express

地址:http://shapeshed.com/creating-a-basic-site-with-node-and-express/

2015-10-26 16:50:01 311

原创 nodejs 安装 linux

1.Run as root on RHEL, CentOS or Fedora:curl --silent --location https://rpm.nodesource.com/setup | bash -Then install, as root:yum -y install nodejs

2015-10-26 15:35:56 314

转载 从零开始nodejs系列文章

地址:http://blog.fens.me/series-nodejs/从零开始nodejs系列文章,将介绍如何利Javascript做为服务端脚本,通过Nodejs框架web开发。Nodejs框架是基于V8的引擎,是目前速度最快的Javascript引擎。chrome浏览器就基于V8,同时打开20-30个网页都很流畅。Nodejs标准的web开发框架Express,可以帮助我们迅速

2015-10-26 15:20:07 361

转载 NodeJs

转载地址:http://www.admin10000.com/document/4624.html 从零开始nodejs系列文章, 将介绍如何利Javascript做为服务端脚本,通过Nodejs框架web开发。Nodejs框架是基于V8的引擎,是目前速度最快的 Javascript引擎。chrome浏览器就基于V8,同时打开20-30个网页都很流畅。Nodejs标准的web开

2015-10-26 15:18:38 514

原创 linux 检查并锁定可疑用户,然后T下线

在发现服务器被遭受攻击后,首先切断网络连接,但是如果是外网服务器,无法马上切断,必须登录系统查看是否有可疑用户1.登录系统查看可疑用户通过root登录,执行w命令,即可列出所有登录过系统的用户[root@erp ~]# w 09:32:57 up 17 days, 18:19, 1 user, load average: 0.00, 0.00, 0.00USER TTY

2015-10-26 09:43:02 2134

转载 配置centos的静态ip 以及网关 Configure Static IP Address in CentOS

转载地址:http://www.mustbegeek.com/configure-static-ip-address-in-centos/The following steps will show configuration of static IP address in CentOS machine.Files needed for network confi

2015-10-22 11:15:06 1106

原创 casperJs input 赋值 点击 提交

参考资料:http://casperjs.readthedocs.org/en/latest/modules/casper.html#sendkeyscasper.then(function() { this.sendKeys('form.contact input#name', 'Duke'); this.sendKeys('form.contact textarea#mes

2015-10-22 09:58:27 1902

原创 用casperJs phantomJs php 抓取17track订单状态的例子

php部分:$tracking_number = '148922055008809'; putenv("PHANTOMJS_EXECUTABLE=/usr/local/bin/phantomjs"); $result = shell_exec("casperjs /test/tt.js --tracking_number=".$tracking_number); echo $res

2015-10-20 15:46:48 3107

原创 casperJs 获取结果值

1.在casper 的then后,如果需要获取某个地方的值,需要casp.then(function () { 'use strict'; var city_name = casp.evaluate(function() { return document.querySelector(".packagestate--10").innerHTML; }); this.e

2015-10-20 15:39:11 1116

原创 No such file or directory; did you install phantomjs? php shell_exec报错的解决

在php中使用shell_exec执行casper命令,获取对应的值,发现报错:No such file or directory; did you install phantomjs?需要在php的执行前加入这么一段代码:putenv("PHANTOMJS_EXECUTABLE=/usr/local/bin/phantomjs");$result = shell_exec("casperj

2015-10-20 15:36:36 2014

原创 casper.js logon amazon

var LOGIN_URL, LOGIN_USERNAME, LOGIN_PASSWORD, casp;casp = require('casper').create({ viewportSize: { width: 1024, height: 768 }, verbose: true, logLevel: 'wa

2015-10-14 14:33:01 1014

原创 安装 casperjs

wget https://phantomjs.googlecode.com/files/phantomjs-1.9.1-linux-x86_64.tar.bz2bunzip2 phantomjs-1.9.1-linux-x86_64.tar.bz2 tar xf phantomjs-1.9.1-linux-x86_64.tar mv phantomjs-1.9.1-linux-x86_64/

2015-10-14 14:31:47 725

原创 phantomjs 的安装和使用

1. phantomjs的安装步骤参考:http://sameerhalai.com/blog/how-to-install-phantomjs-on-a-centos-server/yum install freetypeyum install fontconfigcurl -O https://phantomjs.googlecode.com/files/phantomjs

2015-10-09 15:47:03 14442

转载 手把手教程: CentOS 6.5 LVS + KeepAlived 搭建 负载均衡 高可用 集群

转载地址:http://blog.csdn.net/tengyuantuohai/article/details/19639671

2015-10-08 10:49:02 684

原创 Keepalived 安装 配置

1.网站: http://www.keepalived.org/ 下载最新版本2.tar zxvf keepalived-1.2.19.tar.gzcd keepalived-1.2.19./configuremake && make installcp /usr/local/etc/rc.d/init.d/keepalived /etc/rc.d/init.d/

2015-10-06 14:08:42 439

magento -redis 插件安装包

magento -redis 安装包

2014-10-20

redis magento

redis magento

2014-07-30

nagios下载的文件安装包

nagios下载的文件安装包

2014-07-21

nagios下载包

nagios下载包

2014-07-21

客客英文语言包

客客英文语言包

2014-07-01

magento footer no cache,不缓存页面底部footer部分

magento footer no cache,不缓存页面底部footer部分

2014-03-25

varnish已经修补1.8bug

varnish已经修补1.8bug

2014-02-28

magento环境检测

magento环境检测

2014-02-28

nginx和php和varnish配置

nginx和php和varnish配置

2014-02-28

php版本为:559

php-5-5-9  php版本为:559

2014-02-28

libmcrypt-2.5.7.tar.gz

libmcrypt-2.5.7.tar.gz

2014-02-28

mysql资源5-6

mysql-5.6.14.tar

2014-02-28

varnish-magento

varnish-magento

2014-02-28

linux-varnish配置

linux-varnish配置

2014-02-27

nginx_php_magento配置文件

nginx_php_magento配置文件

2014-02-27

nginx配置文件-magent

nginx配置文件-magent

2014-02-26

gvim资源,windows

gvim资源,windows

2014-01-11

ASchroder_SMTPPro

ASchroder_SMTPPro

2013-12-28

magento+redis下载

magento+redis的下载文件,magento+redis的下载文件

2013-12-27

bacula的配置文件

bacula的配置文件

2013-12-18

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除