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地址即可