centos8 编译安装 httpd-2.4

前提:关闭selinux和防火墙

SElinux:

setenforce 0

vim /etc/selinux/config-->disabled

防火墙:

firewall-cmd --set-default-zone=trusted

iptables -F

1.下载安装包:

使用yum info httpd可以看到httpd的官网地址:httpd.apache.org

2. 解压文件并执行configure脚本

例如:./configure --prefix=/httpd --enable-ssl

centos8 编译安装 httpd-2.4
缺APR....,只需要装一个apr-devel进行了

继续:

centos8 编译安装 httpd-2.4
装一个apr-util-devel

继续:

centos8 编译安装 httpd-2.4
一般大写的,需要装的软件xxx.devel

centos8 编译安装 httpd-2.4
继续:
centos8 编译安装 httpd-2.4
安装openssl-devel

centos8 编译安装 httpd-2.4
生成makefile文件完成

2.生成二进制程序文件:make

centos8 编译安装 httpd-2.4
安装对应的包

centos8 编译安装 httpd-2.4
编译完成

centos8 编译安装 httpd-2.4

3. 安装: make install

centos8 编译安装 httpd-2.4

4.检验:

README:软件源码包的README这个文件就是告诉我们这个软件是干嘛的

INSTALL:告诉我们软件应该怎么安装
通过软连接或者将路径加入path变量的方式来简化软件的使用(不用每次写路径)

centos8 编译安装 httpd-2.4
完成后,您不必写下完整的路径。
[En]

When you are finished, you don’t have to write the full path.

centos8 编译安装 httpd-2.4
验证:
centos8 编译安装 httpd-2.4

上述已经完成了软件的安装。但是存在一些问题

1.运行软件的身份(每个服务都应该有一个专有的账号来运行)

centos8 编译安装 httpd-2.4

更改httpd服务的配置文件(以我们定制的账号身份运行)

centos8 编译安装 httpd-2.4

centos8 编译安装 httpd-2.4

Original: https://www.cnblogs.com/heyongshen/p/16417643.html
Author: 背对背依靠
Title: centos8 编译安装 httpd-2.4

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/523283/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球