{"id":350,"date":"2019-08-28T20:28:00","date_gmt":"2019-08-28T12:28:00","guid":{"rendered":"https:\/\/cloudbool.com\/archive\/?p=350"},"modified":"2019-08-28T20:28:00","modified_gmt":"2019-08-28T12:28:00","slug":"upgrade-to-debian-10","status":"publish","type":"post","link":"https:\/\/cloudbool.com\/archive\/upgrade-to-debian-10.html","title":{"rendered":"\u5347\u7ea7\u5230\u4e86Debian 10\u7cfb\u7edf"},"content":{"rendered":"<p>Debian 10\u7cfb\u7edf\u53d1\u5e03\u4e5f\u6709\u5c06\u8fd12\u4e2a\u6708\u65f6\u95f4\u4e86\uff0c\u671f\u95f4\u56e0\u4e3a\u5fd9\u5de5\u4f5c\u6216\u8005\u522b\u7684\u4e8b\uff0c\u9664\u4e86\u8fd8\u662fSID\u7684\u65f6\u5019\u4f53\u9a8c\u4e86\u4e0b\uff0c\u51fa\u4e86\u6b63\u5f0f\u7248\u90fd\u6ca1\u600e\u4e48\u4f53\u9a8c\u8fc7\uff0c\u4eca\u5929\u6b63\u597d\u6709\u70b9\u65f6\u95f4\uff0c\u4f53\u9a8c\u4e86\u4e0bDebian 10\u4e0b\u7684LNMP\u529f\u80fd\uff0c\u6d4b\u8bd5\u4e86\u6700\u65b0\u7248\u7684WordPress\u5728\u8fd9\u4e2a\u73af\u5883\u4e0b\u5b8c\u5168\u6ca1\u95ee\u9898\uff0c\u4e0b\u5348\u6ca1\u5fcd\u4f4f\u5c31\u628a\u8fd9\u4e2a\u7f51\u7ad9\u6240\u5728\u7684\u670d\u52a1\u5668\u7ed9\u5347\u7ea7\u4e86\uff0c\u4e8e\u662f\u6211\u73b0\u5728\u53c8\u6709\u4e86\u53ef\u4ee5\u6c34\u4e00\u7bc7\u7684\u501f\u53e3\u3002<br \/>\n<!--more--><\/p>\n<h2>\u817e\u8baf\u4e91\u5347\u7ea7\u5230Debian 10\u7cfb\u7edf<\/h2>\n<p>\u770b\u4e86\u6211\u4e4b\u524d\u5199\u7684\u6587\u7ae0\u7684\u5e94\u8be5\u77e5\u9053\uff0c\u6211\u8fd9\u7f51\u7ad9\u7684\u540e\u7aef\u662f\u5728\u817e\u8baf\u4e91\uff0c\u5907\u4efd\u597d\u6570\u636e\u4e4b\u540e\uff0c\u60f3\u76f4\u63a5\u5230\u817e\u8baf\u4e91\u540e\u53f0\u63a7\u5236\u9762\u677f\u91cd\u88c5\u7684\uff0c\u4f46\u662f\u770b\u4e86\u4e0b\uff0c\u76ee\u524d\uff082019-08-28\uff09\u817e\u8baf\u4e91\u5e76\u6ca1\u6709\u63d0\u4f9bDebian 10\u7684\u7cfb\u7edf\u6a21\u677f\uff0c\u6211\u77e5\u9053\u53ef\u4ee5\u76f4\u63a5\u4ece\u4e4b\u524d\u7684Debian 9\u6267\u884c<strong>do-release-upgrade<\/strong>\u66f4\u65b0\u5230\u6700\u65b0\u7684\u7a33\u5b9a\u7248\u7cfb\u7edf\uff0c\u4f46\u662f\u603b\u89c9\u5f97\u6709\u6587\u4ef6\u6e05\u7406\u4e0d\u5e72\u51c0\uff0c\u8fd8\u662f\u82b1\u4e86\u70b9\u65f6\u95f4\u624b\u52a8\u91cd\u88c5\u4e86\u4e00\u4e0b\uff0c\u55ef\uff0c\u5f3a\u8feb\u75c7\u8868\u793a\u624b\u52a8\u91cd\u88c5\u4e4b\u540e\u5c31\u662f\u8212\u670d\u3002<br \/>\n\u5176\u5b9e\u5347\u7ea7\u8fc7\u7a0b\u6ca1\u5565\u8bf4\u7684\uff0c\u6ca1\u6709\u7cfb\u7edf\u6a21\u677f\uff0c\u4e5f\u4e0d\u652f\u6301ISO\u542f\u52a8\uff0c\u4e5f\u6ca1\u5173\u7cfb\uff0c\u6211\u7528\u7684\u662f\u4e4b\u524d\u8bf4\u8fc7\u7684<a href=\"https:\/\/cloudbool.com\/archive\/manual-reinstall-latest-debian.html\">\u4e91\u4e3b\u673a\u624b\u52a8\u5b89\u88c5\u6700\u65b0\u7248Debian 10\u7cfb\u7edf<\/a>\uff0c\u4e0b\u8f7d\u4e24\u4e2a\u7f51\u7edc\u5b89\u88c5\u7684\u5f15\u5bfc\u6587\u4ef6\uff0c\u76f4\u63a5\u5728\u63a7\u5236\u53f0\u901a\u8fc7VNC\u624b\u52a8\u91cd\u88c5\uff0c\u91cd\u88c5\u4e86\u8fd9\u4e48\u591a\u6b21\u4e86\uff0c\u4e5f\u6ca1\u5565\u53ef\u8bf4\u7684\uff0c\u5347\u7ea7\u8fc7\u7a0b\u6beb\u65e0\u60ac\u5ff5\uff0c\u4e00\u8def\u4e0b\u4e00\u6b65\u5c31\u5b89\u88c5\u597d\u4e86\u3002<\/p>\n<h2>\u4f7f\u7528\u4f53\u9a8c<\/h2>\n<p>\u5f97\u76ca\u4e8e\u7cfb\u7edf\u5927\u7248\u672c\u5347\u7ea7\uff0c\u5f88\u591a\u6e90\u91cc\u7684\u5e38\u7528\u8f6f\u4ef6\u7248\u672c\u4e5f\u5347\u7ea7\u4e86\uff0c\u6bd4\u5982\u8bf4LNMP\u51e0\u4e2a\u7ec4\u4ef6\uff1a<\/p>\n<ul>\n<li>Nginx\uff1a 1.14.2<\/li>\n<li>PHP\uff1a7.3.4<\/li>\n<li>MariaDB\uff1a10.3.15<\/li>\n<li>Linux Kernel\uff1a4.19.x<\/li>\n<\/ul>\n<p>\u662f\u7684\uff0c\u8ddf\u968fDebian 10\u7684\u811a\u6b65\uff0c\u6211\u7684PHP\u7248\u672c\u5347\u7ea7\u5230\u4e867.3\uff0c\u5347\u7ea7\u4e4b\u540e\u6ca1\u9047\u5230WordPress\u6709\u4ec0\u4e48\u9519\u8bef\uff0cNginx\u3001MariaDB\u3001PHP\u8fd9\u51e0\u4e2a\u7ec4\u4ef6\u8fd0\u884c\u4e5f\u6ca1\u9047\u5230\u4ec0\u4e48\u9519\u8bef\u3002<br \/>\n\u4e0d\u77e5\u9053\u662f\u4e0d\u662f\u9519\u89c9\uff0c\u5347\u7ea7\u4e4b\u540e\u5185\u5b58\u5360\u7528\u7565\u6709\u964d\u4f4e\uff0c\u62111\u68381G\u5185\u5b58\u7eaf\u51c0\u5b89\u88c5Debian10\u7cfb\u7edf\u4f7f\u7528PHP+Nginx+MariaDB\u8fd0\u884c\u4e00\u4e2aWordPress\u7f51\u7ad9\u5185\u5b58\u5360\u7528\u53ea\u6709\u5927\u6982200MB\u7684\u6837\u5b50\uff1a<\/p>\n<pre><code>root@cloudbool: ~ # free -m\n              total        used        free      shared  buff\/cache   available\nMem:            987         205         153          25         628         607\nSwap:          1020           0        1020\n<\/code><\/pre>\n<p>\u8fd9\u4e2a\u5185\u5b58\u5360\u7528\u60c5\u51b5\u76f8\u6bd4CentOS\u6765\u8bf4\u53ef\u4ee5\u8bf4\u975e\u5e38\u4f18\u79c0\u4e86\uff0c\u540c\u6837\u8fd9\u5957\u4e1c\u897f\uff0c\u6309\u7167\u6211\u4e4b\u524d\u7684\u4f7f\u7528\u60c5\u51b5\u7edd\u5bf9\u4e0d\u6b62\u8fd9\u4e48\u70b9\u3002<\/p>\n<h2>\u5347\u7ea7\u4e4b\u540e\u9047\u5230\u7684\u4e00\u4e2aOpenSSL\u95ee\u9898<\/h2>\n<p>\u56e0\u4e3a\u6211\u662f\u6253\u5305\u6240\u6709\u6570\u636e\u4e4b\u540e\u76f4\u63a5\u91cd\u88c5\u7684\uff0c\u5176\u4e2dNginx\u7684\u914d\u7f6e\u6587\u4ef6\u3001MySQL\u5bfc\u51fa\u6587\u4ef6\u4ee5\u53ca\u4e4b\u524d\u7684SSL\u8bc1\u4e66\u7b49\uff0c\u867d\u7136\u7cfb\u7edf\u53caNginx\u672c\u8eab\u6ca1\u9047\u5230\u4ec0\u4e48\u95ee\u9898\uff0c\u4f46\u662f\u5728\u91cd\u65b0\u90e8\u7f72\u7f51\u7ad9\u7684\u65f6\u5019\uff0c\u9047\u5230\u4e86\u4e00\u4e2aOpenSSL\u914d\u7f6e\u95ee\u9898\uff0cNginx\u62a5\u9519\u5982\u4e0b\uff1a<\/p>\n<pre><code>SSL_CTX_use_certificate(\"\/path\/to\/ssl.crt\") failed (SSL: error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small)\n<\/code><\/pre>\n<p>\u4e0aGoogle\u641c\u7d22\u4e86\u4e0b\u8fd9\u4e2a\u95ee\u9898\uff0c\u53d1\u73b0\u662f\u7533\u8bf7\u8bc1\u4e66\u7684\u65f6\u5019\u52a0\u5bc6\u957f\u5ea6\u592a\u77ed\uff0c\u89e3\u51b3\u65b9\u6cd5\u6709\u4e24\u79cd\uff0c\u5176\u4e2d\u4e00\u79cd\u5c31\u662f\uff0c\u4fee\u6539OpenSSL\u7684\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n<pre><code>vim \/etc\/ssl\/openssl.cnf\nCipherString = DEFAULT@SECLEVEL=1\n<\/code><\/pre>\n<p>\u4e5f\u5c31\u662f\u5c06\u4e0a\u8ff0\u6587\u4ef6\u7684\u6700\u540e\u4e00\u884c\u503c\u75312\u6539\u62101\u3002<br \/>\n\u53e6\u4e00\u79cd\u5c31\u662f\u91cd\u65b0\u7533\u8bf7\u8bc1\u4e66\uff0c<a href=\"https:\/\/cloudbool.com\/archive\/openssl-certificate-command.html\">\u5728\u751f\u6210CSR\u7684\u7684\u65f6\u5019\uff0c\u79d8\u94a5\u957f\u5ea6\u8bbe\u7f6e\u62102048\u4f4d\u4ee5\u4e0a<\/a>\uff0c\u51fa\u4e8e\u517c\u5bb9\u6027\u8003\u8651\uff0c\u6211\u91cd\u65b0\u751f\u6210\u4e86\u4e00\u4efd\u8bc1\u4e66\u3002<br \/>\n\u5e0c\u671b\u8fd9\u6b21\u91cd\u88c5\u4e4b\u540e\u80fd\u7ba1\u4f4f\u81ea\u5df1\u8fd9\u53cc\u624b\u7528\u4e45\u4e00\u70b9\u5427\uff0c\u867d\u7136\u6d41\u7a0b\u90fd\u5dee\u4e0d\u591a\uff0c\u4f46\u662f\u91cd\u65b0\u6572\u4e00\u904d\u547d\u4ee4\u4e5f\u633a\u7d2f\u7684\u554a\u54c8\u54c8\u54c8\u54c8\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Debian 10\u7cfb\u7edf\u53d1\u5e03\u4e5f\u6709\u5c06\u8fd12\u4e2a\u6708\u65f6\u95f4\u4e86\uff0c\u671f\u95f4\u56e0\u4e3a\u5fd9\u5de5\u4f5c\u6216\u8005\u522b\u7684\u4e8b\uff0c\u9664\u4e86\u8fd8\u662fSID\u7684\u65f6\u5019\u4f53\u9a8c\u4e86\u4e0b\uff0c\u51fa\u4e86\u6b63 &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/cloudbool.com\/archive\/upgrade-to-debian-10.html\"> <span class=\"screen-reader-text\">\u5347\u7ea7\u5230\u4e86Debian 10\u7cfb\u7edf<\/span> \u67e5\u770b\u5168\u6587 &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"categories":[8],"tags":[27,153],"class_list":["post-350","post","type-post","status-publish","format-standard","hentry","category-tech","tag-debian","tag-debian-10"],"_links":{"self":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/350","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/comments?post=350"}],"version-history":[{"count":0,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/350\/revisions"}],"wp:attachment":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/media?parent=350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/categories?post=350"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/tags?post=350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}