apache 2.4.39 編譯安裝與RPM安裝方式記錄

1.apache 2.4.39編譯安裝選項

./configure \
--prefix=/usr/local/apache24 --sysconf=/etc/httpd24 --enable-so \
--enable-ssl --enable-rewrite --with-zlib --with-pcre --with-apr=/usr/local/apr  \
--with-apr-util=/usr/local/apr-util --enable-modules=most  \
--enable-mpms-shared=all --with-mpm=prefork
make -j8 && make install

2.下載最新repo文件方式安裝(ius方式安裝)

wget https://mirrors.tuna.tsinghua.edu.cn/ius/ius-release-el7.rpm
yum remove httpd httpd-tools-2.4.6-89.el7.centos.x86_64
yum install ius-release-el7.rpm  -y
yum install httpd24u -y

3.在原有版本的基礎上升級安裝apache 2.4.39

cd /etc/yum.repos.d && wget https://repo.codeit.guru/codeit.el`rpm -q --qf "%{VERSION}" $(rpm -q --whatprovides redhat-release)`.repo
yum install httpd httpd-tools -y
httpd -v
Server version: Apache/2.4.39 (codeit)
Server built:   May 31 2019 14:14:30

總結:在網絡好的情況下或者需要不需要編譯什麼特殊功能建議採用yum方式安裝!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章