ChsInstall
Nginx涓枃鏂囨。 > 瀹夎Nginx
Contents |
[edit] 棰勭紪璇戠増
[edit] Linux 鍜 BSD 鐨勯缂栬瘧鍖
澶ч儴鍒 Linux 鍙戣鐗堝拰 BSD 琛嶇敓鐗堢殑婧愰噷閮芥湁 Nginx锛屼娇鐢ㄩ氬父瀹夎鍏朵粬杞欢鐨勬柟寮忓嵆鍙畨瑁咃紙鍦 Debian 涓婄敤 apt-get锛孏entoo 涓婄敤 emerge锛孎reeBSD 涓婄敤 ports锛岀瓑绛夛級銆
璇锋敞鎰忚繖浜涘寘閫氬父涓嶆槸鏈鏂扮増鏈傚鏋滀綘鎯充娇鐢ㄦ渶鏂板姛鑳藉拰 Bug 淇锛屽缓璁粠婧愮爜缂栬瘧瀹夎锛堝疄闄呬笂锛岀紪璇戝畨瑁呬篃鐩稿綋绠鍗曪級銆
[edit] Win32 棰勭紪璇戝寘
鐜板湪nginx瀹樻柟宸茬粡鍙戝竷浜嗗畼鏂圭増鐨刵ginx/Win32浜嗭紝娆㈣繋澶у浣跨敤銆傚湪鍏堝墠Kevin Worthington 璐熻矗缁存姢涓涓 Windows 鐨勬渶鏂伴缂栬瘧鐗堝垎鏀紝濡傛灉鎮ㄥ凡缁忎範鎯簡浣跨敤杩欎釜鐗堟湰涔熷彲浠ラ夋嫨浣跨敤杩欎釜鐗堟湰鐨勩
[edit] 婧愪唬鐮佸彂甯
Nginx 鏈変袱涓増鏈細绋冲畾鐗 (1.0.x), 鍜 鍘嗗彶绋冲畾鐗 (0.8.x)銆傚悓鏃讹紝鎴戜滑鍦╯vn涓篃鎻愪緵寮鍙戠増銆傚紑鍙戠増鍒嗘敮浼氳緝蹇幏寰楁柊鍔熻兘鍜岀己闄蜂慨澶嶏紝浣嗗悓鏃朵篃鍙兘閬囧埌鏂扮殑缂洪櫡銆備竴鏃︽洿鏂扮ǔ瀹氫笅鏉ワ紝灏变細琚姞鍏ョǔ瀹氱増鍒嗘敮銆傜劧鑰屾柊鍔熻兘涓嶄竴瀹氫細琚姞鍒版棫鐨勭ǔ瀹氱増涓幓銆
浣滀负鐢熶骇鐜锛岄氬父寤鸿浣跨敤绋冲畾鐗堬紝浣嗗叾瀹炲紑鍙戠増鏈篃鐩稿綋绋冲畾銆傚鏋滄偍鐨勭綉绔欎笉鏄熀浜嶧cgi锛屽缓璁娇鐢ㄥ紑鍙戠増銆傝鍙傝 FAQ銆
[edit] 绋冲畾鐗
Nginx 1.0.2
2011骞5鏈10鏃
changelog
[edit] 鍘嗗彶绋冲畾鐗
Nginx 0.8.54
2010骞12鏈14鏃
changelog
[edit] 寮鍙戠増
svn://svn.nginx.org
鍖呭惈瀹為獙鎬х殑鍔熻兘鍜岀己闄疯ˉ涓
[edit] 浠庢簮浠g爜缂栬瘧 Nginx
鎶婃簮鐮佽В鍘嬬缉涔嬪悗锛屽湪缁堢閲岃繍琛屽涓嬪懡浠わ細
./configure make sudo make install
榛樿鎯呭喌涓嬶紝Nginx 浼氳瀹夎鍦 /usr/local/nginx銆傞氳繃璁惧畾缂栬瘧閫夐」锛屼綘鍙互鏀瑰彉杩欎釜璁惧畾銆
[edit] Nginx/Win32 瀹夎
涓轰簡瀹夎Nginx/Win32锛岄渶鍏堜笅杞藉畠銆傜劧鍚庤В鍘嬩箣锛岀劧鍚庤繍琛屽嵆鍙備笅闈互C鐩樻牴鐩綍涓轰緥璇存槑涓嬶細
cd C: cd C:\nginx-0.8.54 start nginx
Nginx/Win32鏄繍琛屽湪涓涓帶鍒跺彴绋嬪簭锛岃岄潪windows鏈嶅姟鏂瑰紡鐨勩傛湇鍔″櫒鏂瑰紡鐩墠杩樻槸寮鍙戝皾璇曚腑锛孨ginx/Win32鍙互浣跨敤浠ヤ笅寮鍏虫潵绠$悊瀹冿細
Nginx -s stop 蹇熷叧闂璑ginx锛屽彲鑳戒笉淇濆瓨鐩稿叧淇℃伅锛屽苟杩呴熺粓姝eb鏈嶅姟銆傦紙quick exit锛 Nginx -s quit 骞崇ǔ鍏抽棴Nginx锛屼繚瀛樼浉鍏充俊鎭紝鏈夊畨鎺掔殑缁撴潫web鏈嶅姟銆傦紙graceful exit锛 Nginx -s reload 鍥犳敼鍙樹簡Nginx鐩稿叧閰嶇疆锛岄渶瑕侀噸鏂板姞杞介厤缃岄噸杞姐傦紙changing configuration锛宻tart a new worker,quitting an old worker gracefully.) Nginx -s reopen 閲嶆柊鎵撳紑鏃ュ織鏂囦欢銆(reopenging log files)