config.status: executing libtool commands
rm: cannot remove 'libtoolT': No such file or directory
解决办法:进入安装路径/work/soft/apache/apr-1.5.2找到configure文件,找到$RM
"$cfgfile"改为#$RM
"$cfgfile",改好后在当前路径再执行一次./configure
[root@@ubuntu:/work/soft/apache/apr-1.5.2]$sudo
make
[root@@ubuntu:/work/soft/apache/apr-1.5.2]$
sudo make
install
2,安装
apr-util
下载地址:
[root@ubuntu:/work/soft/apache]$sudo
tar
jxvfapr-util-1.5.4.tar.bz2
[root@@ubuntu:/work/soft/apache/apr-util-1.5.4]$sudo
./configure
--prefix=/work/installed/apr-util --with-apr=/work/installed/apr
[root@@ubuntu:/work/soft/apache/apr-util-1.5.4]$sudo make
[root@@ubuntu:/work/soft/apache/apr-util-1.5.4]$sudo make
install
3,安装
pcre
下载地址:http://pcre.org/
[root@ubuntu:/work/soft/apache]$sudo$sudo
tar jxvf
pcre-8.35.tar.bz2
[root@@ubuntu:/work/soft/apache/pcre-8.35]$sudo
./configure --prefix=/work/installed/pcre
[root@@ubuntu:/work/soft/apache/pcre-8.35]$sudo
make
[root@@ubuntu:/work/soft/apache/pcre-8.35]$sudo make
install
二,安装apache
方法一.通过命令一键安装
[root@ubuntu:/work/installed/apache]$sudo
apt-get install apache2-utils
三,验证apache
[root@ubuntu]$ab
-n 40 -c 10 http://www.baidu.com/
打印信息如下:
This is ApacheBench, Version 2.3
Copyright 1996 Adam Twiss, Zeus Technology Ltd,
http://www.zeustech.net/
Licensed to The Apache Software Foundation,
http://www.apache.org/
Benchmarking www.baidu.com (be patient).....done
Server
Software: BWS/1.1
Server
Hostname: www.baidu.com
Server
Port: 80
Document
Path: /
Document
Length: 100349 bytes
Concurrency
Level: 10
Time taken for tests: 12.965
seconds
Complete
requests: 40
Failed
requests: 38
(Connect: 0, Receive: 0,
Length: 38, Exceptions: 0)
Total
transferred: 4044288 bytes
HTML
transferred: 4005256 bytes
Requests per
second: 3.09
[#/sec] (mean)
Time per
request: 3241.300 [ms] (mean)
Time per
request: 324.130 [ms] (mean, across all concurrent requests)
Transfer
rate: 304.62 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd]
median max
Connect: 43 251
292.6 199 1291
Processing: 449 2027
1683.6 1487 8369
Waiting: 48 234
110.9 230 508
Total: 571 2278 1780.2 1625 8571
Percentage of the requests served within a certain time (ms)
50% 1625
66% 2498
75% 2880
80% 3377
90% 5083
95% 6777
98% 8571
99% 8571
100% 8571
(longest request)
三,可能会存在的问题:
1.关于 apahce 启动错误make_sock:could not bind to address
[::]:80
按照http://blog.chinaunix.net/uid-28458801-id-4211258.html的安装步骤,报如此错误,尝试了多种网上的方法,均行不通,包括更改配置文件,以及查杀占用80端口的进程,这些方法均无法解决该问题,目前的解决办法是通过apt-get重新装apache.
2.APR:rm: cannot remove `libtoolT’: No such file or
directory
这个问题是由于apr没有正确安装导致的。在安装过程中,按照apr的安装步骤更改configure即可解决。
参考资料:
http://blog.chinaunix.net/uid-28458801-id-4211258.html
http://bbs.chinaunix.net/thread-3681247-1-1.html