APACHE负载均衡弄了我好几个小时却是因为我没用ZIP版本的,散分!!!

xxgamexx 2009-01-23 04:16:55
很郁闷~~

网上那些贴子怎么那么重要的前提都不重点说明!!

弄了好几个小时~~~~~~~~~~~~~~


刚故意用了 6+8 看看CSDN如何处理,结果就变成0了
...全文
130 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
mengweilil 2009-02-11
  • 打赏
  • 举报
回复
以前配过apache的,感觉没啥难度啊
xxgamexx 2009-02-10
  • 打赏
  • 举报
回复
好久不来了~~
shlgsty 2009-01-26
  • 打赏
  • 举报
回复
xxgamexx 2009-01-24
  • 打赏
  • 举报
回复
To run session replication in your Tomcat 6.0 container, the following steps should be completed:

All your session attributes must implement java.io.Serializable
Uncomment the Cluster element in server.xml
If you have defined custom cluster valves, make sure you have the ReplicationValve defined as well under the Cluster element in server.xml
If your Tomcat instances are running on the same machine, make sure the tcpListenPort attribute is unique for each instance, in most cases Tomcat is smart enough to resolve this on it's own by autodetecting available ports in the range 4000-4100
Make sure your web.xml has the <distributable/> element or set at your <Context distributable="true" />
If you are using mod_jk, make sure that jvmRoute attribute is set at your Engine <Engine name="Catalina" jvmRoute="node01" > and that the jvmRoute attribute value matches your worker name in workers.properties
Make sure that all nodes have the same time and sync with NTP service!
Make sure that your loadbalancer is configured for sticky session mode.


提醒几个容易忽视的问题!如上
xxgamexx 2009-01-24
  • 打赏
  • 举报
回复
弄了这么久,写点经验!

apache mod_proxy 代理配置文档:http://httpd.apache.org/docs/2.2/mod/mod_proxy.html

tomcat6.0 保持session配置文档:http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html

注意一点的是:端口配置别冲突了~
sunwei_07 2009-01-24
  • 打赏
  • 举报
回复
不懂,JF
xxgamexx 2009-01-23
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 ustcfrank 的回复:]
这个和zip版什么关系吧?
[/Quote]

和设置环境变量有点关系~
老紫竹 2009-01-23
  • 打赏
  • 举报
回复
呵呵,是缺少了几个.o的支持类库。 服务版的默认没有那么全!
ustcfrank 2009-01-23
  • 打赏
  • 举报
回复
这个和zip版什么关系吧?
zou_wei_forever 2009-01-23
  • 打赏
  • 举报
回复
jf

23,404

社区成员

发帖
与我相关
我的任务
社区描述
Java 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