{"id":1530,"date":"2024-08-15T19:20:57","date_gmt":"2024-08-15T11:20:57","guid":{"rendered":"https:\/\/blog.ttwow.top\/?p=1530"},"modified":"2026-06-19T21:18:05","modified_gmt":"2026-06-19T13:18:05","slug":"linux%e7%b3%bb%e7%bb%9f%e4%b8%8b%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%aenginx","status":"publish","type":"post","link":"https:\/\/blog.ttwow.top\/?p=1530","title":{"rendered":"Linux\u7cfb\u7edf\u4e0b\u5b89\u88c5\u914d\u7f6enginx"},"content":{"rendered":"<p><a href=\"https:\/\/blog.csdn.net\/qq_65732918\/article\/details\/131862373\">https:\/\/blog.csdn.net\/qq_65732918\/article\/details\/131862373<\/a><\/p>\n<h2>\u73af\u5883\uff1a<\/h2>\n<p><code>yum install -y gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-devel<\/code><\/p>\n<h2>\u4e0b\u8f7d<\/h2>\n<p><code>wget http:\/\/nginx.org\/download\/nginx-1.25.1.tar.gz<\/code><\/p>\n<h2>\u5b89\u88c5\u914d\u7f6e<\/h2>\n<pre><code class=\"language-shell\">#\u89e3\u538b\u5305\n tar -zxvf nginx-1.25.1.tar.gz\n#\u8f6c\u6362\u5230nginx\u6587\u4ef6\u5939\u4e0b\n cd nginx-1.25.1\n\n#\u914d\u7f6enginx\n.\/configure\n\n#\u7f16\u8bd1\u5b89\u88c5nginx\n#\u8fd9\u662f\u7f16\u8bd1\u548c\u5b89\u88c5\u4e00\u5757\u8fdb\u884c\uff08&amp;&amp;\uff09\uff0c\u4e5f\u53ef\u4ee5\u5206\u5f00\n    make&amp;&amp;make install<\/code><\/pre>\n<h2>\u8fd0\u884c<\/h2>\n<pre><code class=\"language-shell\">#\u8f6c\u6362\u5230sbin\u6587\u4ef6\u5939\u4e0b\n   cd \/usr\/local\/nginx\/sbin\n#\u8fd0\u884cnginx\n   .\/nginx<\/code><\/pre>\n<h2>\u4fee\u6539\u914d\u7f6e\u4f4d\u7f6e<\/h2>\n<p><code>\/usr\/local\/nginx\/conf<\/code><\/p>\n<h2>\u91cd\u542f<\/h2>\n<p><code>\/usr\/local\/nginx\/sbin\/nginx -s reload<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/blog.csdn.net\/qq_65732918\/article\/details\/13186 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[130],"tags":[60],"class_list":["post-1530","post","type-post","status-publish","format-standard","hentry","category-linux-ops","tag-nginx"],"_links":{"self":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts\/1530","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1530"}],"version-history":[{"count":2,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts\/1530\/revisions"}],"predecessor-version":[{"id":1532,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts\/1530\/revisions\/1532"}],"wp:attachment":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1530"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1530"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}