SamWang 发表于 2013-2-7 12:09:14

在CentOS上集成apache和tomcat

 
1. install httpd 
2. install tomcate
3. download mod_jk
4. config it
    on centos u need install libtool and apxs
 
sudo yum install httpd-develsudo yum install libtool 5. 
 cd PATH_TO_JK/jk/native./buildconf.sh   ./config --with-apxs=/usr/sbin/apxs   make   cd apache2.0   cp mod_jk.so /ect/httpd/modules/ 6. configuring apache and tomcate
 
            touch /etc/httpd/workers.properties    workers.tomcat_home=/usr/lib/apache-tomcatworkers.java_home=/usr/lib/jdkps=/worker.list=worker1worker.default.port=8009worker.default.host=localhostworker.default.type=ajp13worker.default.lbfactor=1    7. Now we need to open the /etc/httpd/httpd.conf file and add the following lines at the bottom   
 
  LoadModule jk_module modules/mod_jk.so# Where to find workers.propertiesJkWorkersFile /etc/httpd/workers.properties# Where to put jk logsJkLogFile logs/mod_jk.log# Set the jk log level JkLogLevel info# Select the log formatJkLogStampFormat "[%a %b %d %H:%M:%S %Y] "# JkOptions indicate to send SSL KEY SIZE,JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories# JkRequestLogFormat set the request formatJkRequestLogFormat "%w %V %T"# Send servlet for context /your-context to worker named worker1JkMount /jsp-examples worker1# Send JSPs for context /your-context/* to worker named worker1JkMount /your-context/* worker1
页: [1]
查看完整版本: 在CentOS上集成apache和tomcat