Install Tomcat5:
The easy way is yum install tomcat5 tomcat5-webapps
Testing:
netstat -ntlp <-----------Check the default 8080 port is ready
http://localhost:8080/ <------Test the url
If you don't wanna join tomcat to apache2 you can stop here.
Join Tomcat to Apache2
There are several ways to join tomcat to apache2
jk (mod_jk)
http_proxy (mod_proxy)
proxy_ajp (mod_proxy_ajp)
Now I use the easiest way - ajp_proxy:
vi /etc/httpd/conf.d/proxy_ajp.conf
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
ProxyPass /tomcat/ ajp://localhost:8009/
Double check the proxy_ajp.conf have included in httpd.conf
restart httpd and test with url "http://localhost/tomcat/"
No comments:
Post a Comment