\n
wget https:\/\/openresty.org\/download\/openresty-1.15.8.1.tar.gz\r\ntar zxvf openresty-1.15.8.1.tar.gz\r\ncd<\/span> openresty-1.15.8.1<\/code><\/pre>\n\n
\u5b89\u88c5openresty<\/strong><\/span><\/div>\n<\/p>\n\u67e5\u770b\u5f53\u524dnginx\u7684\u7f16\u8bd1\u914d\u7f6e<\/p>\n
nginx -V<\/code><\/pre>\n\u5982\u4e0b\u6240\u793a\uff0c\"configure arguments\"\u5c31\u662f\u7f16\u8bd1nginx\u65f6\u7684\u914d\u7f6e<\/p>\n
nginx version: nginx\/1.14<\/span>.0<\/span>\r\nbuilt by gcc 4.8<\/span>.5<\/span> 20150623<\/span> (Red Hat 4.8<\/span>.5<\/span>-39<\/span>) (GCC) \r\nbuilt with<\/span> OpenSSL 1.0<\/span>.2<\/span>k-fips 26<\/span> Jan 2017<\/span>\r\nTLS SNI support enabled\r\nconfigure arguments<\/span>: --with<\/span>-http_ssl_module<\/code><\/pre>\n\u7f16\u8bd1openresty\uff0c\u628a\u521a\u624d\u7684\u914d\u7f6e\u52a0\u5230\"configure\"\u547d\u4ee4\u540e\u65b9\uff0c\u5982\u679c\u9700\u8981\u4f7f\u7528lua\u4e5f\u53ef\u4ee5\u52a0\u4e0a\"--with-luajit\"<\/p>\n
.\/configure --with-http_ssl_module --with-luajit\r\ngmake && gmake install<\/code><\/pre>\ngmake\u5373GNU make\uff0c\u4f7f\u7528\u5b83\u7684\u539f\u56e0\u662f\u975eGNU\u5e73\u53f0\u53ef\u80fd\u5360\u7528\u4e86make\u547d\u4ee4\uff0c\u5728linux\u7cfb\u7edf\u4e0b\u4e0d\u7528\u8003\u8651\u8fd9\u4e2a\u95ee\u9898\u3002GNU\uff0c\u5728Unix\u7cfb\u7edf\u53d1\u660e\u540e\uff0c\u5f00\u59cb\u51fa\u73b0\u95ed\u6e90\u6536\u8d39\u8f6f\u4ef6\uff0c\u4e8e\u662f\u6709\u4eba\u53d1\u8d77\u4e86\u81ea\u7531\u8f6f\u4ef6\u7684\u8ba1\u5212\uff0c\u5373GNU\u8ba1\u5212\uff0c\u5ba3\u626c\u5f00\u6e90\u7cbe\u795e\uff0c\u7f16\u8f91\u5668Emacs\u548c\u7f16\u8bd1\u5668GCC\u5c31\u5c5e\u4e8eGNU\u4e0b\u7684\u9879\u76ee\uff0c\u4f46\u662fGNU\u4e0b\u7f3a\u5c11\u7cfb\u7edf\u5185\u6838\uff0c\u540e\u6765\u673a\u7f18\u5de7\u5408\u5730\u4e0eLinux\u8fdb\u884c\u4e86\u5408\u4f5c\uff0c\u53d1\u5e03\u4e86GNU\/Linux\u3002<\/p>\n
\n
\u66f4\u6362\u914d\u7f6e\u6587\u4ef6<\/strong><\/span><\/div>\n<\/p>\n\u628a\u539f\u6709nginx\u914d\u7f6e\u6587\u4ef6\u79fb\u52a8\u5230openresty\u76ee\u5f55<\/p>\n
mv \/usr\/local<\/span>\/nginx\/conf\/*.conf \/usr\/local<\/span>\/openresty\/conf\r\nmv \/usr\/local<\/span>\/nginx\/conf\/conf.d \/usr\/local<\/span>\/openresty\/conf<\/code><\/pre>\n\n
\u505c\u6b62\u539fnginx<\/strong><\/span><\/div>\n<\/p>\nnginx -s stop<\/code><\/pre>\n\n
\u542f\u52a8openresty<\/strong><\/span><\/div>\n<\/p>\n\/usr\/local<\/span>\/openresty\/bin\/openresty<\/code><\/pre>\n\u5982\u679c\u63d0\u793a\"nginx: [warn] the \"ssl\" directive is deprecated, use the \"listen ... ssl\"\"\uff0c\u539f\u56e0\u662fnginx1.15\u7248\u672c\u53ca\u4ee5\u540e\u5df2\u7ecf\u4e0d\u9700\u8981\u4f7f\u7528ssl on\u547d\u4ee4\u4e86\uff0c\u53ef\u4ee5\u53bb\u6389\u3002<\/p>\n
\n
\u8f6f\u94fe\u63a5\u5230bin\u76ee\u5f55<\/strong><\/span><\/div>\n<\/p>\n\u5982\u679c\u89c9\u5f97\u547d\u4ee4\u4f7f\u7528\u4e0d\u65b9\u4fbf\u53ef\u4ee5\u76f4\u63a5\u8f6f\u94fe\u63a5\u5230bin\u76ee\u5f55\uff0c\u5e76\u6539\u540d\u4e3anginx<\/p>\n
ln -s \/usr\/local<\/span>\/openresty\/bin\/openresty \/usr\/local<\/span>\/bin\/nginx<\/code><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"wget https:\/\/openresty.org\/download\/openresty-1.15.8.1. […]<\/p>\n","protected":false},"author":63,"featured_media":165143,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-165142","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/165142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=165142"}],"version-history":[{"count":2,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/165142\/revisions"}],"predecessor-version":[{"id":165288,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/165142\/revisions\/165288"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/165143"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=165142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=165142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=165142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}