Linux 下配置Apache Http Server
来源:互联网 发布:网络mg老虎机出分原理 编辑:程序博客网 时间:2024/06/05 17:24
以前公司都是用的Apache的Tomcat,这个web 服务器用起来比较简单,下载解压就好了。最近在想弄个博客要用到Apache Http Server,在网上看了很多安装方法,感觉还是一脸懵,然后去看了下官网安装说明,弄懂了一点,现在记录一下我安装Apache Http Server 2.4.27的过程。
安装环境:apr 和apr-util
官网下载apr和apr-util并分别解压到 aprpath和apr-utilpath(路径自定义)
安装apr:
cd aprpath./configure --prefix=aprpathsudo makesudo make install安装apr-util:安装环境:pcre 官网下载pcre安装方法类似aprcd apr-utilpath./configure --prefix=apr-utilpath --with-apr=aprpath/bin/apr-1-configsudo makesudo make install最后安装httpd:官网下载httpd服务器 解压到目录 httpd-NN(路径自定义)cd httpd-NNsudo ./configure --prefix='/etc/httpd-2.4.27' --with-apr=aprpath/bin/apr-1-config --with-apr-util=apr-utilpath/bin/apu-1-config' --with-included-apr --with-pcre=pcrepath/bin/pcre-config出现到错误xml/apr_xml.c:35:19: fatal error: expat.h: 没有那个文件或目录解决:sudo apt-get install libexpat1-dev错误:CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /etc/httpd-2.4.27/httpd_source_tree_root/pcre-8.41/missing aclocal-1.15 -I m4/etc/httpd-2.4.27/httpd_source_tree_root/pcre-8.41/missing: 行 81: aclocal-1.15: 未找到命令WARNING: 'aclocal-1.15' is missing on your system. You should only need it if you modified 'acinclude.m4' or 'configure.ac' or m4 files included by 'configure.ac'. The 'aclocal' program is part of the GNU Automake package: <http://www.gnu.org/software/automake> It also requires GNU Autoconf, GNU m4 and Perl in order to run: <http://www.gnu.org/software/autoconf> <http://www.gnu.org/software/m4/> <http://www.perl.org/>Makefile:1357: recipe for target 'aclocal.m4' failed解决:sudo apt install autoconfautoreconf -ivf错误collect2: error: ld returned 1 exit statusMakefile:48: recipe for target 'htpasswd' failedmake[2]: *** [htpasswd] Error 1make[2]: Leaving directory '/etc/httpd-2.4.27/support'/etc/httpd-2.4.27/build/rules.mk:75: recipe for target 'all-recursive' failedmake[1]: *** [all-recursive] Error 1make[1]: Leaving directory '/etc/httpd-2.4.27/support'/etc/httpd-2.4.27/build/rules.mk:75: recipe for target 'all-recursive' failedmake: *** [all-recursive] Error 1解决;
编译httpd的时候加上 --with-apr=aprpath/bin/apr-1-configure阅读全文0 0
- Linux 下配置Apache Http Server
- windows 下的apache http server 配置
- Ubuntu下安装配置Apache http server
- Linux下安装apache http server 过程
- Linux下Apache http 服务器安装配置
- Linux下安装Apache Http Server 的配置+一些错误信息的解决方法
- CentOS Linux下配置svn HTTP server
- Win10下配置Apache Http Server与连接CGI
- Win10下配置Apache Http Server与连接CGI
- CentOS 7下Apache HTTP Server安装配置
- ubuntu linux下安装PHP, Apache HTTP Server
- Linux下Apache HTTP Server 2.4.20安装
- tomcat6配置apache http server
- apache http server配置大全
- apache http server 安装配置
- Apache Http Server 安装配置
- Linux下HTTP Server
- Linux下HTTP Server
- 启动项目时出现java.io.EOFException异常
- 制作自定义图标字体,html引用web svg矢量字体
- B
- 已达到计算机的连接数最大值,无法再同此远程计算机连接
- docker 操作命令详解
- Linux 下配置Apache Http Server
- Erlang RabbitMQ
- [编程题] 解救小易
- kali wifi破解-wifite
- FIFO实现:数组方式
- Make.exe生成的vs工程转发后编译失败
- Cause: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "
- 欢迎使用CSDN-markdown编辑器
- android ndk开发二
原创粉丝点击
热门IT博客
热门问题
老师的惩罚
人脸识别
我在镇武司摸鱼那些年
重生之率土为王
我在大康的咸鱼生活
盘龙之生命进化
天生仙种
凡人之先天五行
春回大明朝
姑娘不必设防,我是瞎子
十国帝王 我是蓬蒿人
天下大争 我是蓬蒿人
蓬街私立中学
蓰
蓼花
蓼莪
蓼菜
蓼菜成行
蔄
蔄念什么
蔄怎么读
蔊
蔊菜
蔌
蔌怎么读
山肴野蔌的意思
蔑怎么读
蔑拼音
蔑的拼音
谢列蔑契娃机场
肚束三蔑
毁廉蔑耻
龙游姑蔑城生态园
蔑视
蔑视2
蔑视读音
蔑视的读音
蔑视的意思
蔑视怎么读
蔑视图片
蔑视英文
蔑视是什么意思
蔑视的近义词
沈蔓歌
蔓读音
蔓组词
野有蔓草popo全文阅读
蔓多音字组词
野有蔓草
青蔓烟阁
叶南弦沈蔓歌全文目录