Nginx缂栬瘧鍚庡氨涓涓皬鏂囦欢锛屼笉甯﹀姩鎬佸簱锛屽崌绾т篃鍙互鏃犵紳鍗囩骇锛屽苟涓嶅奖鍝嶈闂紝lnmp涓閿畨瑁呭寘瀹夎鐨勭幆澧冪洿鎺ユ寜涓嬮潰鐨勫懡浠ゆ墽琛屽氨鍙互锛屽叿浣撴兂鍗囩骇鐨勭増鏈彲浠ュ埌nginx涓婃煡鐪嬨
棣栧厛涓嬭浇Nginx锛氭墽琛寃get http://soft.vpser.net/web/nginx/nginx-1.2.7.tar.gz 鐗堟湰鍙互鑷繁淇敼锛屼篃鍙互鐩存帴鐢╪ginx瀹樼綉涓婄殑鍦板潃
鍐嶆墽琛 ./configure –user=www –group=www –prefix=/usr/local/nginx –with-http_stub_status_module –with-http_ssl_module –with-http_gzip_static_module –with-ipv6 缂栬瘧鍙傛暟濡傞渶娣诲姞鍙互鑷繁娣诲姞 銆
鐒跺悗make锛屼絾涓嶈make install
缂栬瘧瀹岋紝鍦╫bjs鐩綍涓嬫湁涓涓猲ginx鎵ц鏂囦欢锛屽氨鏄畠浜嗐
澶囦唤涓嬪師鏉ヨ佺殑nginx鏂囦欢
mv /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.old
鍦ㄦ妸鏂皁bjs涓嬬殑nginx cp鍒皊bin涓嬶紝鎵ц锛歝p objs/nginx /usr/local/nginx/sbin/nginx 銆
鎵ц /usr/local/nginx/sbin/nginx -t 娴嬭瘯涓嬶紝鏄剧ず娌℃湁闂銆
鍐嶆墽琛岋細make upgrade
鎵ц锛/usr/local/nginx/sbin/nginx -V 灏嗕細鍑虹幇nginx鐨勭増鏈強缂栬瘧鐨勫弬鏁般
鍗囩骇瀹屾垚锛
鍙戣〃鍥炲