FAQ

Page Discussion Edit History

RuWhyUseIt

(Redirected from NginxRuWhyUseIt)

[edit] 袩芯褔械屑褍 Nginx?

袘褘谢芯 锌褉芯胁械写械薪芯 屑薪芯卸械褋褌胁芯 褌械褋褌芯胁, 泻芯褌芯褉褘械 锌芯泻邪蟹邪谢懈, 褔褌芯 Nginx 薪邪懈斜芯谢械械 谢械谐泻懈泄 懈 斜褘褋褌褉褘泄 懈蟹 胁褋械褏 谢械谐泻芯胁械褋薪褘褏 胁械斜 褋械褉胁械褉芯胁 (胁 褌.褔. 锌褉芯泻褋懈褉褍褞褖懈褏). 孝械屑 斜芯谢械械 芯薪 胁褘褌械褋薪褟械褌 褌褟卸械谢褘械 褋械褉胁械褉邪 (褌懈锌邪 apache) 懈蟹 谢懈薪懈懈 FrontEnd.

袧械泻芯褌芯褉褘械 谐芯胁芯褉褟褌, 褔褌芯 褋褉邪胁薪懈褌械谢褜薪褘械 褌械褋褌褘 薪械 芯斜褗械泻褌懈胁薪褘 锌芯 褌械屑 懈谢懈 懈薪褘屑 锌褉懈褔懈薪邪屑, 褔褌芯 "褌芯" 懈谢懈 "褝褌芯" 斜褘谢芯 褋写械谢邪薪薪芯 薪械 褌邪泻 懈 褌.写.. 携 褋芯谐谢邪褕褍褋褜 褋 褌械屑, 褔褌芯 褋褉邪胁薪懈褌械谢褜薪芯械 褌械褋褌懈褉芯胁邪薪懈械 锌褉芯褟褋薪褟械褌 谢懈褕褜 褔邪褋褌褜 褉械邪谢褜薪芯泄 泻邪褉褌懈薪褘 (泻褌芯-薪懈斜褍写褜 胁懈写械谢 泻芯谐写邪-谢懈斜芯 褋褉邪胁薪懈褌械谢褜薪芯械 褌械褋褌懈褉芯胁邪薪懈械, 褋 泻芯褌芯褉褘屑 斜褘 胁褋械 褋芯谐谢邪褋懈谢懈褋褜? 携 - 薪械褌). 袩芯褌芯屑褍 胁邪屑 褋褌芯懈褌 锌芯锌褉芯斜芯胁邪褌褜 械谐芯, 褔褌芯 斜褘 褍斜械写懈褌褜褋褟 胁 褝褌芯屑 谢懈褔薪芯.

Anyway, rather than post links to benchmarks for people to argue over (you can use Google to find them yourself if you like), instead, I'm going to provide some quotes from people using Nginx in the real world, under real load, serving real applications and websites.


__Nginx, 泻邪泻 胁褘褋芯泻芯锌褉芯懈蟹胁芯写懈褌械谢褜薪褘泄 邪泻褋械谢械褉懈褉褍褞褖懈泄 Proxy__

袝写懈薪褋褌胁械薪薪芯械 懈蟹胁械褋褌薪芯械 屑薪械 褋褌芯谢褜 胁褘褋芯泻芯锌褉芯懈蟹胁芯写懈褌械谢褜薪芯械 褉械褕械薪懈械, 泻芯褌芯褉芯械 写邪械褌 胁褋械 薪褍卸薪褘械 胁邪屑 胁芯蟹屑芯卸薪芯褋褌懈 - 褝褌芯 Nginx.

袧邪 写邪薪薪褘泄 屑芯屑械薪褌 Nginx 薪邪 褍 屑械薪褟 芯褋褍褖械褋褌胁谢褟械褌 邪泻褋械谢械褉懈褉褍褞褖械械 锌褉芯泻褋懈褉芯胁邪薪懈械 斜芯谢械械 褔械屑 写械褋褟褌懈 屑懈谢谢懈芯薪芯胁 HTTP 蟹邪锌褉芯褋芯胁 胁 写械薪褜 (褝褌芯 薪械褋泻芯谢褜泻芯 褋芯褌 胁 写械薪褜), 懈 胁褋械 褝褌芯 薪邪 __芯写薪芯屑 褋械褉胁械褉械__. 袧邪 锌懈泻械 蟹邪谐褉褍蟹泻懈 Nginx 懈褋锌芯谢褜蟹褍械褌 15MB 袨袟校 懈 10% 锌褉芯褑械褋褋芯褉邪 胁 屑芯械泄 泻芯薪褎懈谐褍褉邪褑懈懈 (FreeBSD 6).

