https://httpd.apache.org/download.cgi
https://github.com/nghttp2/nghttp2
https://github.com/nghttp2/nghttp2/releases
cd /usr/local/src
lynx https://github.com/nghttp2/nghttp2/releases/download/v1.39.2/nghttp2-1.39.2.tar.bz2
tar jxf nghttp2-1.39.2.tar.bz2
cd nghttp2-1.39.2
./configure --prefix=/usr/local/nghttp2 --with-boost
make
make check
make install
make clean
https://apr.apache.org/download.cgi
cd /usr/local/src
lynx http://ftp.mirror.tw/pub/apache//apr/apr-1.7.0.tar.bz2
tar jxf apr-1.7.0.tar.bz2
cd apr-1.7.0
./configure --prefix=/usr/local/apr
make
make check
make install
make clean
cd /usr/local/src
lynx http://ftp.mirror.tw/pub/apache//apr/apr-util-1.6.1.tar.bz2
tar jxf apr-util-1.6.1.tar.bz2
cd apr-util-1.6.1
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/bin/apr-1-config
make
make check
make install
make clean
cd /usr/local/src
lynx http://ftp.twaren.net/Unix/Web/apache//httpd/httpd-2.4.41.tar.bz2
tar jxf httpd-2.4.41.tar.bz2
cd httpd-2.4.41
./configure --prefix=/usr/local/apache2 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre --enable-mods-shared=all --enable-mpms-shared=all --enable-static-support --enable-http2 --with-nghttp2=/usr/local/nghttp2
make
make install
make clean
vi /usr/local/apache2/conf/httpd.conf
LoadModule http2_module modules/mod_http2.so
LoadModule rewrite_module modules/mod_rewrite.so
ServerAdmin
ServerName
Include conf/extra/httpd-mpm.conf
Include conf/extra/httpd-default.conf
Include conf/extra/httpd-vhosts.conf
Include conf/extra/httpd-ssl.conf
/usr/local/apache2/bin/apachectl start
/usr/local/apache2/bin/apachectl stop
/usr/local/apache2/bin/apachectl restart
新增時間 | 2020-01-22 |
最後更新 | 2022-02-09 |