博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
https+apache+tomcat Linux 环境
阅读量:4961 次
发布时间:2019-06-12

本文共 3704 字,大约阅读时间需要 12 分钟。

 

记录的 apche + tomcat +https 在centos6.9上的安装配置过程(NC65)

cd /yonyou/

mkdir https

cd https/
wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz
wget http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.10.zip
wget https://ftp.pcre.org/pub/pcre/pcre-8.10.zip --no-check-certificate
wget http://archive.apache.org/dist/httpd/httpd-2.4.29.tar.gz
wget http://mirrors.shu.edu.cn/apache/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.43-src.tar.gz

yum -y install gcc

yum -y install gcc+ gcc-c++
yum -y install autoconf
yum -y install libtool

tar -zxvf tomcat-connectors-1.2.43-src.tar.gz

tar -zxvf apr-1.4.5.tar.gz
tar -zxvf apr-util-1.3.12.tar.gz
tar -zxvf httpd-2.4.29.tar.gz
unzip pcre-8.10.zip
cd apr-1.4.5/
./configure --prefix=/usr/local/apr
make && make install
cd apr-util-1.3.12/
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/bin/apr-1-config
make && make install
cd ../pcre-8.10/
./configure --prefix=/usr/local/pcre
make && make install
./configure --disable-shared --prefix=/usr/local/pcre --with-pic
make && make install
cd ../httpd-2.4.29/
./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre
make && make install
cd tomcat-connectors-1.2.43-src
cd native/
./configure --with-apxs=/usr/local/apache/bin/apxs
locate mod_jk.so
which apxs
cd /usr/local/apache/bin/
cd /yonyou/
cd https/
cd tomcat-connectors-1.2.43-src
cd native/
./buildconf.sh
make install
./configure --with-apxs=/usr/local/apache/bin/apxs
make
more /usr/local/apache/conf/httpd.conf
!
updatedb
locate mod_jk.so
vi /usr/local/apache/conf/httpd.conf
/usr/bin/openssl req -new -key server.key -out server.csr
/usr/bin/openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt
/usr/bin/openssl x509 -noout -text -in server.crt
vi /usr/local/apache/conf/httpd.conf
vi /usr/local/apache/conf/extra/httpd-ssl.conf
cd /usr/local/apache/bin/
./apachectl -k start
#yum install mod_ssl
updatedb
locate mod_ssl
cd /usr/local/apache/include/
#cp /usr/lib64/httpd/modules/mod_ssl.so /usr/local/apache/modules/
#/usr/local/apache/bin/apxs -a -i -c -L/usr/lib/openssl/engines/lib -c *.c -lcrypto -lssl -ldl
#cd /yonyou/https/httpd-2.4.29/modules/ssl
#/usr/local/apache/bin/apxs -a -i -c mod_ssl.c
#./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre --enable-ssl
#openssl version -a
#./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre --enable-ssl --with-ssl=/etc/pki/tls
#yum update openssl
openssl version -a
yum install openssl-devel
openssl version -a
./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre --enable-ssl
make && make install
vi /usr/local/apache/conf/httpd.conf
cd /usr/local/apache/conf/extra/
vi httpd-ssl.conf
cd bin/
./apachectl -k start
cd ../conf/httpd.conf
vi ../conf/httpd.conf
./apachectl -k start
cat -n /usr/local/apache/conf/ncmodjk.conf
./apachectl -k start
cat -n /usr/local/apache/conf/ncmodjk.conf
/usr/local/apache/conf/ncmodjk.con
vi /usr/local/apache/conf/ncmodjk.conf
./apachectl -k start
vi /usr/local/apache/conf/httpd.conf
./apachectl -k start
cat -n /usr/local/apache/conf/ncmodjk.conf
vi /usr/local/apache/conf/ncmodjk.conf
./apachectl -k start
vi httpd-ssl.conf ------------JKMountFile conf/ncmapping.properties
./apachectl -k start

 

全过程在https://scrat.oss-cn-beijing.aliyuncs.com/qst/NC65HTTPS_LINUX%E6%B5%81%E6%B0%B4%E8%B4%A6.txt

转载于:https://www.cnblogs.com/qtong/p/9021945.html

你可能感兴趣的文章
restframework CBV试图的4种方式
查看>>
大图居中,以1920px为例
查看>>
Python3 图片转字符画
查看>>
[C陷阱和缺陷] 第7章 可移植性缺陷
查看>>
人需要治愈
查看>>
linux中configure文件默认执行结果所在位置
查看>>
Windows向Linux上传文件夹
查看>>
20180104-高级特性-Slice
查看>>
6个SQL Server 2005性能优化工具介绍
查看>>
nginx启动、关闭命令、重启nginx报错open() "/var/run/nginx/nginx.pid" failed
查看>>
BZOJ 3097 Hash Killer I
查看>>
UINavigationController的视图层理关系
查看>>
html阴影效果怎么做,css 内阴影怎么做
查看>>
宏观经济
查看>>
综合练习:词频统计
查看>>
BZOJ1026: [SCOI2009]windy数
查看>>
样板操作数
查看>>
64位UBUNTU下安装adobe reader后无法启动
查看>>
iTextSharp带中文转换出来的PDF文档显示乱码
查看>>
组件:slot插槽
查看>>