- 浏览: 224070 次
- 性别:
- 来自: 西安
最新评论
-
三尺寒冰:
怎么实现排序的?分析一下
php mongodb 实现group 并按照某字段排序
文章列表
*.sh(后台执行)
c_time=$(date +%Y%m%d%H%%S)
nohup /home/admin/SetAmazonAndRakutenCategory/WebRoot/WEB-INF/bin/run_run.sh>/home/admin/SetAmazonAndRakutenCategory/WebRoot/WEB-INF/bin/output/log$c_time.out 2>&1 &
------------------
*_run.sh(控制台执行)
#!/bin/bash
cp=/home/admin/SetAmazonAndRakute ...
//linux定时执行脚本设置
0 4 * * 0 /data/tomcat6_1/webapps/ShopalStat/bin/WeekTaskRun.sh
crontab -l 查看当前定时
crontab -e 编辑
pgrep crond //状态
service crond status //状态
service crond stop //关闭服务
service crond restart //重启服务
service crond reload //重新载入配置
db.things.find()
{ "_id" : 1, "tags" : [ "dog", "cat" ] }
{ "_id" : 2, "tags" : [ "cat" ] }
{ "_id" : 3, "tags" : [ "mouse", "cat", "dog" ] }
m = function () {
this.tags.forEa ...
package sax;
import java.util.List;
import test.TestMain;
public class ListingModel {
private String id;
private String name;
private List<TextModel> textModelList;
private List<CouponModel> couponModelList;
...
}
------------
package sax;
public class TextModel {
private Stri ...
/**
* http远程请求,获取csv数据
* httpCsvZipPath:原网站zip路径
* localZipPath:下载到本地zip路径
* localUnZipPath:解压后unzip路径
*/
public static boolean httpInvokeGetFile(String httpCsvZipPath,String localZipPath){
File zipOutFile = null;
//zip文件输出路径
zipOutFile = getFilePath(localZipPath);
//http 获取远程url 内 ...
import java.util.LinkedList;
public class WorkQueue
{
private final int nThreads;
private final PoolWorker[] threads;//工作队列池,线程池
private final LinkedList queue;//任务列表
public WorkQueue(int nThreads)
{
this.nThreads = nThreads;
queue = new LinkedList();
...
package duisong;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Timer;
/**
* @author Administrator
*
*/
public class Server {
private int PORT = 9000;
private ServerSocket ss = null;
private Timer timer = new Timer();
public Server() {
...
1.js不能跨域访问,试想一下,如果非本域名下的能访问其他域名在localhost下设置的密码,这是多部安全的事情。
2.这是浏览器request的时候设置的本地信息,服务器端是不能干预的。
3.可以跨域设置cookie:(A域作为提供cookie方,B作为被设置方)
//在A域新建一文件:setCookie.jsp,此文件用来设置A域自己的Cookie。
Cookie cookie = new Cookie("userid", "44");
cookie.setDomain("testa.a.com");
respon ...