当前位置:  技术问答>linux和unix

散分了。。。

    来源: 互联网  发布时间:2016-09-19

    本文导语:  我在RedHat上做Jboss集群(JDK 1.5.0.12,Jboss 4.0.5 GA,apache 2.2.4,apache mod_jk 1.2.23),有三台机器192.168.1.78(Jboss节点,节点名为: Node2,端口:8888),192.168.1.79(Jboss节点,节点名为:Node1,端口:8888),192.168.1.80(Apache服务器,...

我在RedHat上做Jboss集群(JDK 1.5.0.12,Jboss 4.0.5 GA,apache 2.2.4,apache mod_jk 1.2.23),有三台机器192.168.1.78(Jboss节点,节点名为: Node2,端口:8888),192.168.1.79(Jboss节点,节点名为:Node1,端口:8888),192.168.1.80(Apache服务器,端口:8080),现在各节点均启动成功,并且:http://192.168.1.(78/79):8888均成功出现Jboss的欢迎界面,Apache服务启动也成功,用netstat命令查看,有8080监听端口存在,但是输入:http://192.168.1.80:8080出现如下503错误:Service Temporarily Unavailable !

mod_jk.log内容如下:
[Sun Aug 15 13:06:30 2010][3346:30944] [info] init_jk::mod_jk.c (2743): mod_jk/1.2.23 initialized
[Sun Aug 15 13:06:30 2010][3347:30944] [info] init_jk::mod_jk.c (2743): mod_jk/1.2.23 initialized
[Sun Aug 15 13:12:15 2010][3348:30944] [info] ajp_connection_tcp_get_message::jk_ajp_common.c (945): (node1) Tomcat has forced a connection close for socket 13
[Sun Aug 15 13:12:15 2010][3348:30944] [error] ajp_get_reply::jk_ajp_common.c (1592): (node1) Tomcat is down or refused connection. No response has been sent to the client (yet)
[Sun Aug 15 13:12:15 2010][3348:30944] [info] ajp_service::jk_ajp_common.c (1902): (node1) receiving from tomcat failed, recoverable operation attempt=0
[Sun Aug 15 13:12:15 2010][3348:30944] [info] ajp_service::jk_ajp_common.c (1941): (node1) sending request to tomcat failed, recoverable operation attempt=1
[Sun Aug 15 13:12:35 2010][3348:30944] [info] ajp_connection_tcp_get_message::jk_ajp_common.c (945): (node1) Tomcat has forced a connection close for socket 13
[Sun Aug 15 13:12:35 2010][3348:30944] [error] ajp_get_reply::jk_ajp_common.c (1592): (node1) Tomcat is down or refused connection. No response has been sent to the client (yet)
[Sun Aug 15 13:12:35 2010][3348:30944] [info] ajp_service::jk_ajp_common.c (1902): (node1) receiving from tomcat failed, recoverable operation attempt=1
[Sun Aug 15 13:12:35 2010][3348:30944] [info] ajp_service::jk_ajp_common.c (1941): (node1) sending request to tomcat failed, recoverable operation attempt=2
[Sun Aug 15 13:12:35 2010][3348:30944] [error] ajp_service::jk_ajp_common.c (1953): (node1) Connecting to tomcat failed. Tomcat is probably not started or is listening on the wrong port
[Sun Aug 15 13:12:35 2010][3348:30944] [info] service::jk_lb_worker.c (1098): service failed, worker node1 is in error state
[Sun Aug 15 13:12:55 2010][3348:30944] [info] ajp_connection_tcp_get_message::jk_ajp_common.c (945): (node2) Tomcat has forced a connection close for socket 13
[Sun Aug 15 13:12:55 2010][3348:30944] [error] ajp_get_reply::jk_ajp_common.c (1592): (node2) Tomcat is down or refused connection. No response has been sent to the client (yet)
[Sun Aug 15 13:12:55 2010][3348:30944] [info] ajp_service::jk_ajp_common.c (1902): (node2) receiving from tomcat failed, recoverable operation attempt=0
[Sun Aug 15 13:12:55 2010][3348:30944] [info] ajp_service::jk_ajp_common.c (1941): (node2) sending request to tomcat failed, recoverable operation attempt=1
[Sun Aug 15 13:13:15 2010][3348:30944] [info] ajp_connection_tcp_get_message::jk_ajp_common.c (945): (node2) Tomcat has forced a connection close for socket 13
[Sun Aug 15 13:13:15 2010][3348:30944] [error] ajp_get_reply::jk_ajp_common.c (1592): (node2) Tomcat is down or refused connection. No response has been sent to the client (yet)
[Sun Aug 15 13:13:15 2010][3348:30944] [info] ajp_service::jk_ajp_common.c (1902): (node2) receiving from tomcat failed, recoverable operation attempt=1
[Sun Aug 15 13:13:15 2010][3348:30944] [info] ajp_service::jk_ajp_common.c (1941): (node2) sending request to tomcat failed, recoverable operation attempt=2
[Sun Aug 15 13:13:15 2010][3348:30944] [error] ajp_service::jk_ajp_common.c (1953): (node2) Connecting to tomcat failed. Tomcat is probably not started or is listening on the wrong port
[Sun Aug 15 13:13:15 2010][3348:30944] [info] service::jk_lb_worker.c (1098): service failed, worker node2 is in error state
[Sun Aug 15 13:13:15 2010][3348:30944] [info] service::jk_lb_worker.c (1160): All tomcat instances are busy or in error state
[Sun Aug 15 13:13:15 2010]loadbalancer 192.168.1.80 79.993839
[Sun Aug 15 13:13:15 2010][3348:30944] [info] jk_handler::mod_jk.c (2254): Service error=0 for worker=loadbalancer

Apache的连接数已改成如下:

  ServerLimit 2000
  StartServers 10
  MinSpareServers 5
  MaxSpareServers 10
  MaxClients 2000
  MaxRequestsPerChild 1000

请各位大虾指点一二。。。。谢谢了!

|
[Sun Aug 15 13:12:35 2010][3348:30944] [error] ajp_service::jk_ajp_common.c (1953): (node1) Connecting to tomcat failed. Tomcat is probably not started or is listening on the wrong port

肯定是哪儿的配置有点问题  再过一遍你的配置

|
看看是不是selinux关掉了。

|
selinux有时候会影响系统服务的正常使用。

getenforce命令查看当前selinux状态

setenforce 0命令设置暂时无效

彻底无效修改/etc/sysconfig/selinux文件
SELINUX=enforcing
改成
SELINUX=disabled

|
getenforce命令查看当前selinux状态

setenforce 0命令设置暂时无效

彻底无效修改/etc

    
 
 
 
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。














站内导航:


特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

©2012-2021,,E-mail:www_#163.com(请将#改为@)

浙ICP备11055608号-3