首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >Apache httpd设置和安装

Apache httpd设置和安装
EN

Stack Overflow用户
提问于 2012-02-25 03:30:20
回答 5查看 235K关注 0票数 83

这是我第一次尝试以普通用户(非root用户)的身份在我的计算机上本地安装Apache HTTP服务器。

我已经下载了Apache HTTP服务器http://httpd.apache.org/download.cgi.的Apache2.4.1版本然而,当我尝试在我的机器中本地构建和安装时,我得到了以下错误:

代码语言:javascript
复制
httpd/httpd-2.4.1 1059> ./configure
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu

Configuring Apache Portable Runtime library ...

checking for APR... no
configure: error: APR not found.  Please read the documentation.

我不确定它在寻找什么依赖--我的意思是下载包不包含它?我需要做什么来构建/部署Apache HTTP服务器?

提前谢谢。

EN

回答 5

Stack Overflow用户

发布于 2012-04-08 04:10:21

对于Ubuntu 11.10,这个选项似乎工作得很好:

代码语言:javascript
复制
 # APR

wget http://mirrors.axint.net/apache//apr/apr-1.4.6.tar.gz

tar -xvzf apr-1.4.6.tar.gz

cd apr-1.4.6/

./configure

make

make install

cd ..

# APR Utils

wget http://mirrors.axint.net/apache//apr/apr-util-1.4.1.tar.gz

tar -xvzf apr-util-1.4.1.tar.gz

cd apr-util-1.4.1

./configure --with-apr=/usr/local/apr

make

make install

cd ..

# Apache

wget http://apache.petsads.us//httpd/httpd-2.4.1.tar.gz

tar -xvzf httpd-2.4.1.tar.gz

cd httpd-2.4.1

./configure --enable-file-cache --enable-cache --enable-disk-cache --enable-mem-cache --enable-deflate --enable-expires --enable-headers --enable-usertrack --enable-ssl --enable-cgi --enable-vhost-alias --enable-rewrite --enable-so --with-apr=/usr/local/apr/

make

make install

cd ..

你可以在下面找到更多关于它的信息

来源:VaporCreations.com

票数 40
EN

Stack Overflow用户

发布于 2013-01-23 02:39:59

如果你有Debian/Ubuntu,你只需要:

代码语言:javascript
复制
apt-get install libapr1-dev libaprutil1-dev

然后是./configure

完成

票数 27
EN

Stack Overflow用户

发布于 2012-02-25 03:41:22

1,您需要APR (apache可移植运行时),它是apache web服务器的核心组件

2、如果你想进行安装,你可能需要root帐号

3,即使没有,apache也无法在没有root帐户的情况下开始侦听非特权端口(低于1024)

4、获得root用户或让具有root用户的用户从官方存储库(我不知道您运行哪个发行版)安装apache,比如使用yum、apt-get等。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/9436860

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档