- 博客(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 3757
转载 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 598
转载 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 640
原创 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 504
转载 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 334
原创 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 322
转载 从零开始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 372
转载 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 527
原创 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 2162
转载 配置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 1133
原创 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 1934
原创 用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 3134
原创 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 1133
原创 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 2048
原创 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 1027
原创 安装 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 754
原创 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 14482
转载 手把手教程: CentOS 6.5 LVS + KeepAlived 搭建 负载均衡 高可用 集群
转载地址:http://blog.csdn.net/tengyuantuohai/article/details/19639671
2015-10-08 10:49:02 696
原创 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 444
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人