{"id":1258,"date":"2026-04-25T15:54:34","date_gmt":"2026-04-25T07:54:34","guid":{"rendered":"http:\/\/www.luwl.net\/?p=1258"},"modified":"2026-04-25T15:54:34","modified_gmt":"2026-04-25T07:54:34","slug":"%e5%ae%9d%e5%a1%94%e7%8e%af%e5%a2%83php%e6%9b%b4%e6%96%b0openssl%e4%b8%ba%e6%96%b0%e7%89%88%e6%9c%ac","status":"publish","type":"post","link":"http:\/\/www.luwl.net\/?p=1258","title":{"rendered":"\u5b9d\u5854\u73af\u5883php\u66f4\u65b0openssl\u4e3a\u65b0\u7248\u672c"},"content":{"rendered":"\n<p>centos\u81ea\u5e26\u7684openssl\u7684\u7248\u672c\u8f83\u8001\uff0c\u65b0\u7248\u7684openssl\u652f\u6301\u56fd\u5bc6\uff0c\u9ed8\u8ba4\u5b89\u88c5\u540e\u7248\u672c\u662f\u4e0d\u80fd\u7528\u7684\u3002<\/p>\n\n\n\n<p>php7.4\u652f\u6301\u7684openssl\u6700\u9ad8\u7248\u672c\u5c31\u662f1.1.1\uff0c1.1.1t\u662f\u6700\u540e\u4e00\u4e2a\u7248\u672c\uff0c\u66f4\u65b0\u4e3a\u6700\u65b0\u7248\u672c\u7684openssl\u540e\u518d\u7f16\u8bd1\u5b89\u88c5php\u5c31\u53ef\u4ee5\u4e3a\u6700\u65b0\u7248\u672c\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>1\u3001\u7cfb\u7edf\u5b89\u88c5\u5b8c\u6210\u540eyum update\uff0c\u8fdb\u884c\u7cfb\u7edf\u66f4\u65b0\u3002\n\u66f4\u65b0\u540e\u76f4\u63a5\u5b89\u88c5\u5b9d\u5854\u73af\u5883\uff0c\u4f1a\u81ea\u52a8\u5b89\u88c5\u5f88\u591a\u73af\u5883\u652f\u6301\uff0c\u4e0d\u7136openssl\u7f16\u8bd1\u4e0d\u8fc7\u3002\u5b89\u88c5\u5b9d\u5854\u540e\u4e0d\u8981\u5b89\u88c5php\u7b49\u73af\u5883\u3002\n2\u3001\u4e0b\u8f7dopenssl1.1.1t\u6e90\u7801\u3002\nhttps:&#47;&#47;github.com\/openssl\/openssl\/releases\/download\/OpenSSL_1_1_1t\/openssl-1.1.1t.tar.gz\ntar -zxvf openssl-1.1.1t.tar.gz \u547d\u4ee4\u89e3\u538b\u6587\u4ef6\u3002\ncd openssl-1.1.1t \u547d\u4ee4\u5207\u6362\u5230\u76ee\u5f55\u3002\n3\u3001\u8fdb\u884cconfig\u914d\u7f6e\n.\/config --prefix=\/usr\/local\/openssl --openssldir=\/usr\/local\/openssl shared zlib \n4\u3001\u8fdb\u884c\u7f16\u8bd1\nmake\n5\u3001\u8fdb\u884c\u5b89\u88c5\nmake install \n6\u3001\u914d\u7f6e\u6587\u4ef6\u4e2d\u589e\u52a0\u73af\u5883\u53d8\u91cf\uff1a\n\/etc\/profile \u6587\u4ef6\u4e2d\u589e\u52a0\nexport PATH=$PATH:\/usr\/local\/openssl\/bin\nexport LD_LIBRARY_PATH=\/usr\/local\/openssl\/lib\n7\u3001\u521b\u5efa\u52a8\u6001\u5e93\necho \"\/usr\/local\/openssl\/lib\" > sudo tee \/etc\/ld.so.conf.d\/openssl.conf\n8\u3001\u5237\u65b0\u52a8\u6001\u5e93\nldconfig<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>\u5b89\u88c5\u524d\n1\u3001\u901a\u8fc7which openssl \u2192 \u770b\u547d\u4ee4\u8def\u5f84\uff0c\u53ef\u80fd\u662f\/usr\/bin\/openssl\uff0c\n2\u3001\u53ef\u4ee5\u67e5\u770b\/usr\/local\/openssl\u76ee\u5f55\u662f\u5426\u5b58\u5728\uff0c\u7cfb\u7edf\u5982\u679c\u5df2\u7ecf\u5b58\u5728\u53ef\u4ee5\u5220\u9664\n\u5b89\u88c5\u5b8c\u6210\u540e\n1\u3001\u4f7f\u7528mv \/usr\/bin\/openssl \/usr\/bin\/openssl.bak  \n2\u3001\u518d\u521b\u5efa\u8f6f\u94fe\u63a5\uff0c\u6307\u5411\u4f60\u5b89\u88c5\u7684\u65b0\u7248\u672c\nln -s \/usr\/local\/openssl\/bin\/openssl \/usr\/bin\/openssl\n3\u3001\u5237\u65b0\u52a8\u6001\u5e93\uff08\u5fc5\u987b\u6267\u884c\uff09\nldconfig,\n\u53ef\u4ee5\u8ba9\u539f\u6765\u8def\u5f84\u7684openssl\u4e5f\u4f7f\u7528\u65b0\u5b89\u88c5\u7248\u672c\u3002<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>centos\u81ea\u5e26\u7684openssl\u7684\u7248\u672c\u8f83\u8001\uff0c\u65b0\u7248\u7684openssl\u652f\u6301\u56fd\u5bc6\uff0c\u9ed8\u8ba4\u5b89 &hellip; <a href=\"http:\/\/www.luwl.net\/?p=1258\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1258","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.luwl.net\/index.php?rest_route=\/wp\/v2\/posts\/1258","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.luwl.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.luwl.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.luwl.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.luwl.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1258"}],"version-history":[{"count":1,"href":"http:\/\/www.luwl.net\/index.php?rest_route=\/wp\/v2\/posts\/1258\/revisions"}],"predecessor-version":[{"id":1259,"href":"http:\/\/www.luwl.net\/index.php?rest_route=\/wp\/v2\/posts\/1258\/revisions\/1259"}],"wp:attachment":[{"href":"http:\/\/www.luwl.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.luwl.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1258"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.luwl.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}