源码安装:
前置条件:编译工具
configure:
检查编译环境
指定安装环境
指定依赖关系的安装目录:解决依赖关系
禁用和启用功能模块
执行后生成makefile文件
make(若进行二次安装,先使用make clean命令)
将源码编译成机器码
make install
根据makefile文件中的指定的路径进行安装
关闭防火墙:
systemctl stop firewalld
编辑网页内容
[root@localhost httpd-2.4.39]# cd htdocs
[root@localhost htdocs]# ls
index.html
[root@localhost htdocs]# vi index.html
[root@localhost htdocs]# vi index.html
[root@localhost htdocs]# vi index.html
[root@localhost htdocs]# pwd
/usr/local/src/httpd-2.4.39/htdocs
[root@localhost htdocs]#
1、wget 下载链接
2、make clean
3、make && make install
4、tar解压
5、进入可执行文件夹
6、./configure --prefix 存放路径