Last active
November 8, 2021 19:15
-
-
Save ForumPlayer/e24c235d7b95c481cdf43b95bd9fc760 to your computer and use it in GitHub Desktop.
Revisions
-
ForumPlayer revised this gist
Jul 13, 2021 . 1 changed file with 98 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,98 @@ #!/bin/bash nginx_ver="nginx-1.18.0" pcre_ver="pcre-8.44" zlib_ver="zlib-1.2.11" openssl_ver="openssl-1.1.1g" apt install build-essential -y apt install libxslt1-dev libgeoip-dev libgd-dev -y mkdir ~/build cd build wget ftp://ftp.pcre.org/pub/pcre/$pcre_ver.tar.gz tar -zxf $pcre_ver.tar.gz # cd $pcre_ver # ./configure # make # cd .. wget http://zlib.net/$zlib_ver.tar.gz tar -zxf $zlib_ver.tar.gz # cd $zlib_ver # ./configure # make # cd .. wget http://www.openssl.org/source/$openssl_ver.tar.gz tar -zxf $openssl_ver.tar.gz # cd $openssl_ver # ./Configure darwin64-x86_64-cc --prefix=/usr # make # cd .. wget https://nginx.org/download/$nginx_ver.tar.gz tar zxf $nginx_ver.tar.gz cd $nginx_ver ############################################### # ./configure \ # --sbin-path=/usr/local/nginx/nginx \ # --conf-path=/usr/local/nginx/nginx.conf \ # --pid-path=/usr/local/nginx/nginx.pid \ # --with-pcre=../$pcre_ver \ # --with-zlib=../$zlib_ver \ # --with-http_ssl_module \ # --with-stream \ # --with-mail=dynamic \ # --add-module=/usr/build/nginx-rtmp-module \ # --add-dynamic-module=/usr/build/3party_module ############################################### ./configure \ --sbin-path=/usr/sbin/nginx \ --modules-path=/usr/lib/nginx/modules \ --conf-path=/etc/nginx/nginx.conf \ --pid-path=/var/run/nginx.pid \ --builddir=$nginx_ver \ --with-select_module \ --with-poll_module \ --with-threads \ --with-file-aio \ --with-http_ssl_module \ --with-http_v2_module \ --with-http_realip_module \ --with-http_addition_module \ --with-http_xslt_module \ --with-http_image_filter_module \ --with-http_geoip_module \ --with-http_sub_module \ --with-http_dav_module \ --with-http_flv_module \ --with-http_mp4_module \ --with-http_gunzip_module \ --with-http_gzip_static_module \ --with-http_auth_request_module \ --with-http_random_index_module \ --with-http_secure_link_module \ --with-http_degradation_module \ --with-http_slice_module \ --with-http_stub_status_module \ --with-stream \ --with-stream_ssl_module \ --with-stream_realip_module \ --with-stream_geoip_module \ --with-stream_ssl_preread_module \ --with-compat \ --with-pcre=../$pcre_ver \ --with-pcre-jit \ --with-zlib=../$zlib_ver \ --with-openssl=../$openssl_ver \ --with-openssl-opt=no-nextprotoneg \ --with-debug make -
ForumPlayer created this gist
Feb 16, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ # Scripts to build some Linux programs easily