{"id":4690,"date":"2013-12-02T10:13:06","date_gmt":"2013-12-02T02:13:06","guid":{"rendered":"http:\/\/www.orczhou.com\/?p=4690"},"modified":"2024-04-02T10:14:52","modified_gmt":"2024-04-02T02:14:52","slug":"build-a-blog-on-vps","status":"publish","type":"post","link":"https:\/\/www.orczhou.com\/index.php\/2013\/12\/build-a-blog-on-vps\/","title":{"rendered":"\u5728VPS\u4e0a\u6784\u5efa\u81ea\u5df1Blog"},"content":{"rendered":"<p>\u968f\u7740\u5404\u79cdSNS\u6d41\u884c\uff0c\u5199\u535a\u5ba2\u7684\u4eba\u4e5f\u8d8a\u6765\u8d8a\u5c11\uff0c\u5c31\u8fde<a href=\"https:\/\/www.google.com\/reader\/about\/#overview-page\" target=\"_blank\" rel=\"noopener\">&#8220;\u535a\u5ba2\u4f34\u4fa3&#8221;&#8211;Google Reader<\/a>\u4e5f\u5173\u505c\u4e86\uff0c\u5199\u535a\u5ba2\u4f5c\u4e3a\u4e00\u4e2a\u5f88\u597d\u7684\u5206\u4eab\u548c\u4e2a\u4eba\u79ef\u7d2f\u5e73\u53f0\uff0c\u4e00\u76f4\u575a\u6301\u4e0b\u6765\u4e86\uff0c\u8fd8\u5c06\u575a\u6301\u4e0b\u53bb\u3002\u672c\u6587\u4ecb\u7ecd\u81ea\u5df1\u5982\u4f55\u5728VPS\u4e0a\u642d\u5efa\u81ea\u5df1\u7684\u535a\u5ba2\uff0c\u8fd9\u91cc\u4f7f\u7528&#8221;\u8001\u6d3e&#8221;\u7684LAMP\u3002\u968f\u7740\u4e91\u8ba1\u7b97\u7684\u6d41\u884c\uff0c\u76f8\u4fe1\u7c7b\u4f3c\u9700\u6c42\u7684\u4eba\u4f1a\u589e\u591a\uff0c\u5e0c\u671b\u8fd9\u7bc7\u535a\u5ba2\u80fd\u5bf9\u5176\u4ed6\u4eba\u6709\u70b9\u4f5c\u7528\u3002<\/p>\n\n<h3>1. \u9009\u62e9\u865a\u62df\u4e3b\u673a(VPS)<\/h3>\n<p>\u8fd9\u5c31\u662f\u4e00\u4ef6\u5f88\u70e6\u4eba(\u56e0\u4e3a\u7a77)\u7684\u4e8b\u60c5\u3002<\/p>\n<p>\u5982\u679c\u9009\u62e9\u56fd\u5185\u4e3b\u673a\uff0c\u5219\u53ef\u4ee5\u8003\u8651\u963f\u91cc\u4e91\uff0c\u57fa\u7840\u914d\u7f6e\u5355\u6838\/512MB\/5Mb\u5e26\u5bbd<a href=\"http:\/\/buy.aliyun.com\/?spm=5176.383518.4.2.vrDbvs\" target=\"_blank\" rel=\"noopener\">\u6bcf\u5e74\u4ef7\u683c\u5927\u6982\u5728650\u5de6\u53f3<\/a>\uff0c\u5982\u679c\u653e\u5f03\u72ec\u4eab\u5e26\u5bbd(\u4e2a\u4eba\u535a\u5ba2\u5e94\u8be5\u65e0\u6240\u8c13)\uff0c\u5219\u53ef\u4ee5\u964d\u4ef7\u5230460\u5757\u3002<\/p>\n<p>\u5982\u679c\u662f\u56fd\u5916\u4e3b\u673a\u7684\u8bdd\uff0c\u9009\u62e9\u5c31\u6bd4\u8f83\u591a\u4e86\uff0c\u5e38\u89c1\u7684\u6709Linode\uff0c\u5185\u5b581GB\u7684\u6bcf\u5e74\u67081300\u5143\u5de6\u53f3\uff0c\u56e0\u4e3a\u6709\u65e5\u672c\u673a\u623f\uff0c\u6240\u4ee5\u5bf9\u56fd\u5916\u7684\u4e3b\u673a\u6765\u8bf4\uff0c\u901a\u5e38Linode\u901f\u5ea6\u66f4\u5feb(\u901a\u5e38100ms-200ms)\uff1bDreamhost\u7684VPS\u4f4e\u914d\uff0c300MB\u5185\u5b58\uff0c\u6bcf\u5e74\u7ea6900\u5143\u5de6\u53f3\u3002\u5e38\u89c1\u9009\u62e9\u8fd8\u6709Godaddy\u3001budgetvm(\u4fbf\u5b9c)\u7b49\u3002<\/p>\n<p><strong>\u6211\u9009\u62e9\u7684\u662f<a href=\"https:\/\/www.digitalocean.com\/\" target=\"_blank\" rel=\"noopener\">digitalocean<\/a>\uff0c\u56e0\u4e3a\u4fbf\u5b9c\uff0c\u4f7f\u75281\u4e2a\u6708\u4e86\uff0c\u901f\u5ea6\u4e5f\u5f88\u7a33\u5b9a\u3002<\/strong><\/p>\n<p>digitalocean\u662f\u6700\u8fd1\u5174\u8d77\u7684\u6781\u7b80\u4e91\u4e3b\u673a\uff0c<a href=\"https:\/\/www.digitalocean.com\/features\" target=\"_blank\" rel=\"noopener\">\u53f7\u79f055\u79d2\u5b8c\u6210\u90e8\u7f72<\/a>\u3002\u6574\u4e2a\u8d2d\u4e70\u3001\u4f7f\u7528\u3001\u4ed8\u6b3e\u90fd\u975e\u5e38\u7b80\u6d01\uff0c\u6700\u5927\u7684\u7279\u70b9\u662f\u4fbf\u5b9c\uff0c\u53e6\u5916SSD\u786c\u76d8\u4e5f\u662f\u4e00\u4e2a\u4eae\u70b9\uff0c<a href=\"https:\/\/raymii.org\/s\/articles\/Digital_Ocean_Sucks._Use_Digital_Ocean.html\" target=\"_blank\" rel=\"noopener\">\u7ecf\u6d4b<\/a>\u78c1\u76d8\u6027\u80fd\u786e\u5b9e\u4e0d\u9519\uff0c\u4e0d\u8fc7\u56e0\u4e3a\u673a\u623f\u4e3b\u8981\u5728\u6b27\u7f8e(\u7ebd\u7ea6\u3001\u65e7\u91d1\u5c71\u3001\u963f\u59c6\u65af\u7279\u4e39)\u79bb\u56fd\u5185\u90fd\u6bd4\u8f83\u8fdc\uff0c\u6240\u4ee5\u5ef6\u8fdf\u8f83\u5927\uff0c\u7ea6300ms(ping\u4e00\u4e0b\u6211\u7684\u535a\u5ba2\u5c31\u77e5\u9053\u4e86\uff0c\u60f3\u60f3\u6bcf\u6b21\u653e\u6211\u7684\u535a\u5ba2\uff0c\u6570\u636e\u90fd\u4ece\u7ebd\u7ea6\u8fc7\u6765\uff0c\u4e5f\u5c31\u4e0d\u89c9\u5f97\u6162\u4e86)\u3002\u4ef7\u683c\u6bd4\u8f83\u4fbf\u5b9c\uff0c360\u5143\u6bcf\u5e74\uff0c512MB\u5185\u5b58\uff0c20GB\u78c1\u76d8\u3002\u4eca\u5e748\u6708\uff0cdigitalocean<a href=\"http:\/\/techcrunch.com\/2013\/08\/07\/fast-growing-cloud-hosting-service-digital-ocean-raises-3-2m-seed-round-led-by-ia-ventures\/\" target=\"_blank\" rel=\"noopener\">\u83b7\u5f97\u79cd\u5b50\u6295\u8d443\u767e\u4e07\u7f8e\u5143<\/a>\uff0c<a href=\"https:\/\/www.digitalocean.com\/about\" target=\"_blank\" rel=\"noopener\">2012\u5e74\u4eceTechStars\u5b75\u5316\u51fa\u6765<\/a>\u3002\u975e\u5e38\u559c\u6b22digitalocean\u7684\u6781\u7b80\u539f\u5219\uff0c\u522b\u4eba\u5728\u628a\u529f\u80fd\u505a\u591a\uff0c\u4ed6\u5728\u628a\u529f\u80fd\u505a\u5c11\u3002\u5e0c\u671b\uff0c\u81ea\u5df1\u4ee5\u540e\u7684\u5de5\u4f5c\u4e5f\u80fd\u591f\u662f\u8fd9\u4e2a\u6837\u5b50\uff0c\u73b0\u5728\u8fd9\u4efd\u5de5\u4f5c\u662f\u6ca1\u620f\u4e86\uff0c\u4e0d\u597d\u610f\u601d\uff0c\u8bf4\u591a\u4e86\u3002<\/p>\n<h3>2. \u5b89\u88c5httpd+MySQL+PHP<\/h3>\n<p>\u535a\u5ba2\u4f7f\u7528\u7684\u662f<a href=\"http:\/\/wordpress.com\/\" target=\"_blank\" rel=\"noopener\">WordPress<\/a>\uff0c\u9700\u8981PHP\u73af\u5883\u8fd0\u884c\uff0c\u8fd9\u91cc\u9009\u62e9\u4e86LAMP\u3002<strong>\u5b89\u88c5\u975e\u5e38\u5feb\u6377<\/strong>\uff1a<\/p>\n<div class=\"mycode\">yum install httpd<br \/>\nyum install mysql<br \/>\nyum install php<br \/>\nyum install php-mysql<br \/>\nservice httpd restart<br \/>\nservice mysqld restart  or mysqld_safe &#038;\n<\/div>\n<p>\u5728MySQL\u4e2d\u5efa\u597dWordpress\u9700\u8981\u4f7f\u7528\u7684<a href=\"http:\/\/dev.mysql.com\/doc\/refman\/5.1\/en\/create-database.html\" target=\"_blank\" rel=\"noopener\">\u6570\u636e\u5e93<\/a>\u548c<a href=\"http:\/\/dev.mysql.com\/doc\/refman\/5.1\/en\/grant.html\" target=\"_blank\" rel=\"noopener\">\u7528\u6237<\/a>\u3002\u7136\u540e\u5c06Wordpress\u4ee3\u7801\u653e\u5230<a href=\"http:\/\/httpd.apache.org\/docs\/2.2\/vhosts\/\" target=\"_blank\" rel=\"noopener\">httpd\u7684web\u76ee\u5f55\u4e2d<\/a>\uff0c\u5728\u901a\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95eeWordpress\u5c31\u53ef\u4ee5\u5b8c\u6210\u5176\u914d\u7f6e\u3002<\/p>\n<h3>3. \u914d\u7f6ehttpd\u548cMySQL\u7684\u5185\u5b58\u4f7f\u7528<\/h3>\n<p>\u9ed8\u8ba4\u6309\u7167\u901a\u5e38\u90fd\u80fd\u591f\u8dd1\u8d77\u6765\uff0c\u4e0d\u8fc7\uff0c\u5982\u679c\u6309\u7167\u9ed8\u8ba4\u914d\u7f6e\u8dd1\uff0c512MB\u5f88\u5feb\u4f1a\u7206\u6389\uff0c\u4ece\u800c\u51fa\u73b0OOM:<\/p>\n<pre><blockquote>Out of memory: Kill process 27968 (mysqld) score 146 or sacrifice child\r\nKilled process 27968, UID 27, (mysqld) total-vm:264472kB, anon-rss:73204kB, file-rss:36kB<\/blockquote><\/pre>\n<h4>3.1 MySQL\u7684\u914d\u7f6e<\/h4>\n<p>\u8bbe\u7f6e50MB\u7684InnoDB\u7f13\u5b58\u7a7a\u95f4\uff0c\u7528\u4e8e\u5c06Wordpress\u7684\u5185\u5b58\u7f13\u5b58\u5230\u5185\u5b58\u4e2d\uff1a<\/p>\n<pre><blockquote>innodb_log_buffer_size=30MB<\/blockquote><\/pre>\n<p>InnoDB\u7684\u65e5\u5fd7\u6587\u4ef6\u8bbe\u7f6e\u4e24\u7ec4\uff0c\u6bcf\u7ec450MB(\u8fd9\u662f\u6d88\u8017\u78c1\u76d8\u7a7a\u95f4)\uff1a<\/p>\n<pre><blockquote>innodb_log_file_size=50M\r\ninnodb_log_files_in_group=2<\/blockquote><\/pre>\n<p>\u8fd9\u6837MySQL\u5185\u5b58\u4f7f\u7528\u80fd\u591f\u9650\u5236\u5728\u7ea650MB\u3002<\/p>\n<h4>3.1 httpd\u7684\u914d\u7f6e<\/h4>\n<p>httpd\u914d\u7f6e\u9700\u8981\u7279\u522b\u6ce8\u610f\uff0c\u9ed8\u8ba4\u914d\u7f6e\u5185\u5b58\u6d88\u8017\u53ef\u80fd\u5f88\u5bb9\u6613\u8d85\u8fc7512MB\u7684\u9650\u5236\u3002httpd2.2\u7248\u672c\uff0c\u9ed8\u8ba4\u60c5\u51b5httpd\u4f7f\u7528\u6a21\u5757\u7f6eprefork\u6765\u591a\u7ebf\u7a0b\u7ba1\u7406\u3002\u5b83\u7684\u9ed8\u8ba4\u914d\u7f6e\u662f\uff1a<\/p>\n<pre><blockquote>&lt;IfModule prefork.c&gt;\r\nStartServers       8\r\nMinSpareServers    5\r\nMaxSpareServers   20\r\nServerLimit      256\r\nMaxClients       256\r\nMaxRequestsPerChild  4000&lt;\/IfModule&gt;<\/blockquote><\/pre>\n<p>\u8fd9\u610f\u5473httpd\u6700\u591a\u53ef\u4ee5\u8d77256\u4e2a\u8fdb\u7a0b\u5904\u7406\u8bf7\u6c42\uff0c\u6bcf\u4e2a\u8fdb\u7a0b\u7ea6\u5360\u752835MB(RES)\uff0c\u800c\u4e14\u53ea\u6709\u95f2\u7f6e\u8fdb\u7a0b\u8d85\u8fc720\u4e2a(MaxSpareServers)\u624d\u4f1a\u6e05\u7406\uff0c\u6240\u4ee5\uff0c\u8fd9\u4e2a\u914d\u7f6e\u4e0b\uff0c\u901a\u5e38\u90fd\u670920\u4e2a\u8fdb\u7a0b\u5e38\u9a7b\uff0c\u5185\u5b58\u4f7f\u7528\u5c31\u5f88\u5bb9\u6613\u8d85\u8fc7512MB\u4e86\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u4fee\u6539\u540e\u7684\u914d\u7f6e\uff1a<\/p>\n<pre><blockquote>&lt;IfModule prefork.c&gt;\r\nStartServers       3\r\nMinSpareServers    2\r\nMaxSpareServers    4\r\nServerLimit      256\r\nMaxClients       10\r\nMaxRequestsPerChild  100&lt;\/IfModule&gt;<\/blockquote><\/pre>\n<p>\u8fd9\u6837\u6700\u5927\u5e76\u53d1\u662f10\u4e2a\u8fdb\u7a0b\uff0c\u5f53\u9650\u5236\u8fdb\u7a0b\u8d85\u8fc74\u4e2a\u7684\u65f6\u5019\uff0c\u5c31\u5f00\u59cbkill\u3002\u5bf9\u4e8e\u6211\u8fd9\u79cd\u4f4e\u538b\u529b\u4e2a\u4eba\u535a\u5ba2\uff0c\u5df2\u7ecf\u591f\u4e86\u3002<\/p>\n<p>\u6700\u540e\uff0c\u901a\u5e38httpd\u4f7f\u7528\u6a21\u5757prefork\u6216\u8005worker\u7ef4\u62a4\u591a\u7ebf\u7a0b\uff0c\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d<a href=\"https:\/\/communities.ca.com\/web\/ca-identity-and-access-mgmt-distributed-global-user-community\/message-board\/-\/message_boards\/view_message\/98290538\" target=\"_blank\" rel=\"noopener\">Apache &#8211; prefork vs. worker mode, how to check mode and more<\/a>\uff0c\u4ecb\u7ecd\u4e86\uff1a(a)\u5982\u4f55\u533a\u5206\u4f60\u4f7f\u7528\u54ea\u4e2a\u6a21\u5757\uff1b(b)\u5982\u4f55\u914d\u7f6e\u4f7f\u7528\u54ea\u4e2a\u6a21\u5757\uff1b(c)\u4ed6\u4eec\u7684\u4f18\u7f3a\u70b9\u3002<\/p>\n<h3>4. \u914d\u7f6eswap<\/h3>\n<p><a href=\"https:\/\/www.digitalocean.com\/\" target=\"_blank\" rel=\"noopener\">digitalocean<\/a>\u7684VPS\u9ed8\u8ba4\u662f\u6ca1\u6709swap\uff0c\u6240\u4ee5\u5185\u5b58\u4e00\u65e6\u8d85\u51fa\uff0c\u5219\u4f1a\u7acb\u523b\u53d1\u751f<a href=\"http:\/\/en.wikipedia.org\/wiki\/Out_of_memory\" target=\"_blank\" rel=\"noopener\">OOM<\/a>\u3002\u56e0\u4e3a<a href=\"https:\/\/www.digitalocean.com\/\" target=\"_blank\" rel=\"noopener\">digitalocean<\/a>\u4ee5ssd\u4e3a\u7279\u70b9\uff0c\u6240\u4ee5\u76f4\u63a5\u7528\u5176\u78c1\u76d8\u6765\u505a\u4e00\u4e2aswap\u5206\u533a\u5f25\u8865\u5185\u5b58\u8865\u8db3\u662f\u975e\u5e38\u597d\u7684\u3002<\/p>\n<p>\u64cd\u4f5c\u53c2\u8003\uff1a<a href=\"http:\/\/www.cyberciti.biz\/faq\/linux-add-a-swap-file-howto\/\" target=\"_blank\" rel=\"noopener\">Linux Add a Swap File \u2013 Howto<\/a><\/p>\n<p>\u5728\u8fd9\u81ea\u5df1\u8d2d\u4e70VPS\u4e4b\u524d\uff0c\u4e00\u76f4\u8e6d\u7528<a href=\"http:\/\/www.ningoo.net\/\" target=\"_blank\" rel=\"noopener\">Ningoo\u7684Dreamhost\u4e3b\u673a<\/a>\uff0c\u611f\u8c22\u3002<\/p>\n<p>\u540e\u7eed\u8fd8\u4f1a\u518d\u8003\u8651\u6d4b\u8bd5\u4f7f\u7528Google App Engine\u548cAmazon AWS\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u968f\u7740\u5404\u79cdSNS\u6d41\u884c\uff0c\u5199\u535a\u5ba2\u7684\u4eba\u4e5f\u8d8a\u6765\u8d8a\u5c11\uff0c\u5c31\u8fde&#8220;\u535a\u5ba2\u4f34\u4fa3&#8221;&#8211;Google Reader\u4e5f\u5173\u505c\u4e86\uff0c\u5199\u535a\u5ba2\u4f5c\u4e3a\u4e00\u4e2a\u5f88\u597d\u7684\u5206\u4eab\u548c\u4e2a\u4eba\u79ef\u7d2f\u5e73\u53f0\uff0c\u4e00\u76f4\u575a\u6301\u4e0b\u6765\u4e86\uff0c\u8fd8\u5c06\u575a\u6301\u4e0b\u53bb\u3002\u672c\u6587\u4ecb\u7ecd\u81ea\u5df1\u5982\u4f55\u5728VPS\u4e0a\u642d\u5efa\u81ea\u5df1\u7684\u535a\u5ba2\uff0c\u8fd9\u91cc\u4f7f\u7528&#8221;\u8001\u6d3e&#8221;\u7684LAMP\u3002\u968f\u7740\u4e91\u8ba1\u7b97\u7684\u6d41\u884c\uff0c\u76f8\u4fe1\u7c7b\u4f3c\u9700\u6c42\u7684\u4eba\u4f1a\u589e\u591a\uff0c\u5e0c\u671b\u8fd9\u7bc7\u535a\u5ba2\u80fd\u5bf9\u5176\u4ed6\u4eba\u6709\u70b9\u4f5c\u7528\u3002 1. \u9009\u62e9\u865a\u62df\u4e3b\u673a(VPS) \u8fd9\u5c31\u662f\u4e00\u4ef6\u5f88\u70e6\u4eba(\u56e0\u4e3a\u7a77)\u7684\u4e8b\u60c5\u3002 \u5982\u679c\u9009\u62e9\u56fd\u5185\u4e3b\u673a\uff0c\u5219\u53ef\u4ee5\u8003\u8651\u963f\u91cc\u4e91\uff0c\u57fa\u7840\u914d\u7f6e\u5355\u6838\/512MB\/5Mb\u5e26\u5bbd\u6bcf\u5e74\u4ef7\u683c\u5927\u6982\u5728650\u5de6\u53f3\uff0c\u5982\u679c\u653e\u5f03\u72ec\u4eab\u5e26\u5bbd(\u4e2a\u4eba\u535a\u5ba2\u5e94\u8be5\u65e0\u6240\u8c13)\uff0c\u5219\u53ef\u4ee5\u964d\u4ef7\u5230460\u5757\u3002 \u5982\u679c\u662f\u56fd\u5916\u4e3b\u673a\u7684\u8bdd\uff0c\u9009\u62e9\u5c31\u6bd4\u8f83\u591a\u4e86\uff0c\u5e38\u89c1\u7684\u6709Linode\uff0c\u5185\u5b581GB\u7684\u6bcf\u5e74\u67081300\u5143\u5de6\u53f3\uff0c\u56e0\u4e3a\u6709\u65e5\u672c\u673a\u623f\uff0c\u6240\u4ee5\u5bf9\u56fd\u5916\u7684\u4e3b\u673a\u6765\u8bf4\uff0c\u901a\u5e38Linode\u901f\u5ea6\u66f4\u5feb(\u901a\u5e38100ms-200ms)\uff1bDreamhost\u7684VPS\u4f4e\u914d\uff0c300MB\u5185\u5b58\uff0c\u6bcf\u5e74\u7ea6900\u5143\u5de6\u53f3\u3002\u5e38\u89c1\u9009\u62e9\u8fd8\u6709Godaddy\u3001budgetvm(\u4fbf\u5b9c)\u7b49\u3002 \u6211\u9009\u62e9\u7684\u662fdigitalocean\uff0c\u56e0\u4e3a\u4fbf\u5b9c\uff0c\u4f7f\u75281\u4e2a\u6708\u4e86\uff0c\u901f\u5ea6\u4e5f\u5f88\u7a33\u5b9a\u3002 digitalocean\u662f\u6700\u8fd1\u5174\u8d77\u7684\u6781\u7b80\u4e91\u4e3b\u673a\uff0c\u53f7\u79f055\u79d2\u5b8c\u6210\u90e8\u7f72\u3002\u6574\u4e2a\u8d2d\u4e70\u3001\u4f7f\u7528\u3001\u4ed8\u6b3e\u90fd\u975e\u5e38\u7b80\u6d01\uff0c\u6700\u5927\u7684\u7279\u70b9\u662f\u4fbf\u5b9c\uff0c\u53e6\u5916SSD\u786c\u76d8\u4e5f\u662f\u4e00\u4e2a\u4eae\u70b9\uff0c\u7ecf\u6d4b\u78c1\u76d8\u6027\u80fd\u786e\u5b9e\u4e0d\u9519\uff0c\u4e0d\u8fc7\u56e0\u4e3a\u673a\u623f\u4e3b\u8981\u5728\u6b27\u7f8e(\u7ebd\u7ea6\u3001\u65e7\u91d1\u5c71\u3001\u963f\u59c6\u65af\u7279\u4e39)\u79bb\u56fd\u5185\u90fd\u6bd4\u8f83\u8fdc\uff0c\u6240\u4ee5\u5ef6\u8fdf\u8f83\u5927\uff0c\u7ea6300ms(ping\u4e00\u4e0b\u6211\u7684\u535a\u5ba2\u5c31\u77e5\u9053\u4e86\uff0c\u60f3\u60f3\u6bcf\u6b21\u653e\u6211\u7684\u535a\u5ba2\uff0c\u6570\u636e\u90fd\u4ece\u7ebd\u7ea6\u8fc7\u6765\uff0c\u4e5f\u5c31\u4e0d\u89c9\u5f97\u6162\u4e86)\u3002\u4ef7\u683c\u6bd4\u8f83\u4fbf\u5b9c\uff0c360\u5143\u6bcf\u5e74\uff0c512MB\u5185\u5b58\uff0c20GB\u78c1\u76d8\u3002\u4eca\u5e748\u6708\uff0cdigitalocean\u83b7\u5f97\u79cd\u5b50\u6295\u8d443\u767e\u4e07\u7f8e\u5143\uff0c2012\u5e74\u4eceTechStars\u5b75\u5316\u51fa\u6765\u3002\u975e\u5e38\u559c\u6b22digitalocean\u7684\u6781\u7b80\u539f\u5219\uff0c\u522b\u4eba\u5728\u628a\u529f\u80fd\u505a\u591a\uff0c\u4ed6\u5728\u628a\u529f\u80fd\u505a\u5c11\u3002\u5e0c\u671b\uff0c\u81ea\u5df1\u4ee5\u540e\u7684\u5de5\u4f5c\u4e5f\u80fd\u591f\u662f\u8fd9\u4e2a\u6837\u5b50\uff0c\u73b0\u5728\u8fd9\u4efd\u5de5\u4f5c\u662f\u6ca1\u620f\u4e86\uff0c\u4e0d\u597d\u610f\u601d\uff0c\u8bf4\u591a\u4e86\u3002 2. \u5b89\u88c5httpd+MySQL+PHP \u535a\u5ba2\u4f7f\u7528\u7684\u662fWordPress\uff0c\u9700\u8981PHP\u73af\u5883\u8fd0\u884c\uff0c\u8fd9\u91cc\u9009\u62e9\u4e86LAMP\u3002\u5b89\u88c5\u975e\u5e38\u5feb\u6377\uff1a yum install httpd yum install mysql yum install php yum install php-mysql service httpd restart service mysqld restart or mysqld_safe &#038; \u5728MySQL\u4e2d\u5efa\u597dWordpress\u9700\u8981\u4f7f\u7528\u7684\u6570\u636e\u5e93\u548c\u7528\u6237\u3002\u7136\u540e\u5c06Wordpress\u4ee3\u7801\u653e\u5230httpd\u7684web\u76ee\u5f55\u4e2d\uff0c\u5728\u901a\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95eeWordpress\u5c31\u53ef\u4ee5\u5b8c\u6210\u5176\u914d\u7f6e\u3002 3. \u914d\u7f6ehttpd\u548cMySQL\u7684\u5185\u5b58\u4f7f\u7528 \u9ed8\u8ba4\u6309\u7167\u901a\u5e38\u90fd\u80fd\u591f\u8dd1\u8d77\u6765\uff0c\u4e0d\u8fc7\uff0c\u5982\u679c\u6309\u7167\u9ed8\u8ba4\u914d\u7f6e\u8dd1\uff0c512MB\u5f88\u5feb\u4f1a\u7206\u6389\uff0c\u4ece\u800c\u51fa\u73b0OOM: Out of memory: Kill process 27968 (mysqld) score 146 or sacrifice child Killed process 27968, UID 27, (mysqld) [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","inline_featured_image":false,"_tocer_settings":[],"footnotes":""},"categories":[27,6],"tags":[],"class_list":["post-4690","post","type-post","status-publish","format-standard","hentry","category-linux","category-mysql"],"_links":{"self":[{"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/posts\/4690","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/comments?post=4690"}],"version-history":[{"count":20,"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/posts\/4690\/revisions"}],"predecessor-version":[{"id":11154,"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/posts\/4690\/revisions\/11154"}],"wp:attachment":[{"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/media?parent=4690"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/categories?post=4690"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/tags?post=4690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}