{"id":212,"date":"2017-11-13T21:31:50","date_gmt":"2017-11-13T13:31:50","guid":{"rendered":"https:\/\/myscis.cn\/?p=212"},"modified":"2017-11-13T21:32:47","modified_gmt":"2017-11-13T13:32:47","slug":"centos-yum%e5%ae%89%e8%a3%85%e5%90%8e%e6%b7%bb%e5%8a%a0ngx_http_sub_module%e6%a8%a1%e5%9d%97","status":"publish","type":"post","link":"https:\/\/myscis.cn\/?p=212","title":{"rendered":"centos yum\u5b89\u88c5\u540e\u6dfb\u52a0ngx_http_sub_module\u6a21\u5757"},"content":{"rendered":"<ul>\n<li>\u9996\u5148\uff0c\u83b7\u53d6\u672c\u5730\u5b89\u88c5\u7684nginx\u7248\u672c \u3002<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true\">nginx -V\r\n#\u8bb0\u5f55\u4e0b\u201cconfigure arguments:\u201d\u540e\u9762\u6240\u6709\u53c2\u6570\uff0c\u7b2c\u4e09\u6b65\u66f4\u65b0nginx\u65f6\u9700\u8981\u3002<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-213\" src=\"https:\/\/myscis.cn\/wp-content\/uploads\/QQ\u622a\u56fe20171113210925.png\" alt=\"\" width=\"645\" height=\"275\" srcset=\"https:\/\/myscis.cn\/wp-content\/uploads\/QQ\u622a\u56fe20171113210925.png 645w, https:\/\/myscis.cn\/wp-content\/uploads\/QQ\u622a\u56fe20171113210925-300x128.png 300w\" sizes=\"auto, (max-width: 645px) 100vw, 645px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>\u5176\u6b21\uff0c\u4e0b\u8f7d\u5bf9\u5e94\u7248\u672c\u7684\u6e90\u7801\u3002<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true\">wget http:\/\/nginx.org\/download\/nginx-1.8.0.tar.gz\r\ntar -xvzf nginx-1.8.0.tar.gz<\/pre>\n<ul>\n<li>\u66f4\u65b0\u66ff\u6362nginx<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">#\u7ec8\u6b62nginx\r\nservice nginx stop\r\n#\u8fdb\u5165\u6e90\u7801\u76ee\u5f55\r\ncd nginx-1.8.0\r\n#\u7f16\u8bd1.\/configure \u540e\u9762\u52a0\u4e0a\u6700\u5f00\u59cb\u8ba9\u8bb0\u5f55\u4e0b\u6765\u7684\u90a3\u4e32\u5b57\u7b26\uff0c\u5e76\u5728\u540e\u9762\u52a0\u4e0a\u4f60\u8981\u52a0\u7684\u6a21\u5757\u5b89\u88c5\u6307\u4ee4\r\n.\/configure --prefix=\/etc\/nginx --sbin-path=\/usr\/sbin\/nginx\u2026\u2026\u2026 --with-http_sub_module\r\n#\u7136\u540e\u8fdb\u884cmake\uff0c\u4f46\u662f\u5207\u8bb0\u522b\u5b89\u88c5\r\nmake\r\n#\u522bmake_install\uff01\uff01\uff01\r\n#\u4fdd\u6301\u4e86\u539f\u914d\u7f6e\u6587\u4ef6\u4f4d\u7f6e\uff0c\u6240\u4ee5\u76f4\u63a5\u6d4b\u8bd5nginx\r\n.\/objs\/nginx -t\r\n#\u66ff\u6362\u73b0\u6709nginx\r\n#\u5907\u4efd \r\nmv \/usr\/sbin\/nginx \/usr\/sbin\/nginx-bak\r\n#\u66f4\u65b0\r\ncp .\/objs\/nginx \/usr\/sbin\/nginx\r\n#\u81f3\u6b64\uff0c\u6dfb\u52a0\u5b8c\u6210\uff0c\u542f\u52a8nginx\u3002\r\nservice nginx start<\/pre>\n<ul>\n<li>\u6700\u540e\uff0c\u518d\u6b21\u67e5\u770bnginx\u4fe1\u606f\u9a8c\u8bc1\u3002<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true\">nginx -V\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148\uff0c\u83b7\u53d6\u672c\u5730\u5b89\u88c5\u7684nginx\u7248\u672c \u3002 nginx -V #\u8bb0\u5f55\u4e0b\u201cconfigure arguments:\u201d&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-212","post","type-post","status-publish","format-standard","hentry","category-mo-ren"],"_links":{"self":[{"href":"https:\/\/myscis.cn\/index.php?rest_route=\/wp\/v2\/posts\/212","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myscis.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myscis.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myscis.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myscis.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=212"}],"version-history":[{"count":0,"href":"https:\/\/myscis.cn\/index.php?rest_route=\/wp\/v2\/posts\/212\/revisions"}],"wp:attachment":[{"href":"https:\/\/myscis.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myscis.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=212"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myscis.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}