This commit is contained in:
root
2017-02-26 00:11:53 +01:00
parent 74c3c310e6
commit e47bc2ff02

12
install.sh Normal file → Executable file
View File

@@ -55,13 +55,13 @@ else
fi fi
if [ "{$DIST}" == "Fedora" ]; then if [ "{$DIST}" == "Fedora" ]; then
dnf install gcc gcc-c++ autoconf automake -y dnf install gcc gcc-c++ autoconf automake make -y
elif [ "{$DIST}" == "Ubuntu" ] || [ "${DIST}" == "Debian" ]; then elif [ "{$DIST}" == "Ubuntu" ] || [ "${DIST}" == "Debian" ]; then
apt-get install gcc g++ autoconf automake -y apt-get install gcc g++ autoconf automake make -y
elif [ "{$DIST}" == "CentOS" ]; then elif [ "{$DIST}" == "CentOS" ]; then
yum install gcc gcc-c++ autoconf automake -y yum install gcc gcc-c++ autoconf automake make -y
elif [ "${DistroBasedOn}" == "suse" ]; then elif [ "${DistroBasedOn}" == "suse" ]; then
zypper install gcc gcc-c++ autoconf automake -y zypper install -y gcc gcc-c++ autoconf automake make -y
fi fi
cd pcre-8.40 cd pcre-8.40
@@ -79,6 +79,10 @@ cd openssl-1.0.2f
make make
make install make install
cd .. cd ..
cd ngx_pagespeed-latest-beta
wget https://dl.google.com/dl/page-speed/psol/1.12.34.2-x64.tar.gz
tar -xzvf 1.12.34.2-x64.tar.gz
cd ..
./configure --sbin-path=/usr/local/nginx/nginx --conf-path=/usr/local/nginx/nginx.conf --pid-path=/usr/local/nginx/nginx.pid --with-pcre=pcre-8.40 --with-zlib=zlib-1.2.11 --with-http_ssl_module --with-stream --with-mail=dynamic --with-ipv6 --with-http_v2_module --with-http_realip_module --with-http_dav_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_slice_module --with-http_stub_status_module --with-http_addition_module --add-module=naxsi-0.55.3 --add-module=ngx-fancyindex --add-dynamic-module=headers-more-nginx-module-0.32 --add-module=ngx_pagespeed-latest-beta ./configure --sbin-path=/usr/local/nginx/nginx --conf-path=/usr/local/nginx/nginx.conf --pid-path=/usr/local/nginx/nginx.pid --with-pcre=pcre-8.40 --with-zlib=zlib-1.2.11 --with-http_ssl_module --with-stream --with-mail=dynamic --with-ipv6 --with-http_v2_module --with-http_realip_module --with-http_dav_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_slice_module --with-http_stub_status_module --with-http_addition_module --add-module=naxsi-0.55.3 --add-module=ngx-fancyindex --add-dynamic-module=headers-more-nginx-module-0.32 --add-module=ngx_pagespeed-latest-beta
make make