{"id":7508,"date":"2020-05-18T10:45:26","date_gmt":"2020-05-18T02:45:26","guid":{"rendered":"https:\/\/kyle.ai\/blog\/?p=7508"},"modified":"2020-05-18T10:45:26","modified_gmt":"2020-05-18T02:45:26","slug":"%e5%9c%a8-home-%e7%9b%ae%e5%bd%95%e4%b8%8b%e5%ae%89%e8%a3%85-openssl","status":"publish","type":"post","link":"https:\/\/kyle.ai\/blog\/7508.html","title":{"rendered":"\u5728 Home \u76ee\u5f55\u4e0b\u5b89\u88c5 OpenSSL"},"content":{"rendered":"<p>\u672c\u6587\u5148\u5047\u8bbe\u4f60\u7684\u7cfb\u7edf\u662f ubuntu\uff0c\u7cfb\u7edf\u7684 openssl \u5e93\u592a\u65e7\uff0c\u53ef\u4ee5\u624b\u52a8\u88c5\u4e00\u4e2a\u65b0\u7248\u672c\u5230\u7528\u6237\u5bb6\u76ee\u5f55\uff0c\u4f8b\u5982\u662f <code>\/home\/ubuntu<\/code>\u3002<\/p>\n<p>1\u3001\u4e0b\u8f7d\u5b89\u88c5\u6587\u4ef6<\/p>\n<pre><code class=\"language-shell \">cd \/home\/ubuntu\nwget https:\/\/www.openssl.org\/source\/openssl-1.1.1b.tar.gz\ntar zxvf openssl-1.1.1b.tar.gz\ncd openssl-1.1.1b\n<\/code><\/pre>\n<p>2\u3001\u7f16\u8bd1\u5b89\u88c5<\/p>\n<pre><code class=\"language-shell \">.\/config --prefix=\/home\/ubuntu\/openssl --openssldir=\/home\/ubuntu\/openssl no-ssl2\nmake\nmake install\ncd ~\n<\/code><\/pre>\n<p>3\u3001\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u4fee\u6539 ~\/.bashrc\uff0c\u6dfb\u52a0\u4ee5\u4e0b\uff1a<\/p>\n<pre><code class=\"language-shell \">export PATH=$HOME\/openssl\/bin:$PATH\nexport LD_LIBRARY_PATH=$HOME\/openssl\/lib\nexport LC_ALL=\"en_US.UTF-8\"\nexport LDFLAGS=\"-L\/home\/ubuntu\/openssl\/lib -Wl,-rpath,\/home\/ubuntu\/openssl\/lib\"\n<\/code><\/pre>\n<p>4\u3001\u786e\u8ba4\u5b89\u88c5\u5b8c\u6210<\/p>\n<pre><code class=\"language-shell \">source ~\/.bash_profile\n$ which openssl\n\/home\/ubuntu\/openssl\/bin\/openssl\n$ openssl version\nOpenSSL 1.1.1b  26 Feb 2019\n<\/code><\/pre>\n<p>\u53c2\u8003\uff1a<a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/360001435926-Installing-OpenSSL-locally-under-your-username\">Installing OpenSSL locally under your username<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u5148\u5047\u8bbe\u4f60\u7684\u7cfb\u7edf\u662f ubuntu\uff0c\u7cfb\u7edf\u7684 openssl \u5e93\u592a\u65e7\uff0c\u53ef\u4ee5\u624b\u52a8\u88c5\u4e00\u4e2a\u65b0\u7248\u672c\u5230\u7528\u6237\u5bb6\u76ee\u5f55\uff0c\u4f8b\u5982\u662f  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-7508","post","type-post","status-publish","format-standard","hentry","category-skill"],"_links":{"self":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/7508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/comments?post=7508"}],"version-history":[{"count":1,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/7508\/revisions"}],"predecessor-version":[{"id":7509,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/7508\/revisions\/7509"}],"wp:attachment":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/media?parent=7508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/categories?post=7508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/tags?post=7508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}