惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

宝玉的分享
宝玉的分享
NISL@THU
NISL@THU
E
Exploit-DB.com RSS Feed
L
LINUX DO - 热门话题
L
Lohrmann on Cybersecurity
K
Kaspersky official blog
Project Zero
Project Zero
Cisco Talos Blog
Cisco Talos Blog
T
The Exploit Database - CXSecurity.com
P
Palo Alto Networks Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
T
Threatpost
S
Schneier on Security
G
GRAHAM CLULEY
The Hacker News
The Hacker News
T
Threat Research - Cisco Blogs
Scott Helme
Scott Helme
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
P
Privacy & Cybersecurity Law Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Cyberwarzone
Cyberwarzone
C
CERT Recently Published Vulnerability Notes
T
Tor Project blog
AWS News Blog
AWS News Blog
Simon Willison's Weblog
Simon Willison's Weblog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
爱范儿
爱范儿
P
Privacy International News Feed
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
S
Securelist
G
Google Developers Blog
The Last Watchdog
The Last Watchdog
Google Online Security Blog
Google Online Security Blog
美团技术团队
F
Fortinet All Blogs
小众软件
小众软件
Recorded Future
Recorded Future
V
Visual Studio Blog
B
Blog RSS Feed
H
Help Net Security
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Google DeepMind News
Google DeepMind News
Blog — PlanetScale
Blog — PlanetScale
博客园 - 聂微东
Stack Overflow Blog
Stack Overflow Blog
Martin Fowler
Martin Fowler
Latest news
Latest news
Spread Privacy
Spread Privacy
H
Heimdal Security Blog

博客园 - 新一

HPUX 大文件系统扩容 LESS详解之函数(四) Win7 安装Apache 2.2.4报错:<OS 5>拒绝访问. :Failed to open the WinNT service manager java后台进程和线程优先级 Java IO--压缩流 线程池技术 Red Hat dhclient [置顶] 开关电源的pcb设计规范 javascript 的一些理解和随笔 动态规划之 <筷子> 都是权限惹的祸! - 新一 [LeetCode] Validate Binary Search Tree 解决IE6-IE8 Js代码不执行问题 linux下chmod使用 熬之滴水成石:最想深入了解的内容--windows内核机制(6) linux网络设备—PHY linux网络设备—mdio总线 通过action传过来的值在option获取进行验证 屌丝也用按位与(&),按位或(|) (二)
在Linux下用源码编译安装apache2
新一 · 2013-11-14 · via 博客园 - 新一

Linux下安装一个软件,最好去看下它的官方guide,apache2.4的安装安装guide

0. installation guide http://httpd.apache.org/docs/2.4/install.html

然后是下载源码

1. download http2.4, 下载地址

下载好了以后,把它解压到一个路径下,这里我把解压后的路径记为$HTTPD

2 接下来是下载它所依赖的包apr和apr-util,在这里 http://apr.apache.org/download.cgi#aprutil1

apr的下载链接,即http://mirror.reverse.net/pub/apache/apr/apr-1.4.8.tar.gz

apr-util的下载链接,即http://apache.mesi.com.ar//apr/apr-util-1.5.2.tar.gz

3. apr和apr-util下载好了以后,把他们解压并把内容分别放在$HTTPD/srclib/apr 和 $HTTPD/srclib/apr-util目录下

4. 接下来下载pcre,下载链接,即http://www.pcre.org/ 

下载pcre后解压,然后按如下命令安装:

   ./configure
   make
   make install


5. 接下来转到目录$HTTPD下,用以下命令安装apache2

   ./configure --prefix=/usr/local/apache2
   make
   make install


6. 用以下命令启动httpd ( apachectl start/stop/restart)

   cd /usr/local/apache2/bin/
   ./apachectl start


7. 启动的时候发现以下error

error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory


8. 有人已经提供了解决方法, 链接在此

主要是一个依赖包问题:


用以下shell命令解决:

echo "/usr/local/lib" >> /etc/ld.so.conf.d/libc.conf
sudo ldconfig


注:安装过程用root用户