Install Apache + Tomcat (Apr, APR-util) and JK in Linux

Source: Internet
Author: User
Tags install openssl
Software: apache-tomcat-6.0.24.tar.gz
Httpd-2.2.14.tar.gz
Jdk-6u18-linux-x64.bin
Tomcat-connectors-1.2.28-src.tar.gz tar-zxf httpd-2.2.14.tar.gzapr Installation
CD httpd-2.2.14/srclib/Apr. /configure -- prefix =/usr/local/HTTP/aprmake & make install Apr-util install CD .. /APR-util /. /configure -- prefix =/usr/local/HTTP/APR-util -- With-Apr =/usr/local/HTTP/APR/make & make install Apache installation. /configure -- prefix =/usr/local/HTTP/-- With-Apr =/usr/local/HTTP/APR -- With-Apr-util =/usr/local/HTTP/APR -util/-- With-MPM = worker -- enable-Cache -- enable-file-Cache -- enable-disk-Cache -- enable-HTTP -- enable-Mem-Cache -- enable-mime- magic -- enable-headers -- enable-SSL
-- Enable-CGI -- enable-Rewrite -- enable-so -- With-suexec-gidmin -- With-suexec-logfilemake & make installconfigure may cause the following error: No OpenSSL headers found
Checking for SSL-C version... checking sslc. h usability... no
Checking sslc. h presence... no
Checking for sslc. H... no
No SSL-C headers found
Configure: Error :... no recognized SSL/TLS toolkit detected install OpenSSL # Yum-y install OpenSSL-develjdk first. /jdk-6u18-linux-x64.bin tomcat installation tar-zxf apache-tomcat-6.0.24.tar.gzmv APACHE-Tomcat-6.0.24 tomcat configuration environment variable echo "Export java_home =/usr/local/jdk1.6.0 _ 18">/etc/profile
Echo "Export Path = $ path: $ java_home/bin">/etc/profile
Echo "Export classpath =.: $ java_home/JRE/lib: $ java_home/lib/tools. Jar">/etc/profile
Echo "Export tomcat_home =/usr/local/tomcat">/etc/profile
Echo "Export catalina_home =/usr/local/tomcat">/etc/profile
Echo "Export classpath = $ classpath: $ catalina_home/common/lib">/etc/profile mod_jk.so compile tar-zxf tomcat-connectors-1.2.28-src.tar.gz. /configure -- With-apxs =/usr/local/HTTP/bin/apxsmakecp APACHE-2.0/mod_jk.so/usr/local/HTTP/modules/CD/usr/local/HTTP/confecho"
Jklogstampformat \ "[% A % B % d % H: % m: % S % Y] \"
Jkoptions + forwardkeysize + forwarduricompat-forwarddirectories
Jkrequestlogformat \ "% w % v % t \"
Jkmount/* Servlet/* ajp13
Jkmount/*. jsp ajp13
Jkmount/*. Do ajp13
Jkmount/*. Action ajp13 "> mod_jk.conf echo" workers. tomcat_home =/usr/local/tomcat/
Workers. java_home =/usr/local/jdk1.6.0 _ 18
Worker. List = ajp13
Worker. ajp13.port = 8009
Worker. ajp13.host = localhost
Worker. ajp13.type = ajp13
Worker. ajp13.lbfactor = 1 "> workers. properties echo" loadmodule jk_module modules/mod_jk.so
Include/usr/local/HTTP/CONF/mod_jk.conf
Jkworkersfile CONF/workers. Properties
Jklogfile logs/mod_jk.log
Jkshmfile logs/mod_jk.shm
Jkloglevel Info "> httpd. conf

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.