- 编译安装 httpd
# 安装相关工具
[root@localhost ~]# yum -y install gcc openssl-devel pcre-devel apr-devel apr-util-devel
# 下载安装包
[root@localhost ~]# wget https://downloads.apache.org/httpd/httpd-2.4.43.tar.bz2
# 解压
[root@localhost ~]# tar -xvf httpd-2.4.43.tar.bz2
# 安装
[root@localhost ~]# cd httpd-2.4.43
[root@localhost httpd-2.4.43]# ./configure --prefix=/apps/httpd24 --sysconfdir=/etc/httpd --enable-ssl --enable-so
[root@localhost httpd-2.4.43]# m

本文档详细介绍了如何编译安装Apache httpd服务器,并且讲解了如何为自编译的httpd服务编写及配置systemd的service unit文件,确保服务能够正确启动和管理。
最低0.47元/天 解锁文章
470

被折叠的 条评论
为什么被折叠?



