IceskYsl@Docs

从源码编译安装Nginx

Although Ubuntu Hardy includes Nginx in its repositories, compiling from source will ensure we have the very latest version.

最新版本


Comments (4)

IceskYsl 1sters! - May 26, 2008 4:09 AM

Configuration summary
+ using system PCRE library
+ using system OpenSSL library
+ md5 library is not used
+ sha1 library is not used
+ using system zlib library

nginx path prefix: "/usr/local/nginx"
nginx binary file: "/usr/local/sbin"
nginx configuration prefix: "/usr/local/nginx/conf"
nginx configuration file: "/usr/local/nginx/conf/nginx.conf"
nginx pid file: "/usr/local/nginx/logs/nginx.pid"
nginx error log file: "/usr/local/nginx/logs/error.log"
nginx http access log file: "/usr/local/nginx/logs/access.log"
nginx http client request body temporary files: "/usr/local/nginx/client_body_temp"
nginx http proxy temporary files: "/usr/local/nginx/proxy_temp"
nginx http fastcgi temporary files: "/usr/local/nginx/fastcgi_temp"

IceskYsl 1sters! - May 26, 2008 5:09 AM

在本机装了一个0.61版本的nginx,然后用ab压了一下,如下:
iceskysl@IceskYsl:/home/source/nginx-0.6.31$ ab -n 100000 -c 1000 http://localhost/
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)
Completed 10000 requests
Completed 20000 requests
Completed 30000 requests
Completed 40000 requests
Completed 50000 requests
Completed 60000 requests
Completed 70000 requests
Completed 80000 requests
Completed 90000 requests
Finished 100000 requests


Server Software: nginx/0.6.31
Server Hostname: localhost
Server Port: 80

Document Path: /
Document Length: 108 bytes

Concurrency Level: 1000
Time taken for tests: 11.951934 seconds
Complete requests: 100000
Failed requests: 99501
(Connect: 0, Length: 99501, Exceptions: 0)
Write errors: 0
Total transferred: 25632008 bytes
HTML transferred: 11213432 bytes
Requests per second: 8366.85 [#/sec] (mean)
Time per request: 119.519 [ms] (mean)
Time per request: 0.120 [ms] (mean, across all concurrent requests)
Transfer rate: 2094.31 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 81 460.6 17 9018
Processing: 3 23 17.1 22 278
Waiting: 2 17 15.5 16 267
Total: 10 105 464.3 40 9052

Percentage of the requests served within a certain time (ms)
50% 40
66% 47
75% 50
80% 53
90% 65
95% 101
98% 3024
99% 3046
100% 9052 (longest request)

IceskYsl 1sters! - May 26, 2008 6:04 AM

卸载:
rm -rf /etc/nginx/
rm -rf /usr/sbin/nginx
rm /usr/share/man/man1/nginx.1.gz
apt-get remove nginx*
sudo aptitude remove nginx

http://ubuntuforums.org/archive/index.php/t-453053.html
http://sudhanshuraheja.com/2007/09/remove-nginx-from-ubuntu-fiesty-fawn.html

IceskYsl 1sters! - May 26, 2008 6:04 AM

http://www.peterbe.com/plog/how-to-uninstall-nginx-with-apt

#!/bin/sh
exit 0

站内导航