apache安装
1、安装方式一:源码安装
- 下载源码包:http://httpd.apache.org/download.cgi#apache24
下载:wget命令下载:http://mirrors.tuna.tsinghua.edu.cn/apache//httpd/httpd-2.4.29.tar.gz
步骤:
1.解压缩
i. tar -xf 下载的包名
ii. 进入解压缩的包名
iii. 执行./configure --prefix=/usr/local/apahce2(安装包的路径,自定义)
iv. 出错
1. apr不存在
解决:yum -y install apr 和 安装yum -y install apr-util
安装yum -y install pcre
出错总体解决思路:缺少什么插件就用 yum -y install 安装某插件
i. make &make install(编译安装)
i. 启动、重启、关闭 /usr/local/apache2/bin/apachectl start |stop|restart