FAQ

Page Discussion Edit History

GettingStartedJa

Contents

[edit] 銇┿亞銇椼仸Nginx銇伄銇?

Nginx銇儚銈ゃ儜銉曘偐銉笺優銉炽偣銇猈eb銈点兗銉愩仹銇傘倞銆併儣銉偔銈枫偟銉笺儛銇с仚銆傘仧銇忋仌銈撱伄姗熻兘銈掓寔銇c仸銇勩伨銇欍亴銆佷竾浜哄悜銇戙仹銇亗銈娿伨銇涖倱銆侼ginx銇竴鑸殑銇銇倛銇嗐仾鐢ㄩ斻伀浣裤倧銈屻伨銇欍:

  • Apache銇唬鏇裤仺銇椼仸姝e父銇銇忋伄鍚屾檪鎺ョ稓銈掑嚘鐞嗐仚銈嬨仧銈併伀: Nginx銇壒銇玏eb銉涖偣銉嗐偅銉炽偘銉椼儹銉愩偆銉銇汉姘椼亴銇傘倞銇俱仚銆傘亾銈屻伨銇с伀Nginx銇epoll 銇 kqueue 銈掍娇銇c仸50,000鍚屾檪鎺ョ稓銇ㄣ亜銇嗐伄銇屽牨鍛娿仌銈屻仸銇勩伨銇欍
  • 璨犺嵎鍒嗘暎銇欍倠銉椼儹銈偡銈点兗銉愩仺銇椼仸: Nginx銇FastCGI or HTTP 銈掍粙銇椼仸RailsPHP 銈€儣銉偙銉笺偡銉с兂銇儠銉兂銉堛偍銉炽儔銇ㄣ仐銇︿汉姘椼亴銇傘倞銇俱仚銆侰瑷瑾炪仹鏇搞亱銈屻丆PU娑堣不閲忋伄4鍒嗐伄1銇疨erlbal銇屼娇鐢ㄣ仐銇︺亜銇俱仚銆
  • 銉°兗銉伄銉椼儹銈偡銈点兗銉愩仺銇椼仸: 銇撱倢銇壒娈娿仾鍒嗛噹銇с仚銇fastmail.fm 銇с伅澶ф椿韬嶃仐銇︺亜銈嬨倛銇.
  • 绨″崢銇猍#installation 銈ゃ兂銈广儓銉笺儷] 銇偟銉笺儛銉笺仺銇椼仸娲荤敤銇椼伨銇, a clean configuration file, and few bugs : Nginx is easy to get running, and it almost never needs restarting. You can even upgrade the binary with zero downtime .

Nginx銇鑳姐仺銉戙儠銈┿兗銉炪兂銈广伀銇ゃ亜銇︺仌銈夈伀鐭ャ倠銇伅銆 Feature Overview Testimonials 銇儦銉笺偢銈掋仈瑕с亸銇犮仌銇勩

[edit] 鍕曚綔鐠板

  • gzip銉€偢銉ャ兗銉伀銇zlib 銉┿偆銉栥儵銉亴蹇呰銇с仚銆
  • rewrite銉€偢銉ャ兗銉伀銇pcre 銉┿偆銉栥儵銉亴蹇呰銇с仚銆
  • ssl銈点儩銉笺儓銇伅openssl銉┿偆銉栥儵銉亴蹇呰銇с仚銆

[edit] 銉銈︺兂銉兗銉

鍏紡銉銈︺兂銉兗銉夈儦銉笺偢 銈掕銇︺亸銇犮仌銇勩

Template:Anchor

[edit] 銈ゃ兂銈广儓銉笺儷

銈姐兗銈广儠銈°偆銉倰瑙e噸銇椼仸銆併偪銉笺儫銉娿儷銇嬨倝銇撱倢銈夈伄銈炽優銉炽儔銈掑疅琛屻仐銇︺亸銇犮仌銇勩:

./configure
make
sudo make install

銉囥儠銈┿儷銉堛仹銇丯ginx銇/usr/local/nginx銇偆銉炽偣銉堛兗銉仌銈屻伨銇欍傘偆銉炽偣銉堛兗銉厛銇鏇淬倓浠栥伄銈儣銈枫儳銉炽伅 銈炽兂銉戙偆銉檪銇偑銉椼偡銉с兂 銈掑鏇淬仐銇︺亸銇犮仌銇勩

[edit] 銉椼儵銉冦儓銉曘偐銉笺儬鍥烘湁銇敞鎰忎簨闋呫亰銈堛伋銉撱儷銉

  1. Notes on building Nginx on Ubuntu
  2. Installing Nginx on Fedora, RHEL or CentOS
  3. How to get the latest Nginx on Gentoo
  4. x86/64 build for Solaris
  5. How to Compile nginx on MacOSX
  6. Nginx building script for Slackware
  7. Nginx for Windows (32-bit); development, stable, and legacy binaries available

[edit] Nginx銈掑疅琛屻仚銈

root銇ㄣ仐銇/usr/local/nginx/sbin/nginx銈掑疅琛屻仐銇︺偟銉笺儛銈掕捣鍕曘仌銇涖伨銇欍傘亰濂姐伩銇цō瀹氥儠銈°偆銉/usr/local/nginx/conf/nginx.conf銈掔法闆嗐仐銇熷緦銇佹銇偝銉炪兂銉夈仹瑷畾銉曘偂銈ゃ儷銈掋儶銉兗銉夈仚銈嬩簨銇屻仹銇嶃伨銇欍:

: kill -HUP <code>cat /usr/local/nginx/logs/nginx.pid</code>

nginx.pid銇亗銇仧銇優銈枫兂銇с伅閬曘亞鍫存墍銇亗銈嬨亱銈傜煡銈屻伨銇涖倱銆俇buntu銇с伅娆°伄鍫存墍銇仾銈娿伨銇欍:

: /var/run/nginx.pid

銇撱仭銈夈倐銇斿弬鐓с亸銇犮仌銇勩:

[edit] 楂樺害銇猅opics