centos8編譯安裝httpd


 centos8編譯安裝httpd

wget -P /usr/local/src  https://mirrors.bfsu.edu.cn/apache//httpd/httpd-2.4.43.tar.bz2

 cd /usr/local/src

 

[root@centos8 src]# tar xvf httpd-2.4.43.tar.bz2

 

[root@centos8 src]#cd httpd-2.4.43

 

[root@centos8 httpd-2.4.43]#cat README

 

[root@centos8 httpd-2.4.43]#cat INSTALL

 

[root@centos8 httpd-2.4.43]#./configure   --prefix=/apps/httpd   --sysconfdir=/etc/httpd  --enable-ssl

 

 

  [root@centos8 httpd-2.4.43]#yum  -y install  apr-devel   apr-util-devel

 

[root@centos8 httpd-2.4.43]#dnf -y install pcre-devel

        

         [root@centos8 httpd-2.4.43]#dnf -y  install openssl-devel 

 

[root@centos8 httpd-2.4.43]#./configure   --prefix=/apps/httpd   --sysconfdir=/etc/httpd  --enable-ssl

 

[root@centos8 httpd-2.4.43]#make -j 4 && make install

 

[root@centos8 httpd-2.4.43]#yum -y install redhat-rpm-config-120-1.el8.noarch

[root@centos8 httpd-2.4.43]#make -j 4 && make install

 

 

[root@centos8 bin]#cd /apps/httpd/

 

[root@centos8 httpd]#cd  bin

[root@centos8 bin]# ./apachectl start

 網頁登錄IP地址即可


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM