nginx鐨勯噸鏂扮紪璇

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鐨勭増鏈強缂栬瘧鐨勫弬鏁般

鍗囩骇瀹屾垚锛

All posts

Other pages


Deprecated: 鏂囦欢 娌℃湁 comments.php 鐨勪富棰 鑷増鏈 3.0.0 璧峰凡寮冪敤锛屼笖娌℃湁鍙敤鐨勬浛浠c 璇峰湪鎮ㄧ殑涓婚涓寘鍚竴涓 comments.php 妯℃澘銆 in /www/wwwroot/liguoqi.site/wp-includes/functions.php on line 6078

鍙戣〃鍥炲

鎮ㄧ殑鐢靛瓙閭鍦板潃涓嶄細琚叕寮銆 蹇呭~椤瑰凡鐢 * 鏍囨敞