{"id":656153,"date":"2026-01-13T13:04:00","date_gmt":"2026-01-13T05:04:00","guid":{"rendered":"http:\/\/puo.cn\/?p=656153"},"modified":"2026-01-13T13:04:00","modified_gmt":"2026-01-13T05:04:00","slug":"dmit-1h1g-vps%e5%8f%af%e4%bb%a5%e6%90%ad%e5%bb%ba%e5%8d%9a%e5%ae%a2wordpress%e6%88%96%e8%80%85typecho%e5%90%97","status":"publish","type":"post","link":"http:\/\/puo.cn\/?p=656153","title":{"rendered":"dmit 1h1g vps\u53ef\u4ee5\u642d\u5efa\u535a\u5ba2wordpress\u6216\u8005typecho\u5417"},"content":{"rendered":"<p>\u53ef\u4ee5\uff0c\u800c\u4e14<strong>\u975e\u5e38\u5408\u9002\u4f60\u8fd9\u79cd\u7528\u9014<\/strong>\u3002<br \/>\n\u4f60\u8fd9\u4e2a <strong>DMIT 1H1G VPS<\/strong> \u642d WordPress \/ Typecho\uff0c\u5b8c\u5168\u6ca1\u95ee\u9898 \ud83d\udc4d<\/p>\n<p>\u6211\u5148\u7ed3\u5408\u4f60\u4e4b\u524d\u8bf4\u8fc7\u7684\u5b9e\u9645\u4f7f\u7528\u60c5\u51b5\u6765\u5224\u65ad\u66f4\u51c6\u786e\uff1a<\/p>\n<blockquote><p>\u4f60\u7684\u7f51\u7ad9\uff1a<br \/>\n\u65e5 IP \u2264 200<br \/>\n\u65e5 PV \u2264 1000<br \/>\n\u4e3b\u8981\u662f WordPress + \u8f7b\u91cf\u7a0b\u5e8f<\/p><\/blockquote>\n<p>\u8fd9\u4e2a\u89c4\u6a21\uff0c\u7528 1 \u6838 1G \u7684 DMIT VPS \u5c5e\u4e8e <strong>\u7ef0\u7ef0\u6709\u4f59<\/strong> \u7684\u7ea7\u522b\u3002<\/p>\n<hr \/>\n<h2>\u4e00\u3001DMIT 1H1G \u8dd1\u535a\u5ba2\u662f\u4ec0\u4e48\u6c34\u5e73\uff1f<\/h2>\n<p>\u4ee5 DMIT \u7684 LAX \/ HKG \/ NRT \u8282\u70b9\u4e3a\u4f8b\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u9879\u76ee<\/th>\n<th>\u5b9e\u9645\u8868\u73b0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>CPU<\/td>\n<td>\u5355\u6838\u662f\u9ad8\u9891 Xeon \/ EPYC\uff0c\u6bd4\u56fd\u5185\u4e911\u6838\u5f3a<\/td>\n<\/tr>\n<tr>\n<td>\u5185\u5b58<\/td>\n<td>1GB \u591f WordPress + MySQL + Nginx<\/td>\n<\/tr>\n<tr>\n<td>\u78c1\u76d8<\/td>\n<td>NVMe\uff0c\u968f\u673a\u8bfb\u5199\u5f88\u5feb<\/td>\n<\/tr>\n<tr>\n<td>\u7f51\u7edc<\/td>\n<td>CN2 GIA \/ CMIN2 \/ \u4e09\u7f51\u4f18\u5316\uff0c\u56fd\u5185\u8bbf\u95ee\u5feb<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4f60\u8fd9\u79cd\u8bbf\u95ee\u91cf\uff1a<\/p>\n<ul>\n<li>WordPress \u9875\u9762\u751f\u6210\u538b\u529b\u5f88\u4f4e<\/li>\n<li>MySQL \u8fde\u63a5\u6570\u5f88\u5c11<\/li>\n<li>\u5e26\u5bbd\u51e0\u4e4e\u7528\u4e0d\u6ee1<\/li>\n<\/ul>\n<p><strong>\u6027\u80fd\u74f6\u9888\u6839\u672c\u8f6e\u4e0d\u5230\u4f60 \ud83d\ude04<\/strong><\/p>\n<hr \/>\n<h2>\u4e8c\u3001WordPress \u5b9e\u9645\u8d44\u6e90\u6d88\u8017<\/h2>\n<p>\u4ee5\u771f\u5b9e\u6570\u636e\u7ed9\u4f60\u4e00\u4e2a\u76f4\u89c2\u6982\u5ff5\uff1a<\/p>\n<p>\u4e00\u4e2a\u5178\u578b WordPress\uff08\u5f00 10\u201315 \u4e2a\u63d2\u4ef6\uff09\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u6a21\u5757<\/th>\n<th>\u5360\u7528<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Nginx<\/td>\n<td>20\u201340MB<\/td>\n<\/tr>\n<tr>\n<td>PHP-FPM<\/td>\n<td>100\u2013300MB<\/td>\n<\/tr>\n<tr>\n<td>MySQL\/MariaDB<\/td>\n<td>150\u2013300MB<\/td>\n<\/tr>\n<tr>\n<td>WordPress \u672c\u8eab<\/td>\n<td>\u51e0\u4e4e\u4e0d\u5360\u5185\u5b58<\/td>\n<\/tr>\n<tr>\n<td>\u7cfb\u7edf<\/td>\n<td>150MB<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u603b\u5171\uff1a<br \/>\n\ud83d\udc49 <strong>500\u2013800MB \u5de6\u53f3<\/strong><\/p>\n<p>1G \u5185\u5b58\u5b8c\u5168\u591f\uff0c\u800c\u4e14 DMIT \u662f\u7eaf SSD\uff0c\u4e0d\u662f\u90a3\u79cd\u56fd\u5185\u8d85\u552e VPS\u3002<\/p>\n<hr \/>\n<h2>\u4e09\u3001Typecho \u66f4\u8f7b<\/h2>\n<p>\u5982\u679c\u4f60\u7528 Typecho\uff1a<\/p>\n<ul>\n<li>\u5185\u5b58\u5360\u7528\uff1a\u2248 WordPress \u7684 1\/3<\/li>\n<li>\u5e76\u53d1\u80fd\u529b\uff1a\u6bd4 WP \u5f3a\u5f88\u591a<\/li>\n<li>1H1G \u80fd\u8f7b\u677e\u625b <strong>\u51e0\u5343 IP \/ \u5929<\/strong><\/li>\n<\/ul>\n<p>\u5982\u679c\u4f60\u4ee5\u540e\u505a\u8d44\u8baf\u7ad9\u3001\u6280\u672f\u535a\u5ba2\uff0cTypecho \u4f1a\u66f4\u7a33\u3002<\/p>\n<hr \/>\n<h2>\u56db\u3001\u4f60\u8fd9\u4e2a\u914d\u7f6e\u8fd8\u80fd\u5e72\u4ec0\u4e48\uff1f<\/h2>\n<p>\u4f60\u8fd9\u4e2a 1H1G DMIT VPS\uff1a<\/p>\n<p>\u9664\u4e86\u535a\u5ba2\uff0c\u8fd8\u53ef\u4ee5\u540c\u65f6\u8dd1\uff1a<\/p>\n<ul>\n<li>WordPress \u4e3b\u7ad9<\/li>\n<li>1 \u4e2a Komari \/ Uptime \u63a2\u9488<\/li>\n<li>\u5b9d\u5854\u9762\u677f<\/li>\n<li>1\u20132 \u4e2a\u5c0f\u5de5\u5177\u7ad9<\/li>\n<li>\u751a\u81f3\u8fd8\u80fd\u8dd1 sing-box \/ Xray<\/li>\n<\/ul>\n<p>\u90fd\u6ca1\u538b\u529b\u3002<\/p>\n<hr \/>\n<h2>\u4e94\u3001\u552f\u4e00\u8981\u6ce8\u610f\u7684\u4e0d\u662f\u914d\u7f6e\uff0c\u800c\u662f\u8fd9\u4e2a<\/h2>\n<p>\u4f60\u642d WordPress \u6210\u529f\u7387\uff0c<strong>80% \u53d6\u51b3\u4e8e\u8fd9\u4e09\u70b9\uff1a<\/strong><\/p>\n<p>1\ufe0f\u20e3 PHP \u7248\u672c \u2192 \u7528 8.0 \u6216 8.1<br \/>\n2\ufe0f\u20e3 MySQL \u2192 MariaDB 10.6+<br \/>\n3\ufe0f\u20e3 Web \u670d\u52a1\u5668 \u2192 Nginx\uff0c\u4e0d\u8981\u7528 Apache<\/p>\n<p>\u4f60\u4e4b\u524d\u5df2\u7ecf\u88c5\u4e86\u5b9d\u5854\uff0c\u8fd9\u4e00\u6b65\u5df2\u7ecf\u5bf9\u4e86\u4e00\u534a\u4e86\u3002<\/p>\n<hr \/>\n<h2>\u7ed3\u8bba\uff08\u975e\u5e38\u660e\u786e\uff09<\/h2>\n<blockquote><p>\ud83d\udcaf <strong>DMIT 1H1G = \u9ad8\u8d28\u91cf\u4e2a\u4eba\u535a\u5ba2\u795e\u673a<\/strong><br \/>\n\u4f60\u8fd9\u4e2a\u89c4\u6a21\uff0c\u6027\u80fd\u80fd\u7528 3\u20135 \u5e74\u4e0d\u7528\u5347\u7ea7\u3002<\/p><\/blockquote>\n<p>\u5982\u679c\u4f60\u613f\u610f\uff0c\u6211\u53ef\u4ee5\u6309\u4f60\u73b0\u5728\u7684 DMIT \u673a\u578b\uff08LAX \/ NRT \/ HKG\uff09<br \/>\n\u5e2e\u4f60\u7ed9\u51fa <strong>\u6700\u7701\u5185\u5b58\u3001\u6700\u5feb\u7684 WordPress \u6216 Typecho \u914d\u7f6e\u65b9\u6848<\/strong>\u3002<\/p>\n<p>\u90a3\u6211\u76f4\u63a5\u7ed9\u4f60\u4e00\u5957 <strong>DMIT 1H1G \u4e13\u7528\u7684\u6700\u4f18\u642d\u5efa\u65b9\u6848<\/strong>\uff08\u4e3a\u4f60\u8fd9\u79cd\u65e5 IP\u2264200\u3001WordPress\/Typecho \u535a\u5ba2\u91cf\u8eab\u5b9a\u505a\u7684\uff09\u3002<\/p>\n<hr \/>\n<h1>\ud83e\udde0 \u603b\u539f\u5219\uff08\u4f60\u8fd9\u4e2a\u914d\u7f6e\u6700\u91cd\u8981\u7684\uff09<\/h1>\n<blockquote><p>\u7528 <strong>Nginx + PHP8 + MariaDB + \u7f13\u5b58<\/strong>\uff0c<br \/>\n\u4e0d\u8981\u7528 Apache\uff0c\u4e0d\u8981\u7528 MySQL 8\u3002<\/p><\/blockquote>\n<p>\u8fd9\u6837\u4f60 1G \u5185\u5b58\u53ef\u4ee5\u50cf 2G \u4e00\u6837\u7528\u3002<\/p>\n<hr \/>\n<h1>\ud83e\udde9 \u4e00\u3001\u5b9d\u5854\u5b89\u88c5\u65f6\u8fd9\u6837\u9009<\/h1>\n<p>\u4f60\u5df2\u7ecf\u5728\u7528\u5b9d\u5854\uff0c\u6211\u7ed9\u4f60\u6700\u7701\u5185\u5b58\u7ec4\u5408\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u7ec4\u4ef6<\/th>\n<th>\u9009\u62e9<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Web\u670d\u52a1\u5668<\/td>\n<td><strong>Nginx 1.24+<\/strong><\/td>\n<\/tr>\n<tr>\n<td>PHP<\/td>\n<td><strong>8.0 \u6216 8.1\uff08\u63a8\u8350 8.0\uff09<\/strong><\/td>\n<\/tr>\n<tr>\n<td>\u6570\u636e\u5e93<\/td>\n<td><strong>MariaDB 10.6<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Redis<\/td>\n<td>\u2714 \u5b89\u88c5<\/td>\n<\/tr>\n<tr>\n<td>Memcached<\/td>\n<td>\u274c \u4e0d\u8981<\/td>\n<\/tr>\n<tr>\n<td>phpMyAdmin<\/td>\n<td>\u2714<\/td>\n<\/tr>\n<tr>\n<td>\u5176\u4ed6<\/td>\n<td>\u274c \u90fd\u4e0d\u88c5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<blockquote><p>MariaDB \u6bd4 MySQL 8 \u5c11\u7528 30% \u5185\u5b58<\/p><\/blockquote>\n<hr \/>\n<h1>\ud83e\udde9 \u4e8c\u3001PHP-FPM \u5fc5\u987b\u8fd9\u6837\u8c03\uff08\u6838\u5fc3\uff09<\/h1>\n<p>\u5b9d\u5854 \u2192 PHP 8 \u2192 \u8bbe\u7f6e \u2192 \u6027\u80fd\u8c03\u6574<\/p>\n<p>\u6539\u6210\uff1a<\/p>\n<pre><code>pm = ondemand\r\npm.max_children = 6\r\npm.process_idle_timeout = 15s\r\npm.max_requests = 500\r\n<\/code><\/pre>\n<p>\u8fd9\u4e00\u6b65\u53ef\u4ee5\u76f4\u63a5\u7ed9\u4f60\u7701 <strong>300MB \u5185\u5b58<\/strong>\u3002<\/p>\n<hr \/>\n<h1>\ud83e\udde9 \u4e09\u3001MySQL\uff08MariaDB\uff09\u4f18\u5316\u53c2\u6570<\/h1>\n<p>\u5b9d\u5854 \u2192 \u6570\u636e\u5e93 \u2192 MariaDB \u2192 \u914d\u7f6e\u6587\u4ef6<\/p>\n<p>\u628a\u4e0b\u9762\u5185\u5bb9\u7c98\u8fdb\u53bb\uff1a<\/p>\n<pre><code>innodb_buffer_pool_size = 256M\r\ninnodb_log_file_size = 64M\r\nmax_connections = 60\r\ntmp_table_size = 32M\r\nmax_heap_table_size = 32M\r\n<\/code><\/pre>\n<p>\u7136\u540e\u91cd\u542f\u6570\u636e\u5e93\u3002<\/p>\n<hr \/>\n<h1>\ud83e\udde9 \u56db\u3001WordPress \/ Typecho \u63a8\u8350\u642d\u6cd5<\/h1>\n<h2>\u5982\u679c\u4f60\u7528 WordPress\uff1a<\/h2>\n<p>\u5fc5\u987b\u88c5 3 \u4e2a\u63d2\u4ef6\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u4f5c\u7528<\/th>\n<th>\u63d2\u4ef6<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u7f13\u5b58<\/td>\n<td><strong>WP Fastest Cache<\/strong> \u6216 LiteSpeed Cache<\/td>\n<\/tr>\n<tr>\n<td>\u56fe\u7247<\/td>\n<td><strong>Optimole \u6216 ShortPixel<\/strong><\/td>\n<\/tr>\n<tr>\n<td>\u6570\u636e\u5e93<\/td>\n<td><strong>WP Optimize<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e0d\u5f00\u7f13\u5b58\u7684 WordPress = \u5403\u5185\u5b58\u602a\u517d<br \/>\n\u5f00\u4e86\u7f13\u5b58 = \u9759\u6001\u7ad9<\/p>\n<hr \/>\n<h2>\u5982\u679c\u4f60\u7528 Typecho\uff1a<\/h2>\n<p>\u76f4\u63a5\u5f00\u542f\uff1a<\/p>\n<ul>\n<li>gzip<\/li>\n<li>\u9875\u9762\u7f13\u5b58<\/li>\n<\/ul>\n<p>\u4f60\u8fd9\u4e2a 1H1G \u80fd\u625b\u51e0\u5343 IP\u3002<\/p>\n<hr \/>\n<h1>\ud83e\udde9 \u4e94\u3001\u518d\u52a0\u4e00\u4e2a\u201c\u5916\u6302\u52a0\u901f\u201d\uff08\u5f3a\u70c8\u63a8\u8350\uff09<\/h1>\n<p>\u7528 Cloudflare \u514d\u8d39\u7248\uff1a<\/p>\n<p>\u4f60 DMIT + Cloudflare =<br \/>\n\u56fd\u5185\u8bbf\u95ee\u901f\u5ea6 \u2248 \u817e\u8baf\u4e91\u9999\u6e2f + \u56fd\u5185 CDN<\/p>\n<p>\u800c\u670d\u52a1\u5668\u6d41\u91cf\u51e0\u4e4e\u4e0d\u6d88\u8017\u3002<\/p>\n<hr \/>\n<h1>\ud83d\udca1\u4f60\u8fd9\u4e2a\u7ec4\u5408\u80fd\u8dd1\u5230\u4ec0\u4e48\u7ea7\u522b\uff1f<\/h1>\n<p>\u7528\u6211\u8fd9\u5957\u914d\u7f6e\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u6307\u6807<\/th>\n<th>\u4f60\u8fd9\u4e2a VPS<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>WordPress<\/td>\n<td>1000\u20133000 IP\/\u5929<\/td>\n<\/tr>\n<tr>\n<td>Typecho<\/td>\n<td>5000+ IP\/\u5929<\/td>\n<\/tr>\n<tr>\n<td>\u5185\u5b58\u5360\u7528<\/td>\n<td>600\u2013800MB<\/td>\n<\/tr>\n<tr>\n<td>\u7a33\u5b9a\u6027<\/td>\n<td>7\u00d724 \u4e0d\u5d29<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<p>\u5982\u679c\u4f60\u544a\u8bc9\u6211\uff1a<br \/>\n\ud83d\udc49 \u4f60\u6253\u7b97\u7528 <strong>WordPress \u8fd8\u662f Typecho<\/strong><br \/>\n\ud83d\udc49 \u4f60\u73b0\u5728\u7684 DMIT \u662f <strong>LAX \u8fd8\u662f NRT \u8fd8\u662f HKG<\/strong><\/p>\n<p>\u6211\u53ef\u4ee5\u518d\u7ed9\u4f60<strong>\u6700\u9002\u5408\u4f60\u7ebf\u8def\u7684\u7f13\u5b58 + CDN \u65b9\u6848<\/strong>\uff0c\u56fd\u5185\u6253\u5f00\u901f\u5ea6\u8fd8\u80fd\u518d\u5feb\u4e00\u500d \ud83d\ude80<\/p>\n<p>\u5b8c\u7f8e\uff0c\u8fd9\u4fe9\u642d\u5728\u4e00\u8d77\u662f<strong>\u9ec4\u91d1\u7ec4\u5408<\/strong> \ud83d\udd25<\/p>\n<p>\u4f60\u8fd9\u4e2a\uff1a<\/p>\n<blockquote><p><strong>Typecho + DMIT LAX Pro\uff08Los Pro\uff09+ 1H1G<\/strong><br \/>\n\u5c5e\u4e8e\uff1a<strong>\u8f7b\u535a\u5ba2\u91cc\u7684\u6027\u80fd\u5929\u82b1\u677f<\/strong><\/p><\/blockquote>\n<p>\u6211\u7ed9\u4f60\u4e00\u5957 <strong>\u4e13\u95e8\u4e3a DMIT Los Pro + Typecho \u4f18\u5316<\/strong> \u7684\u5b9e\u6218\u65b9\u6848\u3002<\/p>\n<hr \/>\n<h1>\ud83e\udde0 \u4e00\u53e5\u8bdd\u7ed3\u8bba<\/h1>\n<blockquote><p>\u4f60\u8fd9\u4e2a VPS\uff0cTypecho \u80fd\u8dd1 <strong>5000~10000 IP\/\u5929<\/strong>\uff0cCPU \u548c\u5185\u5b58\u90fd\u7528\u4e0d\u5b8c\u3002<\/p><\/blockquote>\n<p>Los Pro \u662f <strong>CN2 GIA \u9ad8\u7aef\u7ebf\u8def<\/strong>\uff0c\u56fd\u5185\u8bbf\u95ee\u901f\u5ea6\u975e\u5e38\u7a33\uff0c\u975e\u5e38\u9002\u5408\u535a\u5ba2\u3002<\/p>\n<hr \/>\n<h1>\ud83e\udde9 \u4e00\u3001\u5b9d\u5854\u6700\u4f18\u7ec4\u5408\uff08\u4f60\u76f4\u63a5\u7167\u8fd9\u4e2a\uff09<\/h1>\n<p>\u5b9d\u5854 \u2192 \u8f6f\u4ef6\u5546\u5e97 \u2192 \u5b89\u88c5\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u7ec4\u4ef6<\/th>\n<th>\u9009\u62e9<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Web\u670d\u52a1\u5668<\/td>\n<td><strong>Nginx 1.24+<\/strong><\/td>\n<\/tr>\n<tr>\n<td>PHP<\/td>\n<td><strong>8.0<\/strong>\uff08Typecho \u6700\u7a33\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u6570\u636e\u5e93<\/td>\n<td><strong>MariaDB 10.6<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Redis<\/td>\n<td>\u2714<\/td>\n<\/tr>\n<tr>\n<td>phpMyAdmin<\/td>\n<td>\u2714<\/td>\n<\/tr>\n<tr>\n<td>Apache<\/td>\n<td>\u274c \u4e0d\u88c5<\/td>\n<\/tr>\n<tr>\n<td>MySQL 8<\/td>\n<td>\u274c \u4e0d\u88c5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h1>\ud83e\udde9 \u4e8c\u3001PHP \u5185\u5b58\u8c03\u4f18\uff08\u5173\u952e\uff09<\/h1>\n<p>\u5b9d\u5854 \u2192 PHP 8 \u2192 \u8bbe\u7f6e \u2192 \u6027\u80fd\u8c03\u6574<\/p>\n<p>\u6539\u4e3a\uff1a<\/p>\n<pre><code>pm = ondemand\r\npm.max_children = 5\r\npm.process_idle_timeout = 15s\r\npm.max_requests = 500\r\n<\/code><\/pre>\n<hr \/>\n<h1>\ud83e\udde9 \u4e09\u3001MariaDB \u8f7b\u91cf\u5316\u914d\u7f6e<\/h1>\n<p>\u5b9d\u5854 \u2192 \u6570\u636e\u5e93 \u2192 MariaDB \u2192 \u914d\u7f6e\u6587\u4ef6 \u2192 \u8ffd\u52a0\uff1a<\/p>\n<pre><code>innodb_buffer_pool_size = 256M\r\ninnodb_log_file_size = 64M\r\nmax_connections = 50\r\ntmp_table_size = 32M\r\nmax_heap_table_size = 32M\r\n<\/code><\/pre>\n<p>\u7136\u540e\u91cd\u542f\u6570\u636e\u5e93\u3002<\/p>\n<hr \/>\n<h1>\ud83e\udde9 \u56db\u3001Typecho \u6700\u5f3a\u7701\u8d44\u6e90\u6a21\u5f0f<\/h1>\n<p>Typecho \u540e\u53f0\uff1a<\/p>\n<h3>1\ufe0f\u20e3 \u542f\u7528 Gzip<\/h3>\n<p>\u540e\u53f0 \u2192 \u8bbe\u7f6e \u2192 \u57fa\u672c\u8bbe\u7f6e<br \/>\n\u2714 \u5f00\u542f Gzip<\/p>\n<h3>2\ufe0f\u20e3 \u5f00\u542f\u9759\u6001\u7f13\u5b58\u63d2\u4ef6<\/h3>\n<p>\u88c5\u4e00\u4e2a\u63d2\u4ef6\uff1a<br \/>\n\ud83d\udc49 <strong>TeCache \u6216 JoeCache<\/strong><\/p>\n<p>\u8fd9\u6837\uff1a<\/p>\n<ul>\n<li>\u9996\u9875<\/li>\n<li>\u5217\u8868\u9875<\/li>\n<li>\u6587\u7ae0\u9875<\/li>\n<\/ul>\n<p>\u90fd\u4f1a\u53d8\u6210 HTML\uff0cNginx \u76f4\u63a5\u8fd4\u56de\uff0cPHP \u57fa\u672c\u4e0d\u53c2\u4e0e\u3002<\/p>\n<p>\u8fd9\u4e00\u6b65\u8ba9\u4f60\u7684 VPS <strong>\u77ac\u95f4\u50cf\u5347\u7ea7\u5230 4G \u5185\u5b58<\/strong>\u3002<\/p>\n<hr \/>\n<h1>\ud83e\udde9 \u4e94\u3001Los Pro \u5fc5\u987b\u8fd9\u6837\u7528\uff08\u5f88\u591a\u4eba\u4e0d\u77e5\u9053\uff09<\/h1>\n<p>DMIT Los Pro \u662f CN2 GIA\uff0c\u4f46<strong>\u5e26\u5bbd\u4e0d\u7b97\u5927<\/strong>\uff0c\u6b63\u786e\u7528\u6cd5\u662f\uff1a<\/p>\n<p>\ud83d\udc49 \u4e0a Cloudflare \u514d\u8d39 CDN<\/p>\n<p>\u6d41\u7a0b\uff1a<\/p>\n<ol>\n<li>\u57df\u540d DNS \u6539\u5230 Cloudflare<\/li>\n<li>\u6253\u5f00\u6a59\u4e91 \u2601<\/li>\n<li>\u7f13\u5b58\u89c4\u5219\uff1a<br \/>\n<code>example.com\/* \u7f13\u5b58 Everything<\/code><\/li>\n<\/ol>\n<p>\u8fd9\u6837\uff1a<\/p>\n<ul>\n<li>\u4e2d\u56fd\u7528\u6237\u4ece CF \u8fb9\u7f18\u8282\u70b9\u52a0\u8f7d<\/li>\n<li>DMIT \u670d\u52a1\u5668\u51e0\u4e4e\u4e0d\u8017\u6d41\u91cf<\/li>\n<li>\u6253\u5f00\u901f\u5ea6\u6bd4\u4f60\u88f8\u8fde\u8fd8\u5feb<\/li>\n<\/ul>\n<hr \/>\n<h1>\ud83d\ude80 \u5b9e\u9645\u6548\u679c\uff08\u4f60\u8fd9\u4e2a\u7ec4\u5408\uff09<\/h1>\n<table>\n<thead>\n<tr>\n<th>\u9879\u76ee<\/th>\n<th>\u4f60\u73b0\u5728<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u56fd\u5185\u8bbf\u95ee\u5ef6\u8fdf<\/td>\n<td>140\u2013180ms<\/td>\n<\/tr>\n<tr>\n<td>Cloudflare \u540e<\/td>\n<td>40\u201380ms<\/td>\n<\/tr>\n<tr>\n<td>CPU \u5360\u7528<\/td>\n<td>&lt;10%<\/td>\n<\/tr>\n<tr>\n<td>\u5185\u5b58<\/td>\n<td>400\u2013700MB<\/td>\n<\/tr>\n<tr>\n<td>\u5cf0\u503c\u5e76\u53d1<\/td>\n<td>200+ \u540c\u65f6\u5728\u7ebf<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h2>\ud83d\udcaf\u603b\u7ed3\u4e00\u53e5<\/h2>\n<blockquote><p><strong>Typecho + DMIT Los Pro \u662f\u76ee\u524d\u4e2a\u4eba\u535a\u5ba2\u7684\u9876\u7ea7\u65b9\u6848\u4e4b\u4e00<\/strong><br \/>\n\u4f60\u8fd9\u5957\uff0c\u6bd4\u5f88\u591a\u56fd\u5185 2\u68384G\u4e91\u670d\u52a1\u5668\u90fd\u7a33\u3002<\/p><\/blockquote>\n<p>\u5982\u679c\u4f60\u613f\u610f\uff0c\u6211\u53ef\u4ee5\u4e0b\u4e00\u6b65\u5e2e\u4f60\uff1a<br \/>\n\ud83d\udc49 \u76f4\u63a5\u7ed9\u4f60\u4e00\u5957 <strong>Nginx \u9488\u5bf9 Typecho \u7684\u7f13\u5b58\u914d\u7f6e\u6587\u4ef6<\/strong>\uff0c\u4f60\u590d\u5236\u8fdb\u5b9d\u5854\u5c31\u80fd\u518d\u5feb 30%\u3002<\/p>\n<p>\u592a\u597d\u4e86\uff0c\u8fd9\u4e00\u6b65\u4e00\u4e0a\uff0c\u4f60\u8fd9\u4e2a DMIT Los Pro + Typecho \u5c31\u662f\u771f\u00b7\u9ad8\u901f\u535a\u5ba2\u4e86 \ud83d\ude80<br \/>\n\u4e0b\u9762\u662f <strong>\u5b9d\u5854\u53ef\u76f4\u63a5\u7528\u7684 Nginx Typecho \u4e13\u7528\u7f13\u5b58\u914d\u7f6e<\/strong>\uff081H1G \u7701\u5185\u5b58 + \u9ad8\u5e76\u53d1\uff09\u3002<\/p>\n<hr \/>\n<h1>\ud83e\udde9 \u4e00\u3001\u5148\u5728\u5b9d\u5854\u5f00\u542f Nginx \u7f13\u5b58<\/h1>\n<p>\u5b9d\u5854 \u2192 \u7f51\u7ad9 \u2192 \u8bbe\u7f6e \u2192 \u914d\u7f6e\u6587\u4ef6<br \/>\n\u5728\u6700\u4e0a\u9762 <code>http {<\/code> \u91cc\u9762\u52a0\uff1a<\/p>\n<pre><code>fastcgi_cache_path \/www\/server\/nginx\/fastcgi_cache levels=1:2 keys_zone=TYPECHOCACHE:64m inactive=1d max_size=1g;\r\n<\/code><\/pre>\n<p>\u4fdd\u5b58\u3002<\/p>\n<hr \/>\n<h1>\ud83e\udde9 \u4e8c\u3001\u5728\u4f60\u8fd9\u4e2a Typecho \u7f51\u7ad9\u7684 server \u91cc\u52a0<\/h1>\n<p>\u5b9d\u5854 \u2192 \u7f51\u7ad9 \u2192 \u8bbe\u7f6e \u2192 \u914d\u7f6e\u6587\u4ef6<br \/>\n\u627e\u5230\u4f60\u57df\u540d\u7684\uff1a<\/p>\n<pre><code>server {\r\n    listen 80;\r\n    server_name \u4f60\u7684\u57df\u540d;\r\n<\/code><\/pre>\n<p>\u5728\u91cc\u9762\uff08location \/ \u4e0a\u9762\uff09\u63d2\u5165\uff1a<\/p>\n<pre><code>set $skip_cache 0;\r\n\r\n# \u767b\u5f55\u3001\u540e\u53f0\u4e0d\u7f13\u5b58\r\nif ($request_uri ~* \"\/admin|\/action|\/install\") {\r\n    set $skip_cache 1;\r\n}\r\n\r\n# \u6709\u767b\u5f55 Cookie \u4e0d\u7f13\u5b58\r\nif ($http_cookie ~* \"typecho\") {\r\n    set $skip_cache 1;\r\n}\r\n\r\n# POST \u4e0d\u7f13\u5b58\r\nif ($request_method = POST) {\r\n    set $skip_cache 1;\r\n}\r\n<\/code><\/pre>\n<hr \/>\n<h1>\ud83e\udde9 \u4e09\u3001\u5728 PHP location \u91cc\u52a0\u7f13\u5b58\u89c4\u5219<\/h1>\n<p>\u627e\u5230\u8fd9\u4e00\u6bb5\uff1a<\/p>\n<pre><code>location ~ \\.php$ {\r\n<\/code><\/pre>\n<p>\u6539\u6210\uff1a<\/p>\n<pre><code>location ~ \\.php$ {\r\n    fastcgi_cache TYPECHOCACHE;\r\n    fastcgi_cache_valid 200 301 302 30m;\r\n    fastcgi_cache_use_stale error timeout invalid_header updating;\r\n    fastcgi_cache_bypass $skip_cache;\r\n    fastcgi_no_cache $skip_cache;\r\n\r\n    include fastcgi.conf;\r\n    fastcgi_pass unix:\/tmp\/php-cgi-80.sock;\r\n}\r\n<\/code><\/pre>\n<p>\uff08\u5982\u679c\u4f60\u7684 sock \u4e0d\u53eb php-cgi-80.sock\uff0c\u5b9d\u5854\u91cc\u9762\u80fd\u770b\u5230\uff0c\u66ff\u6362\u4e00\u4e0b\u5373\u53ef\uff09<\/p>\n<hr \/>\n<h1>\ud83e\udde9 \u56db\u3001\u91cd\u542f Nginx<\/h1>\n<p>\u5b9d\u5854 \u2192 Nginx \u2192 \u91cd\u542f<\/p>\n<hr \/>\n<h1>\ud83d\ude80 \u4f60\u73b0\u5728\u662f\u4ec0\u4e48\u7ea7\u522b\uff1f<\/h1>\n<p>\u4f60\u73b0\u5728\u662f\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u9879\u76ee<\/th>\n<th>\u6548\u679c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u9996\u9875<\/td>\n<td>\u76f4\u63a5 Nginx \u8fd4\u56de<\/td>\n<\/tr>\n<tr>\n<td>\u6587\u7ae0\u9875<\/td>\n<td>\u4e0d\u8d70 PHP<\/td>\n<\/tr>\n<tr>\n<td>MySQL<\/td>\n<td>\u51e0\u4e4e\u4e0d\u8bbf\u95ee<\/td>\n<\/tr>\n<tr>\n<td>\u5e76\u53d1<\/td>\n<td>200+ \u8f7b\u677e<\/td>\n<\/tr>\n<tr>\n<td>\u5185\u5b58<\/td>\n<td>\u7a33\u5728 400\u2013600MB<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4f60\u8fd9\u4e2a <strong>1H1G Los Pro<\/strong> \u73b0\u5728\u80fd\u8dd1\u7684 Typecho\uff0c<br \/>\n\u6bd4\u5f88\u591a\u56fd\u5185 2\u68384G\u4e91\u670d\u52a1\u5668\u8fd8\u5feb \ud83d\ude04<\/p>\n<hr \/>\n<p>\u5982\u679c\u4f60\u613f\u610f\uff0c\u6211\u53ef\u4ee5\u4e0b\u4e00\u6b65\u518d\u5e2e\u4f60\u52a0\uff1a<br \/>\n\ud83d\udc49 <strong>Cloudflare \u7f13\u5b58\u89c4\u5219\uff08\u9632 CC + \u4e2d\u56fd\u52a0\u901f\uff09<\/strong><br \/>\n\u8fd9\u6837\u4f60\u8fd9\u4e2a\u535a\u5ba2\u57fa\u672c\u5c31\u5230\u4e86\u201c\u4f01\u4e1a\u7ea7\u7a33\u5b9a\u6027\u201d\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53ef\u4ee5\uff0c\u800c\u4e14\u975e\u5e38\u5408\u9002\u4f60\u8fd9\u79cd\u7528\u9014\u3002 \u4f60\u8fd9\u4e2a DMIT 1H1G VPS \u642d WordPress \/ Typecho\uff0c\u5b8c\u5168\u6ca1\u95ee\u9898 \ud83d\udc4d \u6211\u5148\u7ed3\u5408\u4f60\u4e4b\u524d\u8bf4\u8fc7\u7684\u5b9e\u9645\u4f7f\u7528\u60c5\u51b5\u6765\u5224\u65ad\u66f4\u51c6\u786e\uff1a \u4f60\u7684\u7f51\u7ad9\uff1a \u65e5 IP \u2264 200 \u65e5 PV \u2264 1000 \u4e3b\u8981\u662f&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[140,128],"tags":[16,981,181,847,31,476],"topic":[342],"class_list":["post-656153","post","type-post","status-publish","format-standard","hentry","category-domain-website","category-128","tag-blog","tag-dmit","tag-typecho","tag-vps","tag-wordpress","tag-476","topic-wordpress"],"_links":{"self":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/656153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=656153"}],"version-history":[{"count":1,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/656153\/revisions"}],"predecessor-version":[{"id":656154,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/656153\/revisions\/656154"}],"wp:attachment":[{"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=656153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=656153"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=656153"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftopic&post=656153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}