0
我正在使用Centos與Plesk 11.x和這個職位How to obtain Apache mod_jk connector for for RHL?幫助我安裝mod-jk,但接下來會發生什麼。我的意思是我如何將它與Tomcat集成,因爲安裝不足以提供它。Centos與Plesk11.x
有人可以幫助我嗎?
問候
我正在使用Centos與Plesk 11.x和這個職位How to obtain Apache mod_jk connector for for RHL?幫助我安裝mod-jk,但接下來會發生什麼。我的意思是我如何將它與Tomcat集成,因爲安裝不足以提供它。Centos與Plesk11.x
有人可以幫助我嗎?
問候
安裝後,您需要:
這裏如何做這些:
# vi /etc/httpd/conf/workers.properties
worker.list=worker1
# Define Node1
worker.worker1.port=8009
worker.worker1.host=localhost
worker.worker1.type=ajp13
worker.worker1.lbfactor=1
#vi /etc/httpd/conf.d/mod_jk.conf
<IfModule !mod_jk.c>
LoadModule jk_module "/usr/lib64/httpd/modules/mod_jk.so"
</IfModule>
JkWorkersFile "/etc/httpd/conf/workers.properties"
JkLogFile "/var/log/httpd/mod_jk.log"
JkLogLevel info
#NameVirtualHost IP:7080
<VirtualHost yourServerIP:7080>
ServerName localhost
JkMount /manager worker1
JkMount /manager/* worker1
JkMount /docs worker1
JkMount /docs/* worker1
JkMount /examples worker1
JkMount /examples/* worker1
JkMount /host-manager worker1
JkMount /host-manager/* worker1
JkMount /servlet/* worker1
JkMount /*.jsp worker1
</VirtualHost>
# vi /var/www/vhosts/system/yourDomain.com/conf/vhost.conf
JkMount /servlet/* worker1
JkMount /*.jsp worker1
Then run:
/usr/local/psa/admin/sbin/httpdmng --reconfigure-domain yourDomain.com
mod_jk in $CATALINA_HOM/conf/ server.xml:
<!-- You should set jvmRoute to support load-balancing via AJP ie :
<Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
-->
change this with:
<Engine name="Catalina" defaultHost="localhost" jvmRoute="worker1">
讓我知道,如果你面對任何問題
問候
非常感謝你的100%的工作 – User12345678