![]() |
|
![]() |
#1 |
注册日期: 2008-08-14
帖子: 12
现金:6金币
资产:6金币
![]() |
那个说10倍的文章稍微夸张了点,但是性能有明显提高倒是真的。 感觉处理纯静态的文件还是蛮有优势的,比apache明显占用资源少,缺点是url rewrite要哟要重写不能通用。 |
![]() |
![]() |
![]() |
#2 |
注册日期: 2009-06-06
帖子: 17
现金:22金币
资产:22金币
声望: 10
![]() |
Nginx 纯静态 单台一天试过1亿PV..
|
![]() |
![]() |
![]() |
#3 | |
注册日期: 2008-11-22
帖子: 13
现金:-4金币
资产:-4金币
声望: 10
![]() |
引用:
全部軟件: FreeBSD+FTP+NGINX 全部用來跑 HTML 的純靜態頁面 ( 頁面由另一台PHP+MYSQL生成 ) 目前運行了二天,一直在關查.... 二個字 : 非常爽 ![]() 有幾點要特別注意的, 在安裝 Nginx 時, 默認裡是沒有 SUB-DOMAIN 選擇的,要打上鉤 . 我就是因為沒有打上這個東西, 最後配置 nginx.conf 的 域名時,出了很多問題. 不支持泛域名... -_- 後來重新config 安裝了. 但是對 Nginx.conf 裡的 域名 配置還是有點問題. 不過,目前正常,不敢再亂搞: -----------------------host and domain-------------------------------------- server { listen 80; server_name .domain1.com; location / { root /usr/home/web/domain1; index index.html; access_log off; } } server { listen 80; server_name .domain2.com; location / { root /usr/home/web/domain2; index index.html; access_log off; } } server { listen 80; server_name .domain3.com; location / { root /usr/home/web/domain3; index index.html; access_log off; } } server { listen 80; server_name state.domain.com state.domain2.com; location / { stub_status on; access_log off; } } -----------------------host and domain-------------------------------------- 其中 , server_name .domain3.com; 中的 .domain3.com 意思是 *.domain3.com , 查了很多資料,不知道為什麼,按自帶的說明裡配置不行,進入域名後會直接到默認首頁,就是剛安裝好APACHE一樣的歡迎頁面... 之前是這樣配置的,不行: server { listen 80; server_name domain1.com alias my1.domain1.com my2.domain1.com; location / { root /usr/home/web/domain1; index index.html; access_log off; } } 不知道為什麼,以上配置. 輸入domain1.com alias my1.domain1.com都進入歡迎頁面 , 只有my2.domain1.com進入目錄... 看了官方教學, 這樣配置 server_name domain1.com my1.domain1.com my2.domain1.com; 也一樣 只有my2.domain1.com進入目錄... 不懂. |
|
![]() |
![]() |
![]() |
#4 | |
注册日期: 2007-09-27
帖子: 22
现金:25金币
资产:25金币
声望: 10
![]() |
引用:
|
|
![]() |
![]() |
![]() |
#5 |
注册日期: 2009-09-30
帖子: 13
现金:-3金币
资产:-3金币
声望: 10
![]() |
的确看一些资料吹得挺玄乎,不知效果
|
![]() |
![]() |
![]() |
#6 |
注册日期: 2009-04-26
帖子: 12
现金:-14金币
资产:-14金币
声望: 10
![]() |
今天发现: Active connections: 291 server accepts handled requests 16630948 16630218 31070465 Reading: 6 Writing: 179 Waiting: 106 成功创建 少了730个... 也就是说有 730个握手失败? active connections -- 对后端发起的活动连接数 server accepts handled requests -- nginx 总共处理了 16630948 个连接, 成功创建 16630218 次握手 (中间730个握手失败), 总共处理了 31070465 个请求 (平均每次握手处理了 1.8个数据请求) 想问一下,一般是什么情况会 730个握手失败 ??? 是Nginx配置并发问题?还是服务器?还是对方的网络有问题??? |
![]() |
![]() |
![]() |
#7 |
注册日期: 2008-11-17
帖子: 9
现金:0金币
资产:0金币
声望: 10
![]() |
我的理解是handeled是说处理完成的吧 730个应该是HTTP会话过程意外终止的 |
![]() |
![]() |