首页 > 编程学习 > Nutz:单机负载均衡或启动多实例注意事项
2014五月16

Nutz:单机负载均衡或启动多实例注意事项

1、上传文件的文件池路径问题

upload.js

filePool : {
type : “cn.xuetang.common.file.FilePool”,
args : [“/temp/”, 2000]
}

将路径改到项目的路径下

public class FilePool extends NutFilePool {

public FilePool(String homePath, long size) {
super(webinfPath(homePath), size);
}

private static final String webinfPath(String str) {
return Mvcs.getServletContext().getRealPath(“/WEB-INF”)+str;
}

}

2、Nutz大字段缓存的问题

.nutz/tmp/dao

将 org.nutz.dao.jdbc.nutz_jdbc_experts.js 拷贝到项目类路径下,修改相应的配置,文件夹不冲突即可。

Loading

本文地址:https://wizzer.cn/archives/2972 , 转载请保留.

本文目前尚无任何评论.

发表评论