十五年测试老手,长期负责WEB\APP 项目测试,目前主要负责团队管理工作。

Install Tomcat connectors

上一篇 / 下一篇  2010-06-27 22:11:26 / 个人分类:配置

Download connectors

51Testing软件测试网bEBA+Ix&|ZU

Download the connectors source to your /install folder

!@^&guf8R051Testing软件测试网)W6hZ%~] d

e.g.

+yh,QPk1]0
cd /install
wget  http://www.apache.org/dist/tomcat/tomcat-connectors/jk/source/jk-1.2.19/tomcat-connectors-1.2.19-src.tar.gz
51Testing软件测试网 VM_j9P(@3u

Please note, you should download and use the latest version of the connectors.

B'ZW4AO Xve0

Unzip and untar the source 

unzip tomcat-connectors-1.2.19-src.tar.gz
tar xvf tomcat-connectors-1.2.19-src.tar
51Testing软件测试网8jE!Ek7nDd/r

This will create the folder tomcat-connectors-1.2.19-src. Enter this folder and examine the BUILD.txt file, it will contain the basic compilation instructions.n.b. if the compilers are not installed, you will get errors, you will need to install the appropriate compilers gcc etc.51Testing软件测试网N sszw}9Bo

cd tomcat-connectors-1.2.19-src
cat BUILD.txt
This is a source release of the mod_jk 1.2 web server connectorforTomcat. Only the web server connector source is included.  The Tomcat
side of the connector is available with the normal Tomcat distribution.

Documentationforhow to build mod_jk 1.2 from source and configure
itforyour webserver is located in thenative/BUILDING file inthissource distribution.

For the impatient Apache admins:
$> cdnative$> ./configure --with-apxs=/usr/sbin/apxs (or where ever the apxs/apxs2 is)
$> make
$> su -c 'make install'

0{4V1Gl&{T#I0The included BUILD.txt above details the actual installation instructions. For this Centos VMWare installation, as you are already root, these are:51Testing软件测试网w })w#UfE

cdnative./configure --with-apxs=/usr/sbin/apxs
make
make install
51Testing软件测试网Y`X2MI-@

This will compile the source code and install the libraries in the correct locations.

,P$A `*D]051Testing软件测试网G2~D?%^+V+T)S l

The end of the output from the last command, make install, should resemble this:

7p5U;j(}/jr2}3l W0
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/lib/httpd/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking anddoat least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared librariesformore information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
chmod 755 /usr/lib/httpd/modules/mod_jk.so

Please be sure to arrange /etc/httpd/conf/httpd.conf...

make[1]: Leaving directory `/install/tomcat-connectors-1.2.19-src/native/apache-2.0'
make[1]: Entering directory `/install/tomcat-connectors-1.2.19-src/native'
make[2]: Entering directory `/install/tomcat-connectors-1.2.19-src/native'
make[2]: Nothing to be donefor`install-exec-am'.
make[2]: Nothing to be donefor`install-data-am'.
make[2]: Leaving directory `/install/tomcat-connectors-1.2.19-src/native'
make[1]: Leaving directory `/install/tomcat-connectors-1.2.19-src/native'
 

TAG: Tomcat tomcat connectors

 

评分:0

我来说两句

Open Toolbar