{"id":36,"date":"2023-02-12T19:03:26","date_gmt":"2023-02-12T11:03:26","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=36"},"modified":"2023-02-12T19:03:40","modified_gmt":"2023-02-12T11:03:40","slug":"centos-install-nginx","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/12\/centos-install-nginx\/","title":{"rendered":"CentOS\u4e0b\u5b89\u88c5\u914d\u7f6eNginx"},"content":{"rendered":"<h2>\u5b89\u88c5\u7f16\u8bd1\u73af\u5883<\/h2>\n<pre><code class=\"language-bash\"># yum install wget git gcc gcc-c++ g++ autoconf autoconf2.13 automake make m4<\/code><\/pre>\n<h2>\u5b89\u88c5\u914d\u7f6eNginx<\/h2>\n<pre><code class=\"language-bash\"># wget http:\/\/nginx.org\/download\/nginx-1.14.0.tar.gz\n# wget https:\/\/www.openssl.org\/source\/openssl-1.1.0h.tar.gz\n# wget http:\/\/www.zlib.net\/zlib-1.2.11.tar.gz\n# wget https:\/\/ftp.pcre.org\/pub\/pcre\/pcre-8.42.tar.gz\n# wget https:\/\/github.com\/alibaba\/nginx-http-concat\/archive\/1.2.2.tar.gz -O nginx-http-concat-1.2.2.tar.gz\n# tar -zxf nginx-1.14.0.tar.gz \n# tar -zxf openssl-1.1.0h.tar.gz \n# tar -zxf zlib-1.2.11.tar.gz \n# tar -zxf pcre-8.42.tar.gz \n# tar -zxf nginx-http-concat-1.2.2.tar.gz\n# git clone https:\/\/github.com\/arut\/nginx-rtmp-module\n# cd nginx-1.14.0\n# .\/configure --prefix=\/data\/server\/nginx \\\n              --with-pcre=..\/pcre-8.42 \\\n              --with-zlib=..\/zlib-1.2.11 \\\n              --with-http_ssl_module \\\n              --with-openssl=..\/openssl-1.1.0h \\\n              --add-module=..\/nginx-http-concat-1.2.2 \\\n              --add-module=..\/nginx-rtmp-module\n# make \n# make install\n# ln -s \/data\/server\/nginx\/sbin\/nginx \/usr\/sbin\/\n# nginx -v<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88c5\u7f16\u8bd1\u73af\u5883 # yum install wget git gcc gcc-c++ g++ autoconf  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[25],"class_list":["post-36","post","type-post","status-publish","format-standard","hentry","category-devops-base","tag-nginx"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/36","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=36"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/36\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}