{"id":7373,"date":"2017-10-31T22:29:39","date_gmt":"2017-11-01T05:29:39","guid":{"rendered":"http:\/\/www.slyar.com\/blog\/?p=7373"},"modified":"2022-07-03T16:11:38","modified_gmt":"2022-07-03T23:11:38","slug":"blog-move-to-google-cloud-platform","status":"publish","type":"post","link":"http:\/\/www.slyar.com\/blog\/blog-move-to-google-cloud-platform.html","title":{"rendered":"\u535a\u5ba2\u8fc1\u79fb\u81f3GCP(Google Cloud Platform)"},"content":{"rendered":"<p>\u6587\u7ae0\u4f5c\u8005\uff1a<span style=\"color: #0000ff;\">\u59dc\u5357(Slyar) <\/span>\u6587\u7ae0\u6765\u6e90\uff1aSlyar Home (<a title=\"\u5927S\u535a\u5ba2\" href=\"http:\/\/www.slyar.com\" target=\"_blank\" rel=\"noopener\">www.slyar.com<\/a>) \u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff0c\u8c22\u8c22\u5408\u4f5c\u3002<\/p>\n<p><a href=\"http:\/\/www.slyar.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-31-at-8.59.15-PM.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.slyar.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-31-at-8.59.15-PM.png\" alt=\"\" width=\"800\" height=\"331\" class=\"alignnone size-full wp-image-7374\" srcset=\"http:\/\/www.slyar.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-31-at-8.59.15-PM.png 800w, http:\/\/www.slyar.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-31-at-8.59.15-PM-150x62.png 150w, http:\/\/www.slyar.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-31-at-8.59.15-PM-300x124.png 300w, http:\/\/www.slyar.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-31-at-8.59.15-PM-768x318.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<p>\u53bb\u5e7410\u6708\u628a\u535a\u5ba2\u8fc1\u79fb\u5230AWS(Amazon Web Services)\u5e76\u79fb\u9664\u4e86https\uff0c\u6d41\u91cf\u5f00\u59cb\u6062\u590d\u6b63\u5e38\uff0c\u4e00\u5207\u90fd\u8fd0\u884c\u7684\u975e\u5e38\u597d\uff0c\u672c\u6765\u6211\u662f\u6ca1\u60f3\u7740\u8981\u6362\u7684\uff0c\u56e0\u4e3a\u6362\u5e73\u53f0\u771f\u7684\u597d\u9ebb\u70e6\u3002\u7136\u800c\u524d\u51e0\u5929\u535a\u5ba2\u88abDOS\uff0c\u5c31\u662f\u4e0a\u56fe\u6700\u540e\u9762\u7684\u90a3\u4e2adip\uff0c\u8ba9\u6211\u610f\u8bc6\u5230\u8fd9\u53f0VM\u5b9e\u5728\u662f\u592a\u8106\u5f31\u4e86\uff0c\u6628\u5929\u8bf4\u4e0d\u884c\u641e\u4e00\u4e0bRDS+S3+Docker\u5427\u7ed3\u679c\u9884\u6d4b\u4e86\u4e00\u4e0b\u4ef7\u683c\u8981\u597d\u51e0\u767e\u5200\u6bcf\u4e2a\u6708\uff0c\u7528\u4e0d\u8d77\uff0c\u53c8\u770b\u4e86\u4e00\u4e0bVM\u5347\u7ea7\uff0c\u4e5f\u597d\u8d35\u3002\u3002\u3002\u73b0\u5728\u5de5\u4f5c\u8ddfGCP(Google Cloud Platform)\u5173\u7cfb\u6bd4\u8f83\u5bc6\u5207\uff0c\u518d\u52a0\u4e0aGCP\u521a\u597d\u4e5f\u6709$300 1y Free Tier\uff0c\u7d22\u6027\u4e0b\u5b9a\u51b3\u5fc3\u8fc1\u79fb\u4e86\u3002\u3002\u3002(\u4eba\u7a77\u5fd7\u77edXD)<\/p>\n<p><!--more--><\/p>\n<p>\u8fc1\u79fb\u4e4b\u524d\u5148\u8bf4\u4e00\u4e0b\u8fd9\u4e00\u5e74\u7528AWS Free Tier\u7684\u611f\u53d7\u5427\u3002\u57fa\u672c\u6b3e\uff0ct2.micro (1 vCPU, 1.0 GB memory)\uff0c\u4f4d\u7f6eus-west-2b (US West (Oregon))<\/p>\n<p>\u7a33\u5b9a\u6027\u6781\u4f73\uff0c\u7a33\u5b9a\u8fd0\u884c\u4e00\u5e74\u65e0\u5b95\u673a\uff0c\u5373\u4f7f\u88abDOS\u4e5f\u53ea\u662fPHP-FPM\u6b7b\u7684\u6bd4\u8f83\u60e8\uff0c\u7cfb\u7edf\u8fd8\u662f\u6b63\u5e38\u8fd0\u884c\u7684<\/p>\n<p>[root@aws-slyar-com ec2-user]# uptime<br \/>\n 21:01:34 up 378 days, 11:03,  1 user,  load average: 0.00, 0.01, 0.05<\/p>\n<p>\u4ef7\u683c\u561b\uff0cFree Tier\u672c\u6765\u5c31\u514d\u8d39\uff0c\u5c31\u662f\u6536\u4e86\u70b9EBS\u7684\u6d41\u91cf\u8d39\uff0c\u5f53\u7136\u4e00\u5e74\u4ee5\u540e\u7684\u8d39\u7528\u57fa\u672c$15\u8d77<\/p>\n<p>Date\t Method         Amount<br \/>\n11\/3\/16\t CreditCard\t$0.13<br \/>\n12\/3\/16\t CreditCard\t$0.79<br \/>\n1\/4\/17\t CreditCard\t$1.31<br \/>\n2\/4\/17\t CreditCard\t$1.12<br \/>\n3\/3\/17\t CreditCard\t$1.08<br \/>\n4\/3\/17\t CreditCard\t$1.45<br \/>\n5\/3\/17\t CreditCard\t$1.09<br \/>\n6\/3\/17\t CreditCard\t$1.22<br \/>\n7\/3\/17\t CreditCard\t$1.06<br \/>\n8\/3\/17\t CreditCard\t$1.33<br \/>\n9\/11\/17\t CreditCard\t$1.96<br \/>\n10\/3\/17\t CreditCard\t$1.82 <\/p>\n<p>AWS\u7f8e\u56fd\u670d\u52a1\u5668\u901f\u5ea6\u8fd8\u53ef\u4ee5\uff0c\u56fd\u5185\u8bbf\u95ee\u6bd4\u8f83\u6162\uff0c\u9700\u8981CDN\u8f85\u52a9\uff0c\u5176\u4ed6\u56fd\u5bb6\u65e0\u538b\u529b<\/p>\n<p>GCP\u8fd9\u8fb9\u4e00\u5f00\u59cb\u662f\u60f3\u7740\u7528Kubernetes\u505a 1x Persistent Disk + 1x master DB + 1x slave DB + Cloud Storage + 2x WordPress docker container + 2x Apache docker container + Load Balancer\uff0c\u4f46\u662f\u4f9d\u7136\u662f\u6210\u672c\u95ee\u9898\u3002\u3002\u3002\u4e00\u5957\u4e0b\u6765\u4e5f\u662f\u51e0\u767e\u5200\u4e00\u4e2a\u6708\uff0c\u5373\u4f7f\u7cbe\u7b80\u62d3\u6251\u4e5f\u8981\u8d85\u8fc7200\u5200\uff0c\u625b\u4e0d\u4f4f\u3002 \u6700\u540e\u8fd8\u662f\u9009\u4e86Compute Engine\uff0cn1-standard-1 (1 vCPU, 3.75 GB memory)\uff0c\u5927\u7ea6$30\/\u6708<\/p>\n<p>GCP\u65b0\u5efaVM\u4e5f\u5f88\u7b80\u5355\uff0c\u9009\u597d\u7c7b\u578b\u3001\u6240\u5728\u533a\u57df\u548c\u955c\u50cf\uff0c\u51e0\u5206\u949f\u5c31\u5efa\u597d\u4e86\uff0c\u800c\u4e14\u65b0\u5efa\u670d\u52a1\u5668\u7684\u65f6\u5019\u5c31\u53ef\u4ee5\u4e0a\u4f20ssh key\u4e4b\u540e\u76f4\u63a5ssh\uff0c\u4e0d\u50cfaws\u8fd8\u8981\u4e0b\u8f7dpem\uff0c\u70e6\u4eba\u3002\u8fd9\u91cc\u6709\u4e2a\u5c0f\u63d2\u66f2\uff0c\u4e00\u5f00\u59cb\u6211\u9009\u7684\u533a\u57df\u662fus-central1-b(Iowa)\uff0c\u5728\u6211\u88c5\u597dLNMP\u914d\u597d\u5404\u79cd\u670d\u52a1\u4ee5\u540e\uff0c\u6211\u6d4b\u8bd5\u4e86\u4e00\u4e0b\u56fd\u5185\u7684\u8fde\u63a5\u901f\u5ea6\uff0c\u7136\u540e\u3002\u3002\u3002\u5168\u90e8\u8d85\u65f6(\u5c34\u5c2c) \u597d\u4e86\u73b0\u5728\u6765\u8bb2\u4e00\u4e0b\u5982\u4f55\u5728GCP\u4e0a\u9762\u8fc1\u79fbregion (\u8fc1\u79fbzone\u5f88\u7b80\u5355\u4e00\u6761\u547d\u4ee4\u5c31\u641e\u5b9a\u4e86 <a href=\"https:\/\/cloud.google.com\/compute\/docs\/instances\/moving-instance-across-zones\" rel=\"noopener\" target=\"_blank\">https:\/\/cloud.google.com\/compute\/docs\/instances\/moving-instance-across-zones<\/a>):<\/p>\n<p>1.\u7ed9\u5f53\u524dVM\u521b\u5efa\u4e00\u4e2asnapshot<br \/>\n2.\u7528\u8fd9\u4e2asnapshot\u521b\u5efa\u4e00\u4e2adisk<br \/>\n3.\u7528\u8fd9\u4e2adisk\u521b\u5efa\u4e00\u4e2aimage<br \/>\n4.\u7528\u8fd9\u4e2aimage\u521b\u5efa\u4e00\u4e2a\u65b0\u7684VM\uff0c\u9009\u62e9\u4f60\u8981\u7684region\u548czone\u5c31\u597d\u4e86<\/p>\n<p>\u5728\u6d4b\u8bd5\u4e86Singapore\u3001Taiwan\u548cTokyo\u4e4b\u540e\u6211\u9009\u62e9\u4e86Taiwan...<\/p>\n<p>\u5b8c\u6210\u4e4b\u540e\uff0c\u76f4\u63a5\u4eceAWS\u62f7\u8d1d\u6240\u6709\u7684\u6587\u4ef6\u5230GCP\u4e0a<\/p>\n<pre class=\"lang:sh mark:2-4 decode:true \" ># \u590d\u5236\u7c98\u8d34\u8bc1\u4e66\u6587\u4ef6aws-blog.pem\r\n$ vim aws-blog.pem\r\n$ chmod 600 aws-blog.pem\r\n$ scp -i \"aws-blog.pem\" ec2-user@aws-slyar-vm:\/home\/ec2-user\/everything.tar.gz .\/<\/pre>\n<p>\u914d\u7f6e\u6587\u4ef6\u653e\u914d\u7f6e\u76ee\u5f55\uff0c\u7f51\u7ad9\u6587\u4ef6\u653e\u7f51\u7ad9\u76ee\u5f55\uff0c\u5982\u679c\u6743\u9650\u4e0d\u5bf9\u8bb0\u5f97\u7ed9Wordpress\u76ee\u5f55\u91cd\u7f6e\u6743\u9650<\/p>\n<pre class=\"lang:sh mark:2 decode:true \" ># \u6240\u6709\u6587\u4ef6\u5939755\r\n$ find . -type d -exec chmod 0755 {} \\;<\/pre>\n<pre class=\"lang:sh mark:2 decode:true \" ># \u6240\u6709\u6587\u4ef6644\r\n$ find . -type f -exec chmod 0644 {} \\;<\/pre>\n<p>\u6570\u636e\u5e93\u4eceMySQL\u6362\u6210MariaDB\uff0c\u683c\u5f0f\u4e00\u6837\u6ca1\u6240\u8c13\u968f\u4fbf\u5bfc\u5165\u5bfc\u51fa\uff0c\u63d0\u524d\u65b0\u5efa\u597d\u7a7a\u7684\u6570\u636e\u5e93<\/p>\n<pre class=\"lang:sh mark:2 decode:true \" ># \u5bfc\u51fa\r\n$ mysqldump -u$MYSQL_USER -p$MYSQL_PASS --lock-all-tables --databases $WP_DB_NAME > db_dump.sql<\/pre>\n<pre class=\"lang:sh mark:2 decode:true \" ># \u5bfc\u5165\r\n$ mysql -u $MYSQL_USER -p $WP_DB_NAME < db_dump.sql<\/pre>\n<p>\u90fd\u914d\u7f6e\u597d\u540eDNS\u4e00\u6539\u7f51\u7ad9\u5c31\u80fd\u8bbf\u95ee\u4e86<\/p>\n<p>\u7f13\u5b58\u4e4b\u524d\u7528\u7684\u662fWP Super Cache\uff0c\u56e0\u4e3aEBS\u7528\u7684\u662fSSD\u6240\u4ee5I\/O\u4e0d\u662f\u95ee\u9898\uff0c\u73b0\u5728\u786c\u76d8\u4e0d\u662fSSD\u4e86\u4f46\u662f\u5185\u5b58\u589e\u52a0\u4e86\u5f88\u591a\uff0c\u6240\u4ee5\u5c31\u8003\u8651\u4f7f\u7528\u5185\u5b58\u578b\u7f13\u5b58\u4e86\u3002\u4e4b\u524d\u6709\u542f\u7528Memcached\uff0c\u73b0\u5728\u51b3\u5b9a\u5f7b\u5e95\u628aWP Super Cache\u6362\u6210\u57fa\u4e8eMemcached\u7684\u7f13\u5b58\u5f62\u5f0f\u3002\u7b80\u5355\u8bf4\u5c31\u662f\u4e00\u4e2a\u5b58\u653e\u5728\u5185\u5b58\u91cc\u7684key-value\u952e\u503c\u5bf9HashMap\uff0c\u7b2c\u4e00\u6b21\u8bbf\u95ee\u9875\u9762\u7684\u65f6\u5019\u67e5\u8be2\u6570\u636e\u5e93\u751f\u6210\u52a8\u6001\u9875\u9762\u5b58\u50a8\u5728\u5185\u5b58\u91cc\uff0c\u4e4b\u540e\u5168\u90e8\u7531\u5185\u5b58\u76f4\u63a5\u8fd4\u56de\u3002\u4e3a\u4e86\u53d6\u4ee3WP Super Cache\uff0c\u8fd9\u91cc\u9700\u8981\u53e6\u5916\u4e00\u4e2a\u63d2\u4ef6\u914d\u5408object-cache.php\u4f7f\u7528\uff0c\u5c31\u662fbatcache<\/p>\n<p>\u7b80\u5355\u8bf4\u4e00\u4e0b\u65b9\u6cd5\uff1a<\/p>\n<p>1. \u9605\u8bfb\u8fd9\u7bc7\u6587\u7ae0\u5b8c\u6210Memcached\u548cMemcached Object Cache\u7684\u5b89\u88c5\u300a<a href=\"http:\/\/www.slyar.com\/blog\/wp-super-cache-memcached-object-cache.html\" rel=\"noopener\" target=\"_blank\">\u540c\u65f6\u542f\u7528WP Super Cache\u548cMemcached Object Cache<\/a>\u300b\uff0c\u4e0d\u8981\u542f\u7528\u6216\u8005\u7981\u7528WP Super Cache<\/p>\n<p>2. \u4e0b\u8f7d\"advanced-cache.php\"\u548c\"batcache.php\"\uff0c<a href=\"https:\/\/github.com\/Automattic\/batcache\" rel=\"noopener\" target=\"_blank\">Github<\/a><\/p>\n<p>3. \u5c06\"advanced-cache.php\"\u4e0a\u4f20\u5230\"\/wp-content\/\"\uff0c\u5c06\"batcache.php\"\u4e0a\u4f20\u5230\"\/wp-content\/plugins\/\"<\/p>\n<p>4. \u5728wp-config.php\u7684\u5934\u90e8\u5199\u5165\"define('WP_CACHE', true);\"\u4ee5\u6fc0\u6d3bCache\u529f\u80fd\uff0c\u53bb\u6389\u5f15\u53f7\uff0c\u5b8c\u6210\u3002<\/p>\n<p>5. \u53c2\u6570\u53ef\u4ee5\u5728advanced-cache.php\u91cc\u9762\u4fee\u6539\uff0c\u7f13\u5b58\u65f6\u95f4\u9ed8\u8ba4300s\uff0c\u592a\u77ed\uff0c3600s\u5dee\u4e0d\u591a\u4e86<\/p>\n<p>\u65b0\u5f00\u4e00\u4e2a\u6d4f\u89c8\u5668\uff0c\u4e0d\u8981\u767b\u5f55WP(batcache\u53ea\u7ed9\u6e38\u5ba2\u7f13\u5b58\uff0c\u7ba1\u7406\u5458\u9700\u8981\u5b9e\u65f6\u67e5\u770b\u6587\u7ae0\u66f4\u65b0\u7ed3\u679c\u7b49\u6240\u4ee5\u4e0d\u7f13\u5b58)\uff0c\u5237\u65b02\u6b21\u9875\u9762(batcache\u9ed8\u8ba4\u53ea\u7f13\u5b58120s\u5185\u6253\u5f002\u6b21\u7684\u9875\u9762)\uff0c\u67e5\u770b\u6e90\u4ee3\u7801\uff0c\u53ef\u4ee5\u5728<\/head>\u4e0a\u9762\u770b\u5230\u7f13\u5b58\u4fe1\u606f<\/p>\n<pre class=\"lang:default decode:true \" >&lt;!--\r\n    generated 273 seconds ago\r\n    generated in 1.735 seconds\r\n    served from batcache in 0.003 seconds\r\n    expires in 3327 seconds\r\n--&gt;<\/pre>\n<p>GCP\u7684Load Balancer\u4e5f\u633a\u597d\u73a9\u7684\uff0c\u4e0b\u6b21\u66f4\u65b0<\/p>\n<p>\u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1a<a href=\"http:\/\/www.slyar.com\/blog\">Slyar Home<\/a> &raquo; <a href=\"http:\/\/www.slyar.com\/blog\/blog-move-to-google-cloud-platform.html\">\u535a\u5ba2\u8fc1\u79fb\u81f3GCP(Google Cloud Platform)<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u4f5c\u8005\uff1a\u59dc\u5357(Slyar) \u6587\u7ae0\u6765\u6e90\uff1aSlyar Home (www.slyar.com) \u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff0c\u8c22\u8c22\u5408\u4f5c\u3002 \u53bb\u5e7410\u6708\u628a\u535a\u5ba2\u8fc1\u79fb\u5230AWS(Amazon Web Services)\u5e76\u79fb\u9664\u4e86https\uff0c\u6d41\u91cf\u5f00\u59cb\u6062\u590d\u6b63\u5e38\uff0c\u4e00\u5207\u90fd\u8fd0\u884c\u7684\u975e\u5e38\u597d\uff0c\u672c\u6765 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[906,285,979,281],"class_list":["post-7373","post","type-post","status-publish","format-standard","hentry","category-computer","tag-linux","tag-mysql","tag-php","tag-281"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u535a\u5ba2\u4eceAWS\u8fc1\u79fb\u81f3GCP\uff0cPHP\u5347\u7ea7\u81f37.x\uff0c\u6570\u636e\u5e93\u4eceMySQL\u8f6c\u4e3aMariaDB 10.1.x\uff0c\u4f18\u5316\u4e86\u7f13\u5b58\u3002\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Slyar\"\/>\n\t<meta name=\"keywords\" content=\"slyar,gcp,aws,google,php,mariadb,\u6743\u9650,\u535a\u5ba2,\u5185\u5b58,\u7f13\u5b58,memcache,\u4f18\u5316\" \/>\n\t<link rel=\"canonical\" href=\"http:\/\/www.slyar.com\/blog\/blog-move-to-google-cloud-platform.html\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"zh_CN\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Slyar Home | \u8bb0\u5f55\u4e2a\u4eba\u751f\u6d3b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\u535a\u5ba2\u8fc1\u79fb\u81f3GCP(Google Cloud Platform) - Slyar Home\" \/>\n\t\t<meta property=\"og:description\" content=\"\u535a\u5ba2\u4eceAWS\u8fc1\u79fb\u81f3GCP\uff0cPHP\u5347\u7ea7\u81f37.x\uff0c\u6570\u636e\u5e93\u4eceMySQL\u8f6c\u4e3aMariaDB 10.1.x\uff0c\u4f18\u5316\u4e86\u7f13\u5b58\u3002\" \/>\n\t\t<meta property=\"og:url\" content=\"http:\/\/www.slyar.com\/blog\/blog-move-to-google-cloud-platform.html\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2017-11-01T05:29:39+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-07-03T23:11:38+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"\u535a\u5ba2\u8fc1\u79fb\u81f3GCP(Google Cloud Platform) - Slyar Home\" \/>\n\t\t<meta name=\"twitter:description\" content=\"\u535a\u5ba2\u4eceAWS\u8fc1\u79fb\u81f3GCP\uff0cPHP\u5347\u7ea7\u81f37.x\uff0c\u6570\u636e\u5e93\u4eceMySQL\u8f6c\u4e3aMariaDB 10.1.x\uff0c\u4f18\u5316\u4e86\u7f13\u5b58\u3002\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/blog-move-to-google-cloud-platform.html#article\",\"name\":\"\\u535a\\u5ba2\\u8fc1\\u79fb\\u81f3GCP(Google Cloud Platform) - Slyar Home\",\"headline\":\"\\u535a\\u5ba2\\u8fc1\\u79fb\\u81f3GCP(Google Cloud Platform)\",\"author\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar#author\"},\"publisher\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/10\\\/Screen-Shot-2017-10-31-at-8.59.15-PM.png\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/blog-move-to-google-cloud-platform.html\\\/#articleImage\",\"width\":800,\"height\":331},\"datePublished\":\"2017-10-31T22:29:39-07:00\",\"dateModified\":\"2022-07-03T16:11:38-07:00\",\"inLanguage\":\"zh-CN\",\"commentCount\":4,\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/blog-move-to-google-cloud-platform.html#webpage\"},\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/blog-move-to-google-cloud-platform.html#webpage\"},\"articleSection\":\"\\u7cfb\\u7edf\\u6280\\u5de7, linux, MySQL, php, \\u535a\\u5ba2\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/blog-move-to-google-cloud-platform.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/category\\\/computer#listItem\",\"name\":\"\\u7cfb\\u7edf\\u6280\\u5de7\"}},{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/category\\\/computer#listItem\",\"position\":2,\"name\":\"\\u7cfb\\u7edf\\u6280\\u5de7\",\"item\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/category\\\/computer\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/blog-move-to-google-cloud-platform.html#listItem\",\"name\":\"\\u535a\\u5ba2\\u8fc1\\u79fb\\u81f3GCP(Google Cloud Platform)\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/blog-move-to-google-cloud-platform.html#listItem\",\"position\":3,\"name\":\"\\u535a\\u5ba2\\u8fc1\\u79fb\\u81f3GCP(Google Cloud Platform)\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/category\\\/computer#listItem\",\"name\":\"\\u7cfb\\u7edf\\u6280\\u5de7\"}}]},{\"@type\":\"Person\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#person\",\"name\":\"Slyar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/blog-move-to-google-cloud-platform.html#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid\",\"width\":96,\"height\":96,\"caption\":\"Slyar\"}},{\"@type\":\"Person\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar#author\",\"url\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar\",\"name\":\"Slyar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/blog-move-to-google-cloud-platform.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid\",\"width\":96,\"height\":96,\"caption\":\"Slyar\"}},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/blog-move-to-google-cloud-platform.html#webpage\",\"url\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/blog-move-to-google-cloud-platform.html\",\"name\":\"\\u535a\\u5ba2\\u8fc1\\u79fb\\u81f3GCP(Google Cloud Platform) - Slyar Home\",\"description\":\"\\u535a\\u5ba2\\u4eceAWS\\u8fc1\\u79fb\\u81f3GCP\\uff0cPHP\\u5347\\u7ea7\\u81f37.x\\uff0c\\u6570\\u636e\\u5e93\\u4eceMySQL\\u8f6c\\u4e3aMariaDB 10.1.x\\uff0c\\u4f18\\u5316\\u4e86\\u7f13\\u5b58\\u3002\",\"inLanguage\":\"zh-CN\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/blog-move-to-google-cloud-platform.html#breadcrumblist\"},\"author\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar#author\"},\"creator\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar#author\"},\"datePublished\":\"2017-10-31T22:29:39-07:00\",\"dateModified\":\"2022-07-03T16:11:38-07:00\"},{\"@type\":\"WebSite\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#website\",\"url\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/\",\"name\":\"Slyar Home\",\"description\":\"\\u8bb0\\u5f55\\u4e2a\\u4eba\\u751f\\u6d3b\",\"inLanguage\":\"zh-CN\",\"publisher\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\u535a\u5ba2\u8fc1\u79fb\u81f3GCP(Google Cloud Platform) - Slyar Home","description":"\u535a\u5ba2\u4eceAWS\u8fc1\u79fb\u81f3GCP\uff0cPHP\u5347\u7ea7\u81f37.x\uff0c\u6570\u636e\u5e93\u4eceMySQL\u8f6c\u4e3aMariaDB 10.1.x\uff0c\u4f18\u5316\u4e86\u7f13\u5b58\u3002","canonical_url":"http:\/\/www.slyar.com\/blog\/blog-move-to-google-cloud-platform.html","robots":"max-image-preview:large","keywords":"slyar,gcp,aws,google,php,mariadb,\u6743\u9650,\u535a\u5ba2,\u5185\u5b58,\u7f13\u5b58,memcache,\u4f18\u5316","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.slyar.com\/blog\/blog-move-to-google-cloud-platform.html#article","name":"\u535a\u5ba2\u8fc1\u79fb\u81f3GCP(Google Cloud Platform) - Slyar Home","headline":"\u535a\u5ba2\u8fc1\u79fb\u81f3GCP(Google Cloud Platform)","author":{"@id":"http:\/\/www.slyar.com\/blog\/author\/slyar#author"},"publisher":{"@id":"http:\/\/www.slyar.com\/blog\/#person"},"image":{"@type":"ImageObject","url":"http:\/\/www.slyar.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-31-at-8.59.15-PM.png","@id":"http:\/\/www.slyar.com\/blog\/blog-move-to-google-cloud-platform.html\/#articleImage","width":800,"height":331},"datePublished":"2017-10-31T22:29:39-07:00","dateModified":"2022-07-03T16:11:38-07:00","inLanguage":"zh-CN","commentCount":4,"mainEntityOfPage":{"@id":"http:\/\/www.slyar.com\/blog\/blog-move-to-google-cloud-platform.html#webpage"},"isPartOf":{"@id":"http:\/\/www.slyar.com\/blog\/blog-move-to-google-cloud-platform.html#webpage"},"articleSection":"\u7cfb\u7edf\u6280\u5de7, linux, MySQL, php, \u535a\u5ba2"},{"@type":"BreadcrumbList","@id":"http:\/\/www.slyar.com\/blog\/blog-move-to-google-cloud-platform.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/#listItem","position":1,"name":"Home","item":"http:\/\/www.slyar.com\/blog\/","nextItem":{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/category\/computer#listItem","name":"\u7cfb\u7edf\u6280\u5de7"}},{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/category\/computer#listItem","position":2,"name":"\u7cfb\u7edf\u6280\u5de7","item":"http:\/\/www.slyar.com\/blog\/category\/computer","nextItem":{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/blog-move-to-google-cloud-platform.html#listItem","name":"\u535a\u5ba2\u8fc1\u79fb\u81f3GCP(Google Cloud Platform)"},"previousItem":{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/blog-move-to-google-cloud-platform.html#listItem","position":3,"name":"\u535a\u5ba2\u8fc1\u79fb\u81f3GCP(Google Cloud Platform)","previousItem":{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/category\/computer#listItem","name":"\u7cfb\u7edf\u6280\u5de7"}}]},{"@type":"Person","@id":"http:\/\/www.slyar.com\/blog\/#person","name":"Slyar","image":{"@type":"ImageObject","@id":"http:\/\/www.slyar.com\/blog\/blog-move-to-google-cloud-platform.html#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid","width":96,"height":96,"caption":"Slyar"}},{"@type":"Person","@id":"http:\/\/www.slyar.com\/blog\/author\/slyar#author","url":"http:\/\/www.slyar.com\/blog\/author\/slyar","name":"Slyar","image":{"@type":"ImageObject","@id":"http:\/\/www.slyar.com\/blog\/blog-move-to-google-cloud-platform.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid","width":96,"height":96,"caption":"Slyar"}},{"@type":"WebPage","@id":"http:\/\/www.slyar.com\/blog\/blog-move-to-google-cloud-platform.html#webpage","url":"http:\/\/www.slyar.com\/blog\/blog-move-to-google-cloud-platform.html","name":"\u535a\u5ba2\u8fc1\u79fb\u81f3GCP(Google Cloud Platform) - Slyar Home","description":"\u535a\u5ba2\u4eceAWS\u8fc1\u79fb\u81f3GCP\uff0cPHP\u5347\u7ea7\u81f37.x\uff0c\u6570\u636e\u5e93\u4eceMySQL\u8f6c\u4e3aMariaDB 10.1.x\uff0c\u4f18\u5316\u4e86\u7f13\u5b58\u3002","inLanguage":"zh-CN","isPartOf":{"@id":"http:\/\/www.slyar.com\/blog\/#website"},"breadcrumb":{"@id":"http:\/\/www.slyar.com\/blog\/blog-move-to-google-cloud-platform.html#breadcrumblist"},"author":{"@id":"http:\/\/www.slyar.com\/blog\/author\/slyar#author"},"creator":{"@id":"http:\/\/www.slyar.com\/blog\/author\/slyar#author"},"datePublished":"2017-10-31T22:29:39-07:00","dateModified":"2022-07-03T16:11:38-07:00"},{"@type":"WebSite","@id":"http:\/\/www.slyar.com\/blog\/#website","url":"http:\/\/www.slyar.com\/blog\/","name":"Slyar Home","description":"\u8bb0\u5f55\u4e2a\u4eba\u751f\u6d3b","inLanguage":"zh-CN","publisher":{"@id":"http:\/\/www.slyar.com\/blog\/#person"}}]},"og:locale":"zh_CN","og:site_name":"Slyar Home | \u8bb0\u5f55\u4e2a\u4eba\u751f\u6d3b","og:type":"article","og:title":"\u535a\u5ba2\u8fc1\u79fb\u81f3GCP(Google Cloud Platform) - Slyar Home","og:description":"\u535a\u5ba2\u4eceAWS\u8fc1\u79fb\u81f3GCP\uff0cPHP\u5347\u7ea7\u81f37.x\uff0c\u6570\u636e\u5e93\u4eceMySQL\u8f6c\u4e3aMariaDB 10.1.x\uff0c\u4f18\u5316\u4e86\u7f13\u5b58\u3002","og:url":"http:\/\/www.slyar.com\/blog\/blog-move-to-google-cloud-platform.html","article:published_time":"2017-11-01T05:29:39+00:00","article:modified_time":"2022-07-03T23:11:38+00:00","twitter:card":"summary","twitter:title":"\u535a\u5ba2\u8fc1\u79fb\u81f3GCP(Google Cloud Platform) - Slyar Home","twitter:description":"\u535a\u5ba2\u4eceAWS\u8fc1\u79fb\u81f3GCP\uff0cPHP\u5347\u7ea7\u81f37.x\uff0c\u6570\u636e\u5e93\u4eceMySQL\u8f6c\u4e3aMariaDB 10.1.x\uff0c\u4f18\u5316\u4e86\u7f13\u5b58\u3002"},"aioseo_meta_data":{"post_id":"7373","title":"\u535a\u5ba2\u8fc1\u79fb\u81f3GCP(Google Cloud Platform) - #site_title","description":"\u535a\u5ba2\u4eceAWS\u8fc1\u79fb\u81f3GCP\uff0cPHP\u5347\u7ea7\u81f37.x\uff0c\u6570\u636e\u5e93\u4eceMySQL\u8f6c\u4e3aMariaDB 10.1.x\uff0c\u4f18\u5316\u4e86\u7f13\u5b58\u3002","keywords":[{"label":"slyar","value":"slyar"},{"label":"gcp","value":"gcp"},{"label":"aws","value":"aws"},{"label":"google","value":"google"},{"label":"php","value":"php"},{"label":"MariaDB","value":"MariaDB"},{"label":"\u6743\u9650","value":"\u6743\u9650"},{"label":"\u535a\u5ba2","value":"\u535a\u5ba2"},{"label":"\u5185\u5b58","value":"\u5185\u5b58"},{"label":"\u7f13\u5b58","value":"\u7f13\u5b58"},{"label":"memcache","value":"memcache"},{"label":"\u4f18\u5316","value":"\u4f18\u5316"}],"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-02-10 02:44:07","updated":"2022-10-18 12:59:20","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"_links":{"self":[{"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/posts\/7373","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/comments?post=7373"}],"version-history":[{"count":1,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/posts\/7373\/revisions"}],"predecessor-version":[{"id":8616,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/posts\/7373\/revisions\/8616"}],"wp:attachment":[{"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/media?parent=7373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/categories?post=7373"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/tags?post=7373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}