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