本文介绍了Centos下随着Plesk11.x的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用的Centos使用Plesk 11.x的和这个职位How获得Apache的mod_jk连接为RHL?帮我安装MOD-JK但接下来会发生什么。我的意思是我怎么能在Tomcat中集成它作为安装是不够的,把它。
I am using Centos with Plesk 11.x and this post How to obtain Apache mod_jk connector for for RHL? helped me to install mod-jk but what's next. I mean how can I integrate it with Tomcat as installation is not enough to bring it up.
时有人能帮助我吗?
问候
推荐答案
安装后,您需要:
- 创建workers.properties文件
- MOD-JK配置文件
- 变化CATALINA_HOME / conf / server.xml文件
- 设置域名的conf / vhost.conf
- 在Plesk中的情况下,httpdmng的重构
下面怎么做这些:
# 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">
让我知道,如果你面对任何问题。
Let me know if you face any problem
问候
这篇关于Centos下随着Plesk11.x的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!