{"id":1311,"date":"2019-12-13T19:02:42","date_gmt":"2019-12-13T11:02:42","guid":{"rendered":"https:\/\/cf.mnihyc.com\/blog\/?p=1311"},"modified":"2020-04-22T11:43:33","modified_gmt":"2020-04-22T03:43:33","slug":"apache2-ubuntu-%e9%85%8d%e7%bd%ae%e4%bc%98%e5%8c%96","status":"publish","type":"post","link":"https:\/\/cf.mnihyc.com\/blog\/archives\/1311","title":{"rendered":"apache2 &#038; Ubuntu \u914d\u7f6e\u4f18\u5316"},"content":{"rendered":"<p>\u6bd4\u8f83\u7a77\uff0c\u4e70\u4e0d\u8d77\u72ec\u670d \/ \u9ad8\u7aef VPS\uff0c\u53ea\u80fd\u62ff 1GB \u5185\u5b58\u7684\u7834\u70c2\u51d1\u5408\u4e00\u4e0b\u5efa\u7ad9\u3002<\/p>\n<p>\u4f17\u6240\u5468\u77e5\uff0c<code>apache2<\/code> \u975e\u5e38\u5403\u8d44\u6e90\uff0c\u7ecf\u5e38\u5185\u5b58\u5c31\u76f4\u63a5\u7ed9\u5403\u6ee1\uff0c\u6240\u4ee5\u8fd9\u65f6\u5019\u4f18\u5316\u5c31\u663e\u5f97\u5341\u5206\u91cd\u8981\u3002<\/p>\n<p><del>\uff08\u5176\u5b9e\u662f\u61d2\u5f97\u6539\u6210 nginx \/\/\/<\/del><\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<p><!--more--><\/p>\n<p>&nbsp;<\/p>\n<p>\u9996\u5148\uff0c<code>bbr<\/code>\u00a0 \u5fc5\u987b\u5148\u5f00\u8d77\u6765\u3002\u987a\u4fbf\u518d\u628a\u6700\u5927\u7ebf\u7a0b\u6570 <code>threads-max<\/code>\u00a0 \u8c03\u5927\u3002<\/p>\n<pre class=\"lang:vim decode:true\" title=\"\/etc\/sysctl.conf\">net.core.default_qdisc=fq\r\nnet.ipv4.tcp_congestion_control=bbr\r\nnet.ipv4.tcp_fastopen=3\r\nkernel.threads-max=524288<\/pre>\n<p>&nbsp;<\/p>\n<p>\u7136\u540e\u518d\u8c03\u5927 <code>nofile<\/code> \u53ca <code>noproc<\/code>\u00a0\u3002<\/p>\n<pre class=\"lang:vim decode:true\" title=\"\/etc\/security\/limits.conf\">* soft nofile 524288\r\n* hard nofile 524288\r\n* soft nproc 131072\r\n* hard nproc 131072\r\n* soft memlock unlimited\r\n* hard memlock unlimited\r\n* soft stack unlimited\r\n* hard stack unlimited<\/pre>\n<p>&nbsp;<\/p>\n<p>\u7cfb\u7edf\u8fd0\u884c\u4e45\u4e86 <code>systemd-journald<\/code> \u4e00\u76f4\u4f1a\u5360\u6ee1\u5185\u5b58\uff0c\u6545\u628a\u65e5\u5fd7\u5b58\u50a8\u5728\u672c\u5730\u786c\u76d8\u4e2d\u3002<\/p>\n<pre class=\"lang:vim decode:true\" title=\"\/etc\/systemd\/journald.conf\">[Journal]\r\nStorage=persistent<\/pre>\n<p>&nbsp;<\/p>\n<p>\u6700\u91cd\u8981\u7684\u662f <code>apache2<\/code> \u7684 <code>mpm_event<\/code>\u00a0 \u914d\u7f6e<\/p>\n<pre class=\"lang:vim decode:true \" title=\"\/etc\/apache2\/mods-enabled\/mpm_event.conf\">ServerLimit 32\r\n&lt;IfModule mpm_event_module&gt;\r\n        StartServers             2\r\n        MinSpareThreads          25\r\n        MaxSpareThreads         525\r\n        ThreadLimit             128\r\n        ThreadsPerChild          64\r\n        MaxRequestWorkers         2048\r\n        MaxConnectionsPerChild   1024\r\n&lt;\/IfModule&gt;\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u4f46\u662f\u95ee\u9898\u662f\uff0c\u8fd9\u6837\u914d\u7f6e\u4e4b\u540e\uff0c<code>apache2<\/code> \u603b\u662f\u4f1a\u7206\u5230 <span class=\"lang:sh decode:true crayon-inline\">systemctl status apache2<\/span>\u00a0 \u91cc\u9762\u7684 <code>Tasks limit<\/code>\u00a0 \u3002<\/p>\n<p><span class=\"lang:sh decode:true crayon-inline\">cat \/proc\/xxx\/limits<\/span> \u540e\u624d\u53d1\u73b0\u4e0a\u9762\u5bf9\u4e8e <code>limits<\/code> \u7684\u4fee\u6539\u5e76\u6ca1\u6709\u751f\u6548\u3002<\/p>\n<p>\u5176\u5b9e\u662f\u56e0\u4e3a\u5bf9\u4e8e <span class=\"lang:vim decode:true  crayon-inline\">\/etc\/security\/limits.conf<\/span> \u7684\u4fee\u6539\u4ec5\u5bf9 <code>PAM<\/code> \u7528\u6237\u6709\u6548\uff0c\u800c\u5bf9 <code>systemd<\/code> \u65e0\u6548\u3002\u9700\u8981\u5728\u53e6\u5916\u7684\u5730\u65b9\u53e6\u4f5c\u4fee\u6539\u3002<\/p>\n<p>\u7136\u540e\u8fd8\u4f1a\u53d1\u73b0 <code>systemd<\/code>\u00a0\u8fd8\u4f1a\u6709\u4e00\u4e2a <code>cgroup<\/code> \u9650\u5236\uff0c\u5176\u5b9e\u5c31\u662f\u4e0a\u9762\u7684 <code>Tasks limit<\/code>\uff0c\u53ef\u4ee5\u901a\u8fc7\u8c03\u6574\u4ee5\u4e0b\u4e24\u4e2a\u914d\u7f6e\u89e3\u51b3\u3002<\/p>\n<pre class=\"lang:vim decode:true \" title=\"\/etc\/systemd\/system.conf\">[Manager]\r\n# ...\r\nDefaultTasksMax=131072\r\n# ...\r\nDefaultLimitSTACK=infinity\r\n# ...\r\nDefaultLimitNOFILE=524288\r\n# ...\r\nDefaultLimitNPROC=131072\r\nDefaultLimitMEMLOCK=infinity<\/pre>\n<pre class=\"lang:vim decode:true\" title=\"\/etc\/systemd\/logind.conf\">[Login]\r\n# ...\r\nUserTasksMax=infinity<\/pre>\n<p>&nbsp;<\/p>\n<p>\u7136\u540e\u8fd8\u6709\u4e2a <code>systemd-journald<\/code> \u5185\u5b58\u6cc4\u6f0f\u95ee\u9898\u76ee\u524d\u8fd8\u6ca1\u6709\u627e\u5230\u89e3\u51b3\u65b9\u6848\u3002\u3002\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u672a\u5b8c\u5f85\u7eed<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6bd4\u8f83\u7a77\uff0c\u4e70\u4e0d\u8d77\u72ec\u670d \/ \u9ad8\u7aef VPS\uff0c\u53ea\u80fd\u62ff 1GB \u5185\u5b58\u7684\u7834\u70c2\u51d1\u5408\u4e00\u4e0b\u5efa\u7ad9\u3002 \u4f17\u6240\u5468\u77e5\uff0capache2 \u975e\u5e38 &hellip; <a href=\"https:\/\/cf.mnihyc.com\/blog\/archives\/1311\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">apache2 &#038; Ubuntu \u914d\u7f6e\u4f18\u5316<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,11],"tags":[],"class_list":["post-1311","post","type-post","status-publish","format-standard","hentry","category-other","category-configuration"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>apache2 &amp; Ubuntu \u914d\u7f6e\u4f18\u5316 - mnihyc&#039;s Blog<\/title>\n<meta name=\"description\" content=\"\u6bd4\u8f83\u7a77\uff0c\u4e70\u4e0d\u8d77\u72ec\u670d \/ \u9ad8\u7aef VPS\uff0c\u53ea\u80fd\u62ff 1GB \u5185\u5b58\u7684\u7834\u70c2\u51d1\u5408\u4e00\u4e0b\u5efa\u7ad9\u3002 \u4f17\u6240\u5468\u77e5\uff0capache2 \u975e\u5e38\u5403\u8d44\u6e90\uff0c\u7ecf\u5e38\u5185\u5b58\u5c31\u76f4\u63a5\u7ed9\u5403\u6ee1\uff0c\u6240\u4ee5\u8fd9\u65f6\u5019\u4f18\u5316\u5c31\u663e\u5f97\u5341\u5206\u91cd\u8981\u3002 \uff08\u5176\u5b9e\u662f\u61d2\u5f97\u6539\u6210 nginx \/\/\/ &nbsp; &nbsp; &nbsp; \u9996\u5148\uff0cbbr\u00a0 \u5fc5\u987b\u5148\u5f00\u8d77\u6765\u3002\u987a\u4fbf\u518d\u628a\u6700\u5927\u7ebf\u7a0b\u6570\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cf.mnihyc.com\/blog\/archives\/1311\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"apache2 &amp; Ubuntu \u914d\u7f6e\u4f18\u5316 - mnihyc&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"\u6bd4\u8f83\u7a77\uff0c\u4e70\u4e0d\u8d77\u72ec\u670d \/ \u9ad8\u7aef VPS\uff0c\u53ea\u80fd\u62ff 1GB \u5185\u5b58\u7684\u7834\u70c2\u51d1\u5408\u4e00\u4e0b\u5efa\u7ad9\u3002 \u4f17\u6240\u5468\u77e5\uff0capache2 \u975e\u5e38\u5403\u8d44\u6e90\uff0c\u7ecf\u5e38\u5185\u5b58\u5c31\u76f4\u63a5\u7ed9\u5403\u6ee1\uff0c\u6240\u4ee5\u8fd9\u65f6\u5019\u4f18\u5316\u5c31\u663e\u5f97\u5341\u5206\u91cd\u8981\u3002 \uff08\u5176\u5b9e\u662f\u61d2\u5f97\u6539\u6210 nginx \/\/\/ &nbsp; &nbsp; &nbsp; \u9996\u5148\uff0cbbr\u00a0 \u5fc5\u987b\u5148\u5f00\u8d77\u6765\u3002\u987a\u4fbf\u518d\u628a\u6700\u5927\u7ebf\u7a0b\u6570\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cf.mnihyc.com\/blog\/archives\/1311\" \/>\n<meta property=\"og:site_name\" content=\"mnihyc&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2019-12-13T11:02:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-04-22T03:43:33+00:00\" \/>\n<meta name=\"author\" content=\"mnihyc\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@mnihyc\" \/>\n<meta name=\"twitter:site\" content=\"@mnihyc\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"mnihyc\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/cf.mnihyc.com\/blog\/archives\/1311#article\",\"isPartOf\":{\"@id\":\"https:\/\/cf.mnihyc.com\/blog\/archives\/1311\"},\"author\":{\"name\":\"mnihyc\",\"@id\":\"https:\/\/0.mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751\"},\"headline\":\"apache2 &#038; Ubuntu \u914d\u7f6e\u4f18\u5316\",\"datePublished\":\"2019-12-13T11:02:42+00:00\",\"dateModified\":\"2020-04-22T03:43:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cf.mnihyc.com\/blog\/archives\/1311\"},\"wordCount\":26,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/0.mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751\"},\"articleSection\":[\"\u5176\u5b83\",\"\u914d\u7f6e\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/cf.mnihyc.com\/blog\/archives\/1311#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cf.mnihyc.com\/blog\/archives\/1311\",\"url\":\"https:\/\/cf.mnihyc.com\/blog\/archives\/1311\",\"name\":\"apache2 & Ubuntu \u914d\u7f6e\u4f18\u5316 - mnihyc&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\/\/0.mnihyc.com\/blog\/#website\"},\"datePublished\":\"2019-12-13T11:02:42+00:00\",\"dateModified\":\"2020-04-22T03:43:33+00:00\",\"description\":\"\u6bd4\u8f83\u7a77\uff0c\u4e70\u4e0d\u8d77\u72ec\u670d \/ \u9ad8\u7aef VPS\uff0c\u53ea\u80fd\u62ff 1GB \u5185\u5b58\u7684\u7834\u70c2\u51d1\u5408\u4e00\u4e0b\u5efa\u7ad9\u3002 \u4f17\u6240\u5468\u77e5\uff0capache2 \u975e\u5e38\u5403\u8d44\u6e90\uff0c\u7ecf\u5e38\u5185\u5b58\u5c31\u76f4\u63a5\u7ed9\u5403\u6ee1\uff0c\u6240\u4ee5\u8fd9\u65f6\u5019\u4f18\u5316\u5c31\u663e\u5f97\u5341\u5206\u91cd\u8981\u3002 \uff08\u5176\u5b9e\u662f\u61d2\u5f97\u6539\u6210 nginx \/\/\/ &nbsp; &nbsp; &nbsp; \u9996\u5148\uff0cbbr\u00a0 \u5fc5\u987b\u5148\u5f00\u8d77\u6765\u3002\u987a\u4fbf\u518d\u628a\u6700\u5927\u7ebf\u7a0b\u6570\",\"breadcrumb\":{\"@id\":\"https:\/\/cf.mnihyc.com\/blog\/archives\/1311#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cf.mnihyc.com\/blog\/archives\/1311\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cf.mnihyc.com\/blog\/archives\/1311#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/0.mnihyc.com\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"apache2 &#038; Ubuntu \u914d\u7f6e\u4f18\u5316\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/0.mnihyc.com\/blog\/#website\",\"url\":\"https:\/\/0.mnihyc.com\/blog\/\",\"name\":\"mnihyc&#039;s Blog\",\"description\":\"Welcome!\",\"publisher\":{\"@id\":\"https:\/\/0.mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/0.mnihyc.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/0.mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751\",\"name\":\"mnihyc\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/0.mnihyc.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8d111f863afc3f98816bc96220f97077d470a96f41088de9f19530fc480f8e72?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8d111f863afc3f98816bc96220f97077d470a96f41088de9f19530fc480f8e72?s=96&d=mm&r=g\",\"caption\":\"mnihyc\"},\"logo\":{\"@id\":\"https:\/\/0.mnihyc.com\/blog\/#\/schema\/person\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"apache2 & Ubuntu \u914d\u7f6e\u4f18\u5316 - mnihyc&#039;s Blog","description":"\u6bd4\u8f83\u7a77\uff0c\u4e70\u4e0d\u8d77\u72ec\u670d \/ \u9ad8\u7aef VPS\uff0c\u53ea\u80fd\u62ff 1GB \u5185\u5b58\u7684\u7834\u70c2\u51d1\u5408\u4e00\u4e0b\u5efa\u7ad9\u3002 \u4f17\u6240\u5468\u77e5\uff0capache2 \u975e\u5e38\u5403\u8d44\u6e90\uff0c\u7ecf\u5e38\u5185\u5b58\u5c31\u76f4\u63a5\u7ed9\u5403\u6ee1\uff0c\u6240\u4ee5\u8fd9\u65f6\u5019\u4f18\u5316\u5c31\u663e\u5f97\u5341\u5206\u91cd\u8981\u3002 \uff08\u5176\u5b9e\u662f\u61d2\u5f97\u6539\u6210 nginx \/\/\/ &nbsp; &nbsp; &nbsp; \u9996\u5148\uff0cbbr\u00a0 \u5fc5\u987b\u5148\u5f00\u8d77\u6765\u3002\u987a\u4fbf\u518d\u628a\u6700\u5927\u7ebf\u7a0b\u6570","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cf.mnihyc.com\/blog\/archives\/1311","og_locale":"zh_CN","og_type":"article","og_title":"apache2 & Ubuntu \u914d\u7f6e\u4f18\u5316 - mnihyc&#039;s Blog","og_description":"\u6bd4\u8f83\u7a77\uff0c\u4e70\u4e0d\u8d77\u72ec\u670d \/ \u9ad8\u7aef VPS\uff0c\u53ea\u80fd\u62ff 1GB \u5185\u5b58\u7684\u7834\u70c2\u51d1\u5408\u4e00\u4e0b\u5efa\u7ad9\u3002 \u4f17\u6240\u5468\u77e5\uff0capache2 \u975e\u5e38\u5403\u8d44\u6e90\uff0c\u7ecf\u5e38\u5185\u5b58\u5c31\u76f4\u63a5\u7ed9\u5403\u6ee1\uff0c\u6240\u4ee5\u8fd9\u65f6\u5019\u4f18\u5316\u5c31\u663e\u5f97\u5341\u5206\u91cd\u8981\u3002 \uff08\u5176\u5b9e\u662f\u61d2\u5f97\u6539\u6210 nginx \/\/\/ &nbsp; &nbsp; &nbsp; \u9996\u5148\uff0cbbr\u00a0 \u5fc5\u987b\u5148\u5f00\u8d77\u6765\u3002\u987a\u4fbf\u518d\u628a\u6700\u5927\u7ebf\u7a0b\u6570","og_url":"https:\/\/cf.mnihyc.com\/blog\/archives\/1311","og_site_name":"mnihyc&#039;s Blog","article_published_time":"2019-12-13T11:02:42+00:00","article_modified_time":"2020-04-22T03:43:33+00:00","author":"mnihyc","twitter_card":"summary_large_image","twitter_creator":"@mnihyc","twitter_site":"@mnihyc","twitter_misc":{"\u4f5c\u8005":"mnihyc","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cf.mnihyc.com\/blog\/archives\/1311#article","isPartOf":{"@id":"https:\/\/cf.mnihyc.com\/blog\/archives\/1311"},"author":{"name":"mnihyc","@id":"https:\/\/0.mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751"},"headline":"apache2 &#038; Ubuntu \u914d\u7f6e\u4f18\u5316","datePublished":"2019-12-13T11:02:42+00:00","dateModified":"2020-04-22T03:43:33+00:00","mainEntityOfPage":{"@id":"https:\/\/cf.mnihyc.com\/blog\/archives\/1311"},"wordCount":26,"commentCount":0,"publisher":{"@id":"https:\/\/0.mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751"},"articleSection":["\u5176\u5b83","\u914d\u7f6e"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/cf.mnihyc.com\/blog\/archives\/1311#respond"]}]},{"@type":"WebPage","@id":"https:\/\/cf.mnihyc.com\/blog\/archives\/1311","url":"https:\/\/cf.mnihyc.com\/blog\/archives\/1311","name":"apache2 & Ubuntu \u914d\u7f6e\u4f18\u5316 - mnihyc&#039;s Blog","isPartOf":{"@id":"https:\/\/0.mnihyc.com\/blog\/#website"},"datePublished":"2019-12-13T11:02:42+00:00","dateModified":"2020-04-22T03:43:33+00:00","description":"\u6bd4\u8f83\u7a77\uff0c\u4e70\u4e0d\u8d77\u72ec\u670d \/ \u9ad8\u7aef VPS\uff0c\u53ea\u80fd\u62ff 1GB \u5185\u5b58\u7684\u7834\u70c2\u51d1\u5408\u4e00\u4e0b\u5efa\u7ad9\u3002 \u4f17\u6240\u5468\u77e5\uff0capache2 \u975e\u5e38\u5403\u8d44\u6e90\uff0c\u7ecf\u5e38\u5185\u5b58\u5c31\u76f4\u63a5\u7ed9\u5403\u6ee1\uff0c\u6240\u4ee5\u8fd9\u65f6\u5019\u4f18\u5316\u5c31\u663e\u5f97\u5341\u5206\u91cd\u8981\u3002 \uff08\u5176\u5b9e\u662f\u61d2\u5f97\u6539\u6210 nginx \/\/\/ &nbsp; &nbsp; &nbsp; \u9996\u5148\uff0cbbr\u00a0 \u5fc5\u987b\u5148\u5f00\u8d77\u6765\u3002\u987a\u4fbf\u518d\u628a\u6700\u5927\u7ebf\u7a0b\u6570","breadcrumb":{"@id":"https:\/\/cf.mnihyc.com\/blog\/archives\/1311#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cf.mnihyc.com\/blog\/archives\/1311"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cf.mnihyc.com\/blog\/archives\/1311#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/0.mnihyc.com\/blog"},{"@type":"ListItem","position":2,"name":"apache2 &#038; Ubuntu \u914d\u7f6e\u4f18\u5316"}]},{"@type":"WebSite","@id":"https:\/\/0.mnihyc.com\/blog\/#website","url":"https:\/\/0.mnihyc.com\/blog\/","name":"mnihyc&#039;s Blog","description":"Welcome!","publisher":{"@id":"https:\/\/0.mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/0.mnihyc.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/0.mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751","name":"mnihyc","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/0.mnihyc.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8d111f863afc3f98816bc96220f97077d470a96f41088de9f19530fc480f8e72?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8d111f863afc3f98816bc96220f97077d470a96f41088de9f19530fc480f8e72?s=96&d=mm&r=g","caption":"mnihyc"},"logo":{"@id":"https:\/\/0.mnihyc.com\/blog\/#\/schema\/person\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/cf.mnihyc.com\/blog\/wp-json\/wp\/v2\/posts\/1311","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cf.mnihyc.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cf.mnihyc.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cf.mnihyc.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cf.mnihyc.com\/blog\/wp-json\/wp\/v2\/comments?post=1311"}],"version-history":[{"count":0,"href":"https:\/\/cf.mnihyc.com\/blog\/wp-json\/wp\/v2\/posts\/1311\/revisions"}],"wp:attachment":[{"href":"https:\/\/cf.mnihyc.com\/blog\/wp-json\/wp\/v2\/media?parent=1311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cf.mnihyc.com\/blog\/wp-json\/wp\/v2\/categories?post=1311"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cf.mnihyc.com\/blog\/wp-json\/wp\/v2\/tags?post=1311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}