我试图在tomcat6中将Nexus作为战争运行。它部署,启动和初始化,并且不会在日志中显示任何错误,但会导致从Apache转发到tomcat。Nexus杀死从Apache转发到tomcat
我们正在使用libapache2-mod-jk
,这应该被正确配置。哈德森也作为一场战争而跑,并且不再工作。如果我从tomcat中移除nexus,一切都可以正常工作。
我发现的错误是/var/log/apache2/mod_jk.log
:
[error] ajp_send_request::jk_ajp_common.c (1630): (ajp13_worker) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111)
配置看起来像这样/etc/libapache2-mod-jk/workers.properties
#------ worker list ------------------------------------------
#---------------------------------------------------------------------
#
#
# The workers that your plugins should create and work with
#
worker.list=ajp13_worker
#
#------ ajp13_worker WORKER DEFINITION ------------------------------
#---------------------------------------------------------------------
#
#
# Defining a worker named ajp13_worker and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp13_worker.port=8009
worker.ajp13_worker.host=localhost
worker.ajp13_worker.type=ajp13
#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
# ----> lbfactor must be > 0
# ----> Low lbfactor means less work done by the worker.
worker.ajp13_worker.lbfactor=1
#
# Specify the size of the open connection cache.
#worker.ajp13_worker.cachesize
#
#------ DEFAULT LOAD BALANCER WORKER DEFINITION ----------------------
#---------------------------------------------------------------------
#
#
# The loadbalancer (type lb) workers perform wighted round-robin
# load balancing with sticky sessions.
# Note:
# ----> If a worker dies, the load balancer will check its state
# once in a while. Until then all work is redirected to peer
# workers.
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=ajp13_worker
而且在/etc/apache2/sites-available/default-ssl
######## Tomcat
JkMount /agilefant/* ajp13_worker
JkMount /hudson/* ajp13_worker
JKMount /nexus/* ajp13_worker
任何想法?
此问题似乎属于Stack Exchange网络中的其他站点,因为它不涉及编程。也许[超级用户](https://www.superuser.com/)或[服务器故障](http://serverfault.com/)。 – jww