源码安装apache
使用wget那源码包,使用清华地址https://mirrors.tuna.tsinghua.edu.cn/apache/httpd/
本地安装,wget yum源突然不行了
tftp进来
预编译的时候开始报错了
没搞定恢复快照了,报的是bzip2没有,但是安装了还是报错。
tar包解压了
有开始报错了。apr 错和apr-utils ,还是yum装吧
预编译 ./configure
还是报错,这次缺pcre-devel
感觉差不多了
没问题,正常make 编译
make install 安装
总结 apr apt-utils pcre-devel 三个包是比较重要的
验证一下 启动的cp /usr/local/apache2/bin/apachectl /etc/init.d/httpd 加到启动里
systemctl start httpd
systemctl status httpd 可以看状态
测试一下 curl