安装modjk:
sudo apt-get install libapache2-mod-jksudo a2enmod jk
创建worker.properties文件:
worker.list=tomcat,tstatusworker.tomcat.type=ajp13worker.tomcat.host=[TOMCAT-IP HERE]worker.tomcat.port=[TOMCAT-AJP-PORT HERE]#status information (optional)worker.tstatus.type=status
将此添加到httpd.conf:
JkWorkersFile /PATH-TO-YOUR-FILE/workers.propertiesJkLogFile /var/log/apache2/mod_jk.log JkShmFile /tmp/jk-runtime-statusJkLogLevel infoJkMount /YourJavaAppName tomcatJkMount /YourJavaAppName/* tomcatJkMount /modjkstatus tstatus
现在您应该可以访问:
http://YOUR-IP/wordpresshttp://YOUR-IP/YourJavaAppName (redirected)http://YOUR-IP/modjkstatus (redirected)



