[root@FreeBSD~] $ pkg_info apache-2.2.3 Version 2.2 of Apache web server with prefork MPM. bash-3.1.17 The GNU Project's Bourne Again SHell cvsup-without-gui-16.1h_2 General network file distribution system optimized for CVS diablo-jdk-1.5.0.07.01 Java Development Kit 1.5.0_07.01 expat-2.0.0_1 XML 1.0 parser written in C fontconfig-2.3.2_6,1 An XML-based font configuration API for X Windows freetype2-2.2.1_1 A free and portable TrueType font rendering engine gettext-0.14.5_2 GNU gettext package gmake-3.81_1 GNU version of 'make' utility javavmwrapper-2.3 Wrapper script for various Java Virtual Machines libdrm-2.0.2 Userspace interface to kernel Direct Rendering Module servi libiconv-1.9.2_2 A character set conversion library mod_jk-ap2-1.2.21,1 Apache JK module for connecting to Tomcat using AJP1X perl-5.8.8 Practical Extraction and Report Language pkg-config-0.21 A utility to retrieve information about installed libraries tomcat-5.5.23 Open-source Java web server by Apache, 5.5.x branch xorg-libraries-6.9.0 X11 libraries and headers from X.Org
第五步:Apache Web Server 与 Tomcat 的整合 5.1 必备的组件mod_jk的安装
[root@FreeBSD/usr/ports/www/mod_jk] $ make ===> Vulnerability check disabled, database not found => tomcat-connectors-1.2.21-src.tar.gz doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch from http://www.apache.org/dist/tomcat/tomcat-connectors/jk/source/jk-1.2.21/. => Attempting to fetch from http://www.apache.org/dist/tomcat/tomcat-connectors/jk/source/jk-1.2.21/. tomcat-connectors-1.2.21-src.tar.gz 100% of 1303 kB 27 kBps 00m00s ===> Extracting for mod_jk-ap2-1.2.21,1 => MD5 Checksum OK for tomcat-connectors-1.2.21-src.tar.gz. => SHA256 Checksum OK for tomcat-connectors-1.2.21-src.tar.gz. ===> Patching for mod_jk-ap2-1.2.21,1 ===> Applying FreeBSD patches for mod_jk-ap2-1.2.21,1 ===> mod_jk-ap2-1.2.21,1 depends on file: /usr/local/sbin/apxs - found ===> mod_jk-ap2-1.2.21,1 depends on executable in : gmake - found ===> mod_jk-ap2-1.2.21,1 depends on file: /usr/local/sbin/apxs - found ===> Configuring for mod_jk-ap2-1.2.21,1 ...省略 ... ...省略 ... ...省略 ... Making all in common gmake[1]: Entering directory `/usr/ports/www/mod_jk/work/tomcat-connectors-1.2.21-src/native/common' gmake[1]: Nothing to be done for `all'. gmake[1]: Leaving directory `/usr/ports/www/mod_jk/work/tomcat-connectors-1.2.21-src/native/common' Making all in apache-2.0 gmake[1]: Entering directory `/usr/ports/www/mod_jk/work/tomcat-connectors-1.2.21-src/native/apache-2.0' gmake[1]: Nothing to be done for `all'. gmake[1]: Leaving directory `/usr/ports/www/mod_jk/work/tomcat-connectors-1.2.21-src/native/apache-2.0'
[root@FreeBSD/usr/ports/www/mod_jk] $ make install