wget http://mirrors.hust.edu.cn/apache//apr/apr-1.5.1.tar.gz
wget http://mirrors.hust.edu.cn/apache//apr/apr-util-1.5.3.tar.gz
mount /dev/cdrom /mnt/cdrom
cd /mnt/cdrom/Packages/
cp keyutils-libs-devel-1.4-4.el6.x86_64.rpm pkgconfig-0.23-9.1.el6.x86_64.rpm libsepol-devel-2.0.41-4.el6.x86_64.rpm libselinux-devel-2.0.94-5.3.el6_4.1.x86_64.rpm libcom_err-1.41.12-18.el6.x86_64.rpm libcom_err-devel-1.41.12-18.el6.x86_64.rpm krb5-devel-1.10.3-10.el6_4.6.x86_64.rpm openssl-1.0.1e-15.el6.x86_64.rpm zlib-1.2.3-29.el6.x86_64.rpm zlib-devel-1.2.3-29.el6.x86_64.rpm openssl-devel-1.0.1e-15.el6.x86_64.rpm /root/
cd
chmod 744 *.rpm
rpm -ivh libcom_err-1.41.12-18.el6.x86_64.rpm
rpm -ivh libcom_err-devel-1.41.12-18.el6.x86_64.rpm
rpm -ivh openssl-1.0.1e-15.el6.x86_64.rpm
rpm -ivh zlib-1.2.3-29.el6.x86_64.rpm
rpm -ivh keyutils-libs-devel-1.4-4.el6.x86_64.rpm
rpm -ivh libselinux-devel-2.0.94-5.3.el6_4.1.x86_64.rpm --nodeps --force
rpm -ivh openssl-devel-1.0.1e-15.el6.x86_64.rpm --nodeps --force
rpm -ivh zlib-devel-1.2.3-29.el6.x86_64.rpm
rpm -ivh krb5-devel-1.10.3-10.el6_4.6.x86_64.rpm
rpm -ivh libsepol-devel-2.0.41-4.el6.x86_64.rpm
rpm -ivh pkgconfig-0.23-9.1.el6.x86_64.rpm
yum -y install gcc
tar -zxvf apr-1.5.1.tar.gz
cd apr-1.5.1
vi configure
把RM=‘$RM‘改为RM=‘$RM -f‘
./configure
./configure --prefix=/usr/local/apr
make && make install
cd
tar zxvf apr-util-1.5.3.tar.gz
cd apr-util-1.5.3
./configure --with-apr=/usr/local/apr/
make && make install
vi /etc/profile
###################################################
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/apr/lib
export LC_ALL="zh_CN.GBK"
export LANG="zh_CN.GBK"
###################################################
reboot
cd /usr/tomcat/bin/tomcat-native-1.1.24-src/
ls
cd jni/native/
ls
./configure --with-apr=/usr/local/apr/ --with-java-home=/usr/java/default/
make #make clean
make
make install
/usr/tomcat/bin/startup.sh
netstat -lntp |grep 8443
/usr/tomcat/bin/shutdown.sh
vi /usr/tomcat/conf/server.xml
<Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
SSLCertificateFile="/usr/tomcat/ca/xx.crt"
SSLCertificateKeyFile="/usr/tomcat/ca/xx.key"
SSLCertificateChainFile="/usr/tomcat/ca/DigiCertCA.crt" />
本文出自 “wemux” 博客,请务必保留此出处http://wemux.blog.51cto.com/2848943/1440214
Apache using ssl of a install native
原文地址:http://wemux.blog.51cto.com/2848943/1440214