{"id":448,"date":"2023-02-25T13:11:41","date_gmt":"2023-02-25T05:11:41","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=448"},"modified":"2023-04-29T21:01:29","modified_gmt":"2023-04-29T13:01:29","slug":"install-openresty-under-linux","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/25\/install-openresty-under-linux\/","title":{"rendered":"Linux\u4e0b\u5b89\u88c5OpenResty"},"content":{"rendered":"<h2>OpenResty\u5b89\u88c5\u524d\u51c6\u5907<\/h2>\n<ul>\n<li>Centos:<\/li>\n<\/ul>\n<pre><code>yum install -y readline-devel pcre-devel openssl-devel gcc GeoIP-devel<\/code><\/pre>\n<p><!-- more --><\/p>\n<ul>\n<li>Debian\uff5cUbuntu<\/li>\n<\/ul>\n<pre><code>apt-get install libreadline-dev libncurses5-dev libpcre3-dev libssl-dev perl make build-essential libgeoip-dev<\/code><\/pre>\n<h2>geoip-api-c<\/h2>\n<p>Home\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/github.com\/maxmind\/geoip-api-c\">https:\/\/github.com\/maxmind\/geoip-api-c<\/a><\/p>\n<pre><code>wget -c https:\/\/github.com\/maxmind\/geoip-api-c\/releases\/download\/v1.6.12\/GeoIP-1.6.12.tar.gz\ntar -zxf GeoIP-1.6.12.tar.gz\ncd GeoIP-1.6.12\/\n.\/configure\nmake &amp;&amp; make install<\/code><\/pre>\n<h2>OpenResty\u5b89\u88c5<\/h2>\n<pre><code>wget https:\/\/openresty.org\/download\/openresty-1.15.8.1.tar.gz\ntar -zxf openresty-1.15.8.1.tar.gz\ncd openresty-1.15.8.1\n.\/configure --prefix=\/usr\/local\/openresty --with-luajit --with-pcre --with-http_gzip_static_module --with-http_realip_module --with-http_geoip_module --with-http_ssl_module --with-http_stub_status_module\nmake &amp;&amp; make install<\/code><\/pre>\n<pre><code># \/usr\/local\/openresty\/bin\/resty -V\nresty 0.23\nnginx version: openresty\/1.15.8.1<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>OpenResty\u5b89\u88c5\u524d\u51c6\u5907 Centos: yum install -y readline-devel pc [&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":[147],"class_list":["post-448","post","type-post","status-publish","format-standard","hentry","category-devops-base","tag-openresty"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/448","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=448"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/448\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=448"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}