Integration of apache and tomcat

Source: Internet
Author: User

Integration of apache and tomcat
Required Software Package: httpd-2.2.21.tar.gz tomcat-connectors-1.2.32-src.tar.gz jdk-7-linux-x64.rpm apache-tomcat-7.0.23.tar.gz first install gcc to do the environment before compilation ..
Www.2cto.com first rpm-ivh jdk-7-linux-x64.rpm after installation is complete create a connection ln-s/usr/java/jdk1.7.0 // usr/jdk compile apachetar zxvf httpd-2.2.21.tar.gz-C/usr/local/src/cd /usr/local/src/httpd-2.2.21 /. /configure -- prefix =/usr/local/apache2 -- enable-so -- enable-rewrite -- enable-proxy-ajpmake & make your tar zxvf tomcat-connectors-1.2.32-src.tar.gz-C/usr /local/src/cd/usr/local/src/tomcat-connectors-1.2.32-src/cd native /. /configure -- with-apxs =/usr/local/apache2/bin/apxsmake & make installdecompress apache-tomcat-7.0.23.tar.gz tar zxvf apache-tomcat-7.0.23.tar.gz-C/usr/local/src/cd/usr/local/src /apache-tomcat-7.0.23/vim-o startup. sh shutdown. sh Add: export JAVA_HOME =/usr/jdk to the start and close files respectively, and then create a folder named jspcd in tomcat webapss to vim index in jsp. jsp open add <% = new java. util. date () %> modify the tomcat configuration file vim/usr/local/src/apache-tomcat-7.0.23/conf/server. modify the following content in xml: cd/usr/local/apache2/htdocsmkdir wwwecho "111111111111111"> index.html cd/usr/local/apache2/confvim httpd. conf: Modify Directoryindex. jsp index.html add include conf/extra/httpd-vhost.confinclude conf/extra/httpd-jk.confcd extravim httpd-vhost.confvim httpd-jk.conf vim workers. properties restart apache tomcat test:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.