-
Notifications
You must be signed in to change notification settings - Fork 1
/
http2224_ssl.sh
34 lines (32 loc) · 1.05 KB
/
http2224_ssl.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# mysql innodb install scripts
# Author:alleysakura
# Url https://alleysakura.com
if [ ! -f /usr/bin/gcc ];then
yum install -y gcc gcc-c++ make autoconf libtool-ltdl-devel gd-devel freetype-devel libxml2-devel libjpeg-devel libpng-devel openssl-devel curl-devel patch libmcrypt-devel libmhash-devel ncurses-devel sudo bzip2
fi
if [ -d /root/lanmp/httpd-2.2.24 ];then
cd /root/lanmp/httpd-2.2.24
make clean
elif [ -f /root/lanmp/httpd-2.2.24.tar.gz ];then
cd /root/lanmp
tar zxvf httpd-2.2.24.tar.gz
cd httpd-2.2.24
else
cd /tmp
wget -c http://dl.wdlinux.cn:5180/soft/httpd-2.2.24.tar.gz
tar zxvf httpd-2.2.24.tar.gz
cd httpd-2.2.24
fi
IN_DIR="/www/wdlinux"
./configure --prefix=$IN_DIR/httpd-2.2.24 --enable-rewrite --enable-deflate --disable-userdir --enable-so --enable-expires --enable-headers --with-included-apr --with-apr=/usr --with-apr-util=/usr --enable-ssl --with-ssl=/usr
[ $? != 0 ] && exit
make
[ $? != 0 ] && exit
service httpd stop
make install
[ $? != 0 ] && exit
service httpd start
echo
echo "httpd ssl install is OK"
echo