袩芯写 褌芯泄 卸械 薪邪谐褉褍蟹泻芯泄 Apache "褍屑懈褉邪械褌" (锌芯褋谢械 褋芯蟹写邪薪懈褟 芯泻芯谢芯 1000 锌褉芯褑械褋褋芯胁 懈 懈褋锌芯谢褜蟹褍褟 袘芯谐 蟹薪邪械褌 褋泻芯谢褜泻芯 袨袟校), Pound "褍屑懈褉邪械褌" (褋谢懈褕泻芯屑 屑薪芯谐芯 锌芯褌芯泻芯胁, 懈褋锌芯谢褜蟹褍褟 锌褉懈 褝褌芯屑 斜芯谢械械 400MB 袨袟校), 懈 胁 Lighty 褝褌邪 薪邪谐褉褍蟹泻邪 胁褘谢懈胁邪械褌褋褟 胁 芯泻芯谢芯 20 屑械谐邪斜邪泄褌薪褍褞 __褍褌械褔泻褍 锌邪屑褟褌懈__ 胁 褔邪褋 (懈 褋谢械谐泻邪 斜芯谢褜褕械 薪邪谐褉褍卸邪械褌 锌褉芯褑械褋褋芯褉). -- Bob Ippolito

__Nginx 胁 泻邪褔械褋褌胁械 胁褘褋芯泻芯锌褉芯懈蟹胁芯写懈褌械谢褜薪芯谐芯 胁械斜 褋械褉胁械褉邪__

袣芯薪泻褉械褌薪芯 胁 屑芯械泄 褉邪斜芯褌械 褟 懈褋锌芯谢褜蟹褍褞 褝褌芯 袩袨 泻邪泻 芯褋薪芯胁薪芯泄 胁械斜-褋械褉胁械褉 锌褉懈 锌芯褋褌褉芯械薪懈懈 斜械褋锌谢邪褌薪褘褏 褏芯褋褌懈薪谐芯胁. 携 褉邪蟹褉邪斜芯褌邪谢 薪械褋泻芯谢褜泻芯 褋锌械褑懈褎懈褔薪褘褏 屑芯写褍谢械泄 写谢褟 写芯斜邪胁谢械薪懈褟 斜邪薪械褉芯胁 懈 褍褔械褌邪 褋褌邪褌懈褋褌懈泻懈 锌芯褋械褖械薪懈褟 褋褌褉邪薪懈褑 懈 褋械泄褔邪褋 芯写懈薪 懈褏 薪邪褕懈褏 谐谢邪胁薪褘褏 褋械褉胁械褉芯胁 褋锌芯褋芯斜械薪 胁褘写械褉卸邪褌褜 薪邪谐褉褍蟹泻褍 胁 150-200Mbit/s 褋懈谢褜薪芯 鈥溠勓邪谐屑械薪褌懈褉芯胁邪薪薪芯谐芯鈥 褌褉邪褎懈泻邪 (胁褋械 蟹邪锌褉邪褕懈胁邪械屑褘械 褎邪泄谢褘 屑邪谢械薪褜泻懈械). 携 写褍屑邪褞, 褔褌芯 褝褌芯 褏芯褉芯褕懈泄 褉械蟹褍谢褜褌邪褌, 褌.泻. 褉邪薪褜褕械 薪邪 褝褌芯屑 卸械 褋械褉胁械褉械 Apache 写邪卸械 锌褉懈 胁褋械褏 胁芯蟹屑芯卸薪褘褏 芯锌褌懈屑懈蟹邪褑懈褟褏 薪械 屑芯谐 芯斜褉邪斜芯褌邪褌褜 斜芯谢械械 60-80Mbit/s. -- 袗谢械泻褋械泄 袣芯胁褘褉懈薪