{"id":221626,"date":"2020-12-06T14:06:57","date_gmt":"2020-12-06T06:06:57","guid":{"rendered":"http:\/\/4563.org\/?p=221626"},"modified":"2020-12-06T14:06:57","modified_gmt":"2020-12-06T06:06:57","slug":"linux-%e6%96%b0%e6%89%8b%e6%b1%82%e6%95%99%e4%b8%80%e4%b8%aa%e7%bc%96%e8%af%91-nginx-%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=221626","title":{"rendered":"Linux \u65b0\u624b\u6c42\u6559\u4e00\u4e2a\u7f16\u8bd1 nginx \u7684\u95ee\u9898"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Linux \u65b0\u624b\u6c42\u6559\u4e00\u4e2a\u7f16\u8bd1 nginx \u7684\u95ee\u9898               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : daijinming <\/span>  <span><i><\/i> 2<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u6211\u60f3\u5728\u4e00\u53f0\u6811\u8393\u6d3e\u4e0a\u7f16\u8bd1 nginx\uff0c\u5728\u6267\u884c .\/Configure \u7684\u65f6\u5019\u53d1\u73b0 linux \u7f3a\u5c11 openssl \u3001pcre \u3001zlib \u7b49\u5e93\uff0c\u65e0\u6cd5\u7f16\u8bd1\u901a\u8fc7\uff0c\u91c7\u7528 apt install \u4e5f\u6ca1\u80fd\u5b89\u88c5\u4e0a\u8fd9\u4e9b\u7ec4\u4ef6\uff0c\u975e\u5e38\u65e0\u52a9\u3002\u6211\u4e3b\u8981\u4e0d\u7406\u89e3\u8fd9\u4e2a\u7f16\u8bd1\u7684\u8fc7\u7a0b\uff0c\u6709\u51e0\u4e2a\u95ee\u9898\u60f3\u6c42\u6559\u4e0b\uff1a1 \u3001openssl \u3001pcre \u3001zlib \u8fd9\u4e9b\u7ec4\u4ef6\u5982\u4f55\u53ef\u4ee5\u5b89\u88c5\u5230 linux \u4e0b\uff0c \u4ed6\u4eec\u662f\u4ee5\u4ec0\u4e48\u5f62\u5f0f\u5b58\u5728\u4e8e linux \u7684\u90a3\u4e2a\u76ee\u5f55\u4e0b 2 \u3001\u6211\u770b\u7f51\u4e0a\u4e5f\u6709\u91c7\u7528\u4e0b\u8f7d openssl \u3001pcre \u3001zlib \u6e90\u7801\u7684\u65b9\u5f0f\uff0c\u5728\u7f16\u8bd1 nginx \u7684\u65f6\u5019\u6307\u5b9a\u6e90\u7801\u76ee\u5f55\uff0c\u8fd9\u79cd\u65b9\u5f0f\u548c\u5b89\u88c5\u4e8c\u8fdb\u5236\u7684\u7ec4\u4ef6\u6709\u4ec0\u4e48\u5f02\u540c 3 \u3001nginx \u7f16\u8bd1\u540e\uff0c\u662f\u4e0d\u662f \u8fd9\u4e9b\u7ec4\u4ef6\u4e5f\u4f1a\u7f16\u8bd1\u8fdb\u4e8c\u8fdb\u5236\u7a0b\u5e8f\u4e2d\uff1f\uff1f\u4e0d\u541d\u8d50\u6559<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>31<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4478517\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 37Y37 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u76f4\u63a5 apt \u5b89\u88c5\u5373\u53ef\uff0c\u4f1a\u81ea\u52a8\u5b89\u88c5\u6240\u6709\u4f9d\u8d56                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4478518\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : bleepbloop <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8bd5\u4e00\u4e0b\u662f\u4e0d\u662f\u53eb openssl-dev \u3001pcre-dev \u3001zlib-dev \u3002\u3002\u3002\u3002<br \/>\u53e6\u5916 g++\u3001make \u3001autoconf \u4e4b\u7c7b\u5e94\u8be5\u4e5f\u5f97\u88c5\uff0c\u4e0d\u8fc7\u6811\u8393\u6d3e\u53ef\u80fd\u81ea\u5e26                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4478519\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : bleepbloop <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6216\u8005 libopenssl \u3001libpcre \u3001libzlib \u6216\u8005 libopenssl-dev \u3001libpcre-dev \u3001libzlib-dev                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4478520\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ztechstack <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             zlib1g openssl libpcre3                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4478521\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ztechstack <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ztechstack \u56de\u590d\u9519\u4e86\uff0c\u8fd9\u4e2a\u662f\u76f4\u63a5\u5b89\u88c5 nginx \u7684\u4f9d\u8d56\u5305\uff0c\u5305\u540d\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4478522\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jimrok <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u56e0\u4e3a nginx \u7528\u7684\u662f\u9759\u6001\u7f16\u8bd1\uff0c\u76f4\u63a5\u5c06\u8fd9\u4e9b\u4ee3\u7801\u7f16\u8bd1\u8fdb nginx \u91cc\uff0c\u4e0d\u518d\u4f9d\u8d56\u7cfb\u7edf\u7684\u5e93\uff0c\u8fd9\u6837\u4fdd\u8bc1\u8fdb\u7a0b\u7684\u7a33\u5b9a\u6027                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4478523\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mingl0280 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6811\u8393\u6d3e\u4e0d\u77e5\u9053\u4f60\u7528\u7684\u5565\u7cfb\u7edf\uff0c\u4f46\u662f\u5982\u679c\u662f Debian \u7cfb\u6781\u7aef\u4e0d\u5efa\u8bae\u7f16\u8bd1\u5b89\u88c5\u3002debian \u7cfb\u5c31\u597d\u597d\u53bb\u7528 apt install nginx                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4478524\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : fanlis <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7f16\u8bd1\u5b89\u88c5 nginx \u7684\u65f6\u5019\uff0c\u4e00\u822c\u90fd\u662f\u7f3a\u5c11\u54ea\u4e2a\u4f9d\u8d56\uff0c\u5c31\u5355\u72ec\u53bb\u4e0b\u8f7d\u7f16\u8bd1\u5177\u4f53\u7684\u4f9d\u8d56\u3002\u786e\u4fdd\u5728\u73af\u5883\u91cc\u9762\u6709\u4f9d\u8d56\u5c31\u884c<\/p>\n<p>\u8fd9\u79cd\u76f4\u63a5\u641c\u7d22\u79bb\u7ebf\u5b89\u88c5 nginx \u5c31\u884c\uff0c\u8d44\u6599\u8fd8\u633a\u591a\u7684                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4478525\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : daijinming <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @fanlis \u8ffd\u95ee\u4e0b\u670b\u53cb\uff0c\u6bd4\u5982\u6211\u4e0b\u8f7d\u4e86 PCRE \u7684\u6e90\u7801\uff0c\u662f\u4e0d\u662f\u6211\u8981\u628a PCRE \u7f16\u8bd1\u6210 .so \u653e\u5230 lib64 \u5c31\u884c\uff1f\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4478526\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : aflow <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ea\u662f\u60f3\u5b89\u88c5\u4f7f\u7528\u7684\u8bdd\uff0c\u7528 docker \u5b89\u88c5\uff0c\u65b9\u4fbf\u5feb\u6377                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4478527\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : smilzman <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             .\/configure &#8211;help \u770b\u4e00\u4e0b\uff0c\u53ef\u4ee5\u76f4\u63a5\u6307\u5b9a\u6e90\u7801\u8def\u5f84<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>&#8211;with-openssl=DIR<br \/>&#8211;with-pcre=DIR<br \/>&#8211;with-zlib=DIR<\/p>\n<p>DIR \u662f openssl \u7b49\u6e90\u7801\u7684\u8def\u5f84~                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4478528\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : fanlis <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @daijinming <br \/>@smilzman <br \/>#11 \u8fd9\u6837\u6307\u5b9a\u5c31\u884c\uff0c\u5176\u5b83\u7684\u4f9d\u8d56\u76f4\u63a5 <br \/>make<br \/>make install \u5c31\u884c\uff0c<br \/>\u5177\u4f53\u8981\u770b\u5177\u4f53\u7684\u4f9d\u8d56\u7684\u5b89\u88c5\u4f4d\u7f6e\uff0c\u5f88\u591a\u4f9d\u8d56\u7684 install \u9ed8\u8ba4\u8def\u5f84\u672c\u6765\u5c31\u662f gcc \u7684\u73af\u5883\u4e2d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4478529\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Mecool <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5982\u679c\u662f deb \u7cfb\u5305\u7ba1\u7406\u5de5\u5177\uff0c\u90a3\u5c31 apt install build-essential libpcre3 libpcre3-dev openssl libssl-dev \u5b89\u88c5\u4f9d\u8d56                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4478530\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : love <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u54ea\u4e2a linux \u6ca1\u6709\u5e26 nginx \u5305\uff1f<br \/>\u5373\u4f7f\u4f60\u8981\u6539\u4e00\u4e0b\u7f16\u8bd1\u53c2\u6570\uff0c\u90a3\u4e5f\u53ef\u4ee5\u770b\u4e00\u4e0b\u6b64 linux \u539f\u59cb\u5305\u7f16\u8bd1\u811a\u672c\u770b\u770b\u4f9d\u8d56\u4ec0\u4e48\u5e93                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4478531\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : diaryevil <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8bf4\u7684\u7b80\u5355\u70b9\uff1a<br \/>1. openssl\uff0cpcre \u7b49\u7ec4\u4ef6\uff08\u6211\u4e00\u822c\u628a\u5b83\u4eec\u53eb\u5e93\uff09\uff0c\u901a\u8fc7 apt-get install \u83b7\u53d6\u7684\u4e00\u822c\u662f\u201c\u53ef\u6267\u884c\u7684\u4e8c\u8fdb\u5236+\u5e93\u6587\u4ef6\u201d\uff08\u6709\u7684\u53ef\u80fd\u8fde\u4e8c\u8fdb\u5236\u90fd\u6ca1\u6709\uff0c\u6709\u7684 dev \u5e93\u8fd8\u4f1a\u5e26\u5404\u79cd\u5934\u6587\u4ef6\uff09\uff0c\u6bd4\u5982 openssl\uff0cinstall \u540e\u4f60\u5c31\u53ef\u4ee5\u4f7f\u7528 openssl \u547d\u4ee4\u884c\u4e86\uff08\u53ef\u6267\u884c\u7684\u547d\u4ee4\u884c\u5c31\u662f\u53ef\u6267\u884c\u4e8c\u8fdb\u5236\u6587\u4ef6\uff09\uff1b\u5b58\u653e\u4f4d\u7f6e\u5e38\u89c1\u7684\u662f \/usr\/bin \uff08\u4e8c\u8fdb\u5236\uff09\uff0c\/lib\/\uff08\u5e93\u6587\u4ef6\uff09\u7b49\u7b49<\/p>\n<p>2. \u7f16\u8bd1\u4e0d\u9700\u8981\u53ef\u6267\u884c\u4e8c\u8fdb\u5236\u6587\u4ef6\uff0c\u4e3b\u8981\u662f\u8981\u7ec4\u4ef6\u5e93\uff0c\u6bd4\u65b9\u8bf4 nginx \u7684 SSL \u529f\u80fd\u5c31\u9700\u8981 openssl \u7ec4\u4ef6\u5e93\uff0c\u7f16\u8bd1\u540e\u8fd9\u4e2a\u5e93\u5c31\u4f1a\u88ab\u7f16\u8fdb\u53bb\u3002\u6240\u4ee5\u4e0b\u8f7d\u7ec4\u4ef6\u6e90\u7801\u540e&#8211;&gt;\u7f16\u8bd1\u7ec4\u4ef6&#8211;&gt;\u83b7\u5f97\u7ec4\u4ef6\u5e93&#8211;&gt;\u7f16\u8bd1 nginx \u65f6\u5019\u5c06\u7ec4\u4ef6\u5e93\u8def\u5f84\u6307\u5b9a\u597d\uff08\u6216\u8005\u653e\u5728\u9ed8\u8ba4\u7684 PATH \u4e0b\uff09&#8211;&gt;\u7f16\u8bd1 nginx \u5c31\u628a\u7ec4\u4ef6\u5e26\u8fdb\u53bb\u4e86\uff0c\u8fd9\u662f\u9759\u6001\u7f16\u8bd1\uff0c\u52a8\u6001\u7f16\u8bd1\u4f1a\u7a0d\u5fae\u6709\u4e9b\u4e0d\u540c<\/p>\n<p>3. \u5f53\u7136\uff0c\u4f60\u8981\u662f\u91c7\u7528\u52a8\u6001\u7f16\u8bd1\u7684\u65b9\u5f0f\uff0c\u4f60\u81ea\u5df1\u4e86\u89e3\u4e4b\u540e\u81ea\u884c\u5b9a\u593a\uff0c\u5c31\u50cf 6L \u8bf4\u7684\uff0c\u9759\u6001\u7f16\u8bd1\u4e0d\u518d\u4f9d\u8d56\u7cfb\u7edf\u7684\u5e93\uff0c\u52a8\u6001\u7f16\u8bd1\u653e\u5f03\u4e86\u8fd9\u65b9\u9762\u7684\u7a33\u5b9a\u6027\u6362\u6765\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u7684\u81ea\u4e3b\u6027\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4478532\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : diaryevil <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @diaryevil \u5982\u679c\u6709\u8bf4\u7684\u4e0d\u5bf9\u7684\u4e5f\u671b\u5404\u4f4d\u4e0d\u541d\u8d50\u6559                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4478533\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gstqc <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u66f4\u6b63 jimrok \u7684\u8bf4\u6cd5<br \/>dev \u6216 devel \u7684\u5305\u5e76\u4e0d\u63d0\u4f9b\u6e90\u7801\uff0c\u53ea\u6709\u5934\u6587\u4ef6<br \/>\u53ea\u662f\u544a\u8bc9\u7f16\u8bd1\u5668\uff0c\u7cfb\u7edf\u7684\u8fd9\u4e9b\u52a8\u6001\u94fe\u63a5\u5e93\u6709\u54ea\u4e9b\u53d8\u91cf\u3001\u51fd\u6570\u7b49\u7b49<\/p>\n<p>\u9759\u6001\u7f16\u8bd1\u4f9d\u8d56\u5e93\u9700\u8981\u4e0b\u8f7d\u5305\u7684\u6e90\u7801\u5e76\u5728\u7f16\u8bd1\u8fc7\u7a0b\u4e2d\u7f16\u8bd1\u8fd9\u4e9b\u5e93\u5e76\u9759\u6001\u94fe\u63a5\u8fdb nginx \u7684\u4e8c\u8fdb\u5236\u6587\u4ef6                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4478534\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cmostuor <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @fanlis \u4e0d\u5efa\u8bae make install \u8fd9\u6837\u5b89\u88c5 \u4e0d\u597d\u7ba1\u7406                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4478535\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : creanme <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u522b\u7f16\u8bd1\u4e86\uff0c\u4ee5\u524d\u6211\u4e0d\u61c2\uff0c\u7167\u7740 csdn \u4e0a\u9762\u5199\u7684\u7f16\u8bd1 nginx\uff0c\u5728\u4e91\u670d\u52a1\u5668\u4e0a\u7f16\u8bd1\u4e86\u4e00\u4e2a\u591a\u5c0f\u65f6\u90fd\u6ca1\u7f16\u8bd1\u597d\uff0c\u800c\u4e14\u670d\u52a1\u5668\u76f4\u63a5\u7ed9\u6211\u9650\u5236\u4e86 cpu \u9891\u7387\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4478536\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : vincenttone <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u662f\u56e0\u4e3a\u4f60\u7f16\u8bd1 nginx \u9700\u8981\u4f9d\u8d56\u8fd9\u4e9b\u5e93\uff0c\u6240\u4ee5\u4f60\u9700\u8981\u7f16\u8bd1\u8fd9\u4e9b\u5e93\uff0c\u4e5f\u5c31\u662f\u81ea\u5df1\u4e0b\u5bf9\u5e94\u7684\u6e90\u7801\u518d\u7f16\u8bd1\u4e00\u4e0b\uff0c\u8def\u5f84\u7684\u8bdd\u9ed8\u8ba4\u8def\u5f84\u5c31\u53ef\u4ee5\u4e86\u3002<br \/>\u8fd8\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u5bf9\u5e94\u7684\u8f6f\u4ef6\u7ba1\u7406\u5668\u5b89\u88c5\uff0c\u5177\u4f53\u770b\u4f60\u7684 linux \u53d1\u884c\u7248\uff08 debian \u7684 apt \u3001centos \u7684 yum \u3001arch \u7684 pacman \u7b49\uff09\uff0c\u53ef\u4ee5\u4f7f\u7528\u5bf9\u5e94\u7684\u547d\u4ee4 search \u4e00\u4e0b dev \u5305\uff0c\u6bd4\u5982 openssl-dev \u4e4b\u7c7b\u7684\uff0c\u4e0d\u540c\u7684\u5305\u7ba1\u7406\u5668\u540d\u5b57\u4e0d\u4e00\u6837\uff0c\u5b89\u88c5\u5b8c\u7f16\u8bd1\u5c31\u53ef\u4ee5\u4e86\u3002<br \/>\u4e5f\u53ef\u4ee5\u5e72\u8106\u76f4\u63a5\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u5b89\u88c5 nginx\uff0c\u4e0d\u4e00\u5b9a\u9700\u8981\u81ea\u884c\u7f16\u8bd1\uff0c\u8fd8\u8981\u8003\u8651\u4f9d\u8d56\u3002\u81ea\u5df1\u7f16\u8bd1\u53ef\u80fd\u4e3a\u4e86\u66f4\u597d\u7684\u638c\u63a7\u6216\u8005\u7814\u7a76\u6e90\u7801\uff0c\u4e0d\u7136\u80e1\u4e71.\/configure \u4f60\u81ea\u5df1\u90fd\u4e0d\u77e5\u9053\u4f60\u5728\u505a\u4ec0\u4e48\u3002<br \/>\u5b9e\u5728\u8981\u81ea\u5df1\u7f16\u8bd1\uff0c\u6700\u597d\u6709\u70b9 c \u8bed\u8a00\u548c\u64cd\u4f5c\u7cfb\u7edf\u77e5\u8bc6\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4478537\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : shlabc <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             mkdir -p \/usr\/local\/src\/pcre &amp;&amp; cd \/usr\/local\/src\/pcre<br \/>chmod -R 777 \/usr\/local\/src<\/p>\n<p>wget ftp:\/\/ftp.csx.cam.ac.uk\/pub\/software\/programming\/pcre\/pcre-8.41.tar.gz<br \/>tar zvxf pcre-8.41.tar.gz<br \/>cd pcre-8.41<br \/>ll<\/p>\n<p>.\/configure &#8211;prefix=\/usr\/local\/ins\/pcre-8.41<\/p>\n<p>make &amp;&amp; make install<\/p>\n<p>ln -s \/usr\/local\/ins\/pcre-8.41 \/usr\/local\/pcre<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\u4ee5\u4e0a\uff0c\u662f\u6211\u5728 centos6.10 \u4e0b\u7f16\u8bd1 nginx \u4f9d\u8d56\u7684\u4e00\u4e2a\u4f8b\u5b50\uff0c\u539f\u7406\uff0c\u4e0a\u9762\u7684\u90fd\u8bf4\u5b8c\u4e86<\/p>\n<p>zlib-1.2.11.tar.gz<br \/>openssl-1.1.0g.tar.gz                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4478538\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gstqc <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @shlabc chmod -R 777 \u7684\u52c7\u58eb<br \/>\u8fd9\u6837\u5e72\u4e0d\u4f1a\u88ab\u5f00\u9664\u5417                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4478539\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : shlabc <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @gstqc <br \/>\u4ec5\u4f9b\u53c2\u8003\uff0c\u6ca1\u60f3\u624b\u628a\u624b\u4e00\u70b9\u70b9\u6559\u5b66\uff0c\u662f\u6211\u7684\u758f\u5ffd\u3002<br \/>\u8fd9\u662f\u6211\u4ece\u865a\u62df\u673a\u5b9e\u9a8c\u811a\u672c\u91cc\u6458\u51fa\u6765\u7684\u3002\u540e\u9762\u6709\u5220\u9664\u6216\u53d8\u66f4\u6743\u9650\u6b65\u9aa4\uff0c\u6709\u68c0\u67e5\u811a\u672c\u53ca\u6b65\u9aa4\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4478540\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : julyclyde <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @shlabc \u4e0d\u662f\u624b\u628a\u624b\u7684\u95ee\u9898\uff0c\u800c\u662f\u6839\u672c\u5c31\u662f\u9519\u7684\u5185\u5bb9\u7684\u95ee\u9898                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4478541\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : huangmingyou <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             1. \u786e\u4fdd \/etc\/apt\/sources.list \u91cc\u9762\u6709 deb-src \u5f00\u5934\u7684\u6e90\u8bbe\u7f6e<br \/>2. sudo apt build-dep nginx<\/p>\n<p>\u5c31\u4f1a\u628a\u7f16\u8bd1 nginx \u9700\u8981\u7684\u6240\u6709\u4f9d\u8d56\u6587\u4ef6\u90fd\u5b89\u88c5\u597d\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4478542\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : huangmingyou <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             [email&#160;protected]:\/home\/hmy# apt build-dep nginx<br \/>\u6b63\u5728\u8bfb\u53d6\u8f6f\u4ef6\u5305\u5217\u8868&#8230; \u5b8c\u6210<br \/>\u6b63\u5728\u8bfb\u53d6\u8f6f\u4ef6\u5305\u5217\u8868&#8230; \u5b8c\u6210<br \/>\u6b63\u5728\u5206\u6790\u8f6f\u4ef6\u5305\u7684\u4f9d\u8d56\u5173\u7cfb\u6811<br \/>\u6b63\u5728\u8bfb\u53d6\u72b6\u6001\u4fe1\u606f&#8230; \u5b8c\u6210<br \/>\u4e0b\u5217 [\u65b0] \u8f6f\u4ef6\u5305\u5c06\u88ab\u5b89\u88c5\uff1a<br \/> dh-systemd libluajit-5.1-dev libmhash-dev libpam0g-dev libperl-dev<br \/>\u5347\u7ea7\u4e86 0 \u4e2a\u8f6f\u4ef6\u5305\uff0c\u65b0\u5b89\u88c5\u4e86 5 \u4e2a\u8f6f\u4ef6\u5305\uff0c\u8981\u5378\u8f7d 0 \u4e2a\u8f6f\u4ef6\u5305\uff0c\u6709 10 \u4e2a\u8f6f\u4ef6\u5305\u672a\u88ab\u5347\u7ea7\u3002<br \/>\u9700\u8981\u4e0b\u8f7d 2,566 kB\/2,993 kB \u7684\u5f52\u6863\u3002<br \/>\u89e3\u538b\u7f29\u540e\u4f1a\u6d88\u8017 16.6 MB \u7684\u989d\u5916\u7a7a\u95f4\u3002<br \/>\u60a8\u5e0c\u671b\u7ee7\u7eed\u6267\u884c\u5417\uff1f [Y\/n]                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4478543\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : daijinming <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Mecool \u4f60\u7ed9\u7684\u8fd9\u4e2a\u547d\u4ee4\u4e0d\u9519\uff0c\u4e0d\u8fc7\u8fd8\u5dee zlib \u627e\u4e0d\u5230                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4478544\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : daijinming <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @diaryevil \u611f\u8c22\u5206\u4eab                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4478545\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yklaxds <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u8fd9\u79cd\u9700\u6c42\u8bd5\u8bd5 Gentoo\u2026 \u5982\u679c\u4e0d\u662f\u975e\u8981 Linux\uff0cfreebsd \u4e5f\u662f\u53ef\u4ee5\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4478546\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : buffzty <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             nginx \u4f9d\u8d56\u90a3\u4e9b\u662f\u4f9d\u8d56\u4ed6\u4eec\u7684\u9759\u6001\u5e93\u6216\u8005\u52a8\u6001\u5e93. \u4f60\u7528 apt install libxxx-dev \u5c31\u80fd\u4e0b\u8f7d\u5230, .so \u548c.a \u4f1a\u5b89\u88c5\u5230 \/usr\/lib \u76ee\u5f55 <br \/>.h \u5934\u6587\u4ef6\u4f1a\u5b89\u88c5\u5230 \/usr\/include \u76ee\u5f55. \u8fd9 2 \u4e2a\u76ee\u5f55\u9ed8\u8ba4\u662f\u5728\u5e93\u641c\u7d22\u76ee\u5f55\u548c\u5934\u6587\u4ef6\u641c\u7d22\u76ee\u5f55\u91cc\u7684,\u6240\u4ee5\u4f60\u4e0d\u5fc5\u6307\u5b9a\u5e93\u7684\u76ee\u5f55. \u5982\u679c\u4f60\u81ea\u5df1\u4e0b\u8f7d\u6e90\u7801\u7f16\u8bd1\u90a3\u4e48\u5c31\u8981\u544a\u8bc9\u7cfb\u7edf\u53bb\u54ea\u91cc\u627e\u5e93\u6587\u4ef6(.so .a). \u4e24\u8005\u6ca1\u6709\u4ec0\u4e48\u533a\u522b. \u552f\u4e00\u7684\u533a\u522b\u5c31\u662f apt \u5b89\u88c5\u7684\u5e93\u7248\u672c\u53ef\u80fd\u4e0d\u662f\u6700\u65b0\u7684, \u4f60\u81ea\u5df1\u5b89\u88c5\u7684\u53ef\u4ee5\u662f\u6700\u65b0\u7684.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4478547\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : daijinming <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @buffzty \u611f\u8c22\u5206\u4eab                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Linux \u65b0\u624b\u6c42\u6559\u4e00\u4e2a\u7f16\u8bd1 ng&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/221626"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=221626"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/221626\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=221626"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=221626"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=221626"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}