{"id":34772,"date":"2023-06-11T02:33:34","date_gmt":"2023-08-12T15:11:36","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8aws-elastic-beanstalk%e5%ae%9e%e7%8e%b0%e7%8e%af%e5%a2%83%e8%87%aa%e5%8a%a8%e5%8c%96%e9%83%a8%e7%bd%b2%e3%80%82\/"},"modified":"2024-04-30T08:17:23","modified_gmt":"2024-04-30T00:17:23","slug":"%e4%bd%bf%e7%94%a8aws-elastic-beanstalk%e5%ae%9e%e7%8e%b0%e7%8e%af%e5%a2%83%e8%87%aa%e5%8a%a8%e5%8c%96%e9%83%a8%e7%bd%b2%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8aws-elastic-beanstalk%e5%ae%9e%e7%8e%b0%e7%8e%af%e5%a2%83%e8%87%aa%e5%8a%a8%e5%8c%96%e9%83%a8%e7%bd%b2%e3%80%82\/","title":{"rendered":"\u4f7f\u7528AWS Elastic Beanstalk\u5b9e\u73b0\u73af\u5883\u81ea\u52a8\u5316\u90e8\u7f72"},"content":{"rendered":"<p>\u5f39\u6027 Beanstalk \u53ef\u81ea\u52a8\u8bbe\u7f6e\u670d\u52a1\u7684\u670d\u52a1\u5668\u73af\u5883\uff0c\u5e76\u6839\u636e\u6307\u5b9a\u6761\u4ef6\u8fdb\u884c\u81ea\u52a8\u6269\u5c55\u8bbe\u7f6e\u3002\u7531\u4e8e\u4fe1\u606f\u8fd8\u5f88\u5c11\uff0c\u56e0\u6b64\u4e3a\u4e86\u5728\u5b9e\u9645\u8fd0\u8425\u4e2d\u4f7f\u7528\uff0c\u6211\u8fdb\u884c\u4e86\u914d\u7f6e\uff0c\u6240\u4ee5\u5e94\u8be5\u6bd4\u5176\u4ed6\u4efb\u4f55\u65e5\u6587\u6587\u7ae0\u90fd\u66f4\u8be6\u7ec6\u3002\u5b9e\u9645\u4e0a\uff0c\u611f\u89c9\u6709\u4e00\u79cd\u975e\u5e38\u6478\u7d22\u7684\u611f\u89c9\u3002<\/p>\n<h2>\u80fd &amp; \u4e0d\u80fd<\/h2>\n<p>\u4e3a\u4e86\u907f\u514d\u9605\u8bfb\u65f6\u7684\u7edd\u671b\uff0c\u6211\u63d0\u524d\u5199\u4e0b\u6765\u3002<\/p>\n<h3>\u53ef\u4ee5\u7684\uff01<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30b5\u30fc\u30d0\u306e\u5fdc\u7b54\u304c\u9045\u304f\u306a\u3063\u305f\u308a\u3001CPU\u8ca0\u8377\u304c\u4e0a\u304c\u3063\u305f\u308a\u3057\u305f\u6642\u306b\u81ea\u52d5\u3067EC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u4e0b\u306b\u7d10\u3065\u3051\u3066\u767b\u9332\u6e08\u307f\u30d5\u30a1\u30a4\u30eb\u3092\u914d\u7f6e\u3057\u3066\u304f\u308c\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u81ea\u52d5\u3067\u30c7\u30d7\u30ed\u30a4\u3055\u308c\u305f\u30b5\u30fc\u30d0\u306b\u306f\u6307\u5b9a\u3057\u305f\u30e6\u30fc\u30b6\u3092\u4f5c\u6210\u3057\u3066\u3001RSA\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u3001yum\u3067\u6307\u5b9a\u3057\u305f\u30b5\u30fc\u30d3\u30b9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001\u5404\u7a2e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3082\u72ec\u81ea\u306e\u3082\u306e\u306b\u7f6e\u304d\u63db\u3048\u3066\u518d\u8d77\u52d5\u3055\u305b\u3061\u3083\u3046<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u6642\u306b\u306f\u30c0\u30a6\u30f3\u30bf\u30a4\u30e0\u304c\u767a\u751f\u3057\u306a\u3044\u3088\u3046Act-Sby\u69cb\u6210\u3092\u81ea\u52d5\u3067\u4f5c\u3063\u3066\u5207\u308a\u66ff\u3048<\/ul>\n<h3>\u4e0d\uff0c\u6211\u4eec\u4e0d\u80fd&#8230;<\/h3>\n<p>\u9700\u8981\u624b\u52a8\u8fdb\u884c\u8bbe\u7f6e\u3002\u624b\u52a8\u64cd\u4f5c\u53ef\u4ee5\u641e\u5b9a\u3002<\/p>\n<ul class=\"post-ul\">\u3042\u3089\u304b\u3058\u3081EB\u3067\u6307\u5b9a\u3067\u304d\u308b\u9805\u76ee\u3092\u8d85\u3048\u305f\u5236\u5fa1<\/ul>\n<p>\u5c06\u9664\u4e86HTTP\u3001HTTPS\u4e4b\u5916\u7684\u9879\u76ee\u6dfb\u52a0\u5230\u8d1f\u8f7d\u5747\u8861\u5668\u4e2d\uff08\u5982\u679c\u66f4\u6539\u81ea\u52a8\u751f\u6210\u7684ELB\u914d\u7f6e\u5219\u53ef\u80fd\u5b9e\u73b0 =&gt; \u5982\u679c\u7ec8\u6b62\u5219\u914d\u7f6e\u4f1a\u6d88\u5931\uff09<br \/>\n\u5c06\u81ea\u52a8\u542f\u52a8\u7684\u5b9e\u4f8b\u4e0e\u6307\u5b9a\u7684\u5f39\u6027IP\u5173\u8054\uff08\u5fc5\u987b\u4f7f\u7528\u547d\u4ee4\u884c\u63a5\u53e3\u624d\u80fd\u5b9e\u73b0\uff0c\u4f46\u662f\u5982\u4f55\u786e\u5b9a\u81ea\u52a8\u542f\u52a8\u7684\u5b9e\u4f8b\u4f1a\u6bd4\u8f83\u56f0\u96be\uff09<br \/>\n\u91cd\u590d\u4f7f\u7528\u539f\u5148\u751f\u6210\u7684\u5b9e\u4f8b\u548c\u8d44\u6e90 =&gt; \u603b\u4e4b\u4f1a\u521b\u5efa\u65b0\u7684\u5b9e\u4f8b\u3002\u65e7\u7684\u5219\u4f1a\u88ab\u5220\u9664\u3002\u79c9\u627f&#8221;\u6765\u8005\u4e0d\u62d2\uff0c\u53bb\u8005\u4e0d\u8ffd&#8221;\u7684\u7cbe\u795e\u3002<\/p>\n<p>\u5f00\u59cb\u65f6\uff0c\u7531\u4e8e\u4e0d\u77e5\u9053\u80fd\u505a\u5230\u4ec0\u4e48\u548c\u4e0d\u80fd\u505a\u5230\u4ec0\u4e48\uff0c\u6240\u4ee5\u82b1\u4e86\u76f8\u5f53\u957f\u7684\u65f6\u95f4\u6765\u8c03\u67e5\u4e86\u89e3\u5230\u8fd9\u4e00\u70b9\u3002\u4f46\u662f\u65e0\u8bba\u5982\u4f55\uff0c\u6211\u4eec\u7ec8\u4e8e\u53ef\u4ee5\u505a\u5230\u4e86\uff01<\/p>\n<h2>\u5e94\u7528\u7a0b\u5e8f\u7684\u5efa\u8bbe<\/h2>\n<p>\u767b\u9646AWS\u7ba1\u7406\u63a7\u5236\u53f0\uff0c\u70b9\u51fb\u4f4d\u4e8e\u4e2d\u592e\u4e0b\u65b9\u7684Elastic Beanstalk\uff0c\u901a\u8fc7\u5e94\u7528\u7a0b\u5e8f\u6982\u5ff5\u6765\u7ba1\u7406\u914d\u7f6e\u8bbe\u7f6e\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"AWS Management Console TOP\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1f3c37434c4406c199b0\/12-0.png\" alt=\"AWS Management Console TOP\" \/><\/div>\n<p>\u70b9\u51fb\u53f3\u4e0a\u65b9\u7684\u201c\u521b\u5efa\u5e94\u7528\u7a0b\u5e8f\u201d\u6309\u94ae\uff0c\u4ee5\u8bbe\u7f6eElastic Beanstalk\u7684\u9876\u90e8\u548c\u8be6\u7ec6\u4fe1\u606f\u3002<br \/>\n\u7ee7\u7eed\u8fdb\u884c\u5404\u79cd\u8bbe\u7f6e\u3002<br \/>\n\u6839\u636e\u67e5\u8be2\u7ed3\u679c\uff0c\u6709\u5f88\u591a\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177\u8fdb\u884c\u8bbe\u7f6e\u7684\u65b9\u6cd5\uff0c\u4f46\u5728\u8fd9\u91cc\u6211\u4eec\u5c06\u4f7f\u7528AWS Management Console\u3002<br \/>\n\u5c3d\u7ba1\u5f88\u5bb9\u6613\u4e0d\u5c0f\u5fc3\u70b9\u51fb\u4e2d\u592e\u7684\u201c\u7acb\u5373\u542f\u52a8\u201d\u6309\u94ae\uff0c\u4f46\u4f7f\u7528\u8be5\u6309\u94ae\u4f1a\u5bfc\u81f4\u6240\u6709\u8bbe\u7f6e\u90fd\u4ee5\u9ed8\u8ba4\u914d\u7f6e\u542f\u52a8\uff0c\u8fd9\u4f1a\u5e26\u6765\u56f0\u6270\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"Elastic Beanstalk TOP\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1f3c37434c4406c199b0\/14-0.png\" alt=\"Elastic Beanstalk\" \/><\/div>\n<h3>\u5e94\u7528\u7a0b\u5e8f\u6982\u8981\u8bbe\u7f6e\u3002<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-04-20 18.10.18.png\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1f3c37434c4406c199b0\/16-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-04-20 18.10.18.png\" \/><\/div>\n<h3>\u73af\u5883\u8bbe\u7f6e<\/h3>\n<p>\u5728\u8fd9\u4e2a\u9636\u6bb5\uff0c\u5df2\u7ecf\u6709\u4e00\u4e2a\u7a7a\u7684\u5e94\u7528\u7a0b\u5e8f\u4e86\u3002\u6240\u4ee5\u5373\u4f7f\u4e2d\u9014\u4e2d\u65ad\u4e5f\u6ca1\u5173\u7cfb\u3002<br \/>\n\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u4f1a\u4e3a\u8fd9\u4e2a\u5e94\u7528\u7a0b\u5e8f\u6dfb\u52a0\u6982\u5ff5\u4e0a\u7684\u73af\u5883\u3002\u4f8b\u5982\u5f00\u53d1\u7528\u3001\u6b63\u5f0f\u53d1\u5e03\u7528\u7b49\u4e0d\u540c\u5206\u652f\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-04-20 19.20.35.png\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1f3c37434c4406c199b0\/19-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-04-20 19.20.35.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-04-20 18.12.01.png\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1f3c37434c4406c199b0\/20-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-04-20 18.12.01.png\" \/><\/div>\n<h2>\u589e\u52a0\u8d44\u6e90<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-04-21 12.23.47.png\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1f3c37434c4406c199b0\/22-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-04-21 12.23.47.png\" \/><\/div>\n<h3>EC2\u5b9e\u4f8b\u8bbe\u7f6e<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-04-21 12.25.32.png\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1f3c37434c4406c199b0\/24-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-04-21 12.25.32.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-04-21 12.36.50.png\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1f3c37434c4406c199b0\/25-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-04-21 12.36.50.png\" \/><\/div>\n<p>\u5e94\u7528\u7a0b\u5e8f\u5065\u5eb7\u68c0\u67e5URL\u662f\u8d1f\u8f7d\u5747\u8861\u5668\u7528\u4e8e\u5065\u5eb7\u68c0\u67e5\u7684URL\u3002<br \/>\n\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u5982\u679c\u5df2\u7ecf\u5efa\u7acb\u4e86\u7f51\u7ad9\u4e14\u901a\u8fc7\u4e86\u5065\u5eb7\u68c0\u67e5\uff0c\u53ef\u4ee5\u8f93\u5165URL\uff0c\u4f46\u5728\u9996\u6b21\u5efa\u7acb\u65f6\uff0c\u5efa\u8bae\u5148\u4e0d\u8f93\u5165\uff08\u9ed8\u8ba4\u4e3a\uff1ahttp:\/\/\u73af\u5883\u540d\u79f0.elasticbeanstalk.com\uff09\uff0c\u800c\u662f\u4f7f\u7528\u8fd9\u4e2a\u522b\u540d\u6765\u8fdb\u884c\u5065\u5eb7\u68c0\u67e5\u3002<br \/>\n\u5982\u679c\u5065\u5eb7\u68c0\u67e5\u4e0d\u901a\u8fc7\uff0c\u5c31\u65e0\u6cd5\u66f4\u6539\u8be6\u7ec6\u8bbe\u7f6e\uff0c\u8fd9\u662f\u6211\u66fe\u7ecf\u9047\u5230\u7684\u95ee\u9898&#8230;<\/p>\n<p>\u53e6\u4e00\u4e2a\u8ba9\u4eba\u62c5\u5fe7\u7684\u662f\u542f\u7528\u6eda\u52a8\u66f4\u65b0\u3002\u5f53\u6211\u8fdb\u884c\u4e86\u4e00\u756a\u8c03\u67e5\u540e\u53d1\u73b0\u4e86\u4e00\u4e9b\u4fe1\u606f\u3002<\/p>\n<blockquote><p>\u5982\u679c\u542f\u7528Elastic Beanstalk\u73af\u5883\u7684\u6eda\u52a8\u66f4\u65b0\uff0c\u60a8\u53ef\u4ee5\u8bbe\u7f6e\u73af\u5883\u4e2d\u7684\u8bf7\u6c42\u5904\u7406\u80fd\u529b\u548c\u66f4\u65b0\u6240\u9700\u7684\u65f6\u95f4\u4e4b\u95f4\u7684\u5e73\u8861\u3002\u4f8b\u5982\uff0c\u5728\u5f00\u53d1\u73af\u5883\u4e2d\uff0c\u4f1a\u540c\u65f6\u66f4\u65b0\u6240\u6709\u5b9e\u4f8b\uff0c\u4f46\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f1a\u9010\u4e2a\u66f4\u65b0\u4e00\u90e8\u5206\u5b9e\u4f8b\u3002<\/p><\/blockquote>\n<p>\u56e0\u4e3a\u561b\uff0c\u597d\u5fc3\u8df3\u5657\u901a\u5657\u901a\u5730\u5462\u3002<br \/>\n\u5728\u66f4\u65b0\u671f\u95f4\uff0c\u80fd\u5426\u987a\u5229\u5730\u64cd\u4f5c\u5230 LB \u5462\uff0c\u597d\u5389\u5bb3\u5462\uff01\u4e4b\u540e\u518d\u62a5\u544a\u4e00\u4e0b\u64cd\u4f5c\u6548\u679c\u3002<br \/>\n\u56e0\u4e3a\u53ef\u4ee5\u4e4b\u540e\u5173\u6389\uff0c\u6240\u4ee5\u6682\u65f6\u5148\u68c0\u67e5\u4e00\u4e0b\u518d\u7ee7\u7eed\u8fdb\u884c\u5427\u3002<\/p>\n<p>\u5982\u679c\u5c06\u5176\u4f5c\u4e3a\u9884\u7559\u5b9e\u4f8b\u8fdb\u884c\u5904\u7406\uff0c\u5219\u9700\u8981\u4e0e\u8d2d\u4e70\u7684\u53ef\u7528\u533a\u5339\u914d\uff0c\u56e0\u6b64\u5fc5\u987b\u5728\u542f\u52a8\u540e\u5bf9\u5176\u8fdb\u884c\u66f4\u6539\u624d\u53ef\u4ee5\u3002\u56e0\u4e3a\u8981\u8003\u8651\u8d39\u7528\uff08\u5927\u7ea6$0.06\uff09\uff0c\u6240\u4ee5\u5148\u7528micro\u5b9e\u4f8b\u542f\u52a8\uff0c\u4e4b\u540e\u518d\u8fdb\u884c\u66f4\u6539\u8bd5\u8bd5\u770b\u3002<\/p>\n<h3>\u786e\u8ba4\u8bbe\u7f6e\u7684\u5185\u5bb9<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-04-21 12.59.18.png\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1f3c37434c4406c199b0\/32-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-04-21 12.59.18.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-04-21 13.03.35.png\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1f3c37434c4406c199b0\/33-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-04-21 13.03.35.png\" \/><\/div>\n<h2>\u66f4\u591a\u8bbe\u5b9a<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-04-21 15.41.56.png\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1f3c37434c4406c199b0\/35-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-04-21 15.41.56.png\" \/><\/div>\n<h3>\u64f4\u5c55\u5c3a\u5ea6<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-04-21 14.14.42.png\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1f3c37434c4406c199b0\/37-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-04-21 14.14.42.png\" \/><\/div>\n<p>\u5982\u679c\u60a8\u6709\u4fdd\u7559\u5b9e\u4f8b\uff0c\u5e76\u4e14\u60f3\u8981\u5c06\u53ef\u7528\u533a\u56fa\u5b9a\uff0c\u8bf7\u5c06\u53ef\u7528\u533a\u8bbe\u7f6e\u4e3a&#8221;Any 1&#8243;\uff0c\u7136\u540e\u4ece\u81ea\u5b9a\u4e49\u53ef\u7528\u533a\u4e2d\u9009\u62e9\u6240\u8d2d\u4e70\u7684\u533a\u57df\u3002\u5b9e\u4f8b\u7c7b\u578b\u7684\u66f4\u6539\u8bf7\u5728\u201cInstances\u201d\u90e8\u5206\u8fdb\u884c\u3002\u4fdd\u5b58\u540e\uff0cEC2\u5c06\u91cd\u65b0\u6784\u5efa\u3002<\/p>\n<p>\u9700\u540c\u65f6\u8003\u8651\u6269\u5c55\u51b7\u5374\u65f6\u95f4\u548c\u4e0b\u4e00\u6b65\u7684\u6269\u5c55\u89e6\u53d1\u6761\u4ef6\u3002<\/p>\n<p>\u5c3d\u65e9\u8fdb\u884c\u6269\u5c55\uff08\u6709\u4f59\u5730\uff09\uff0c\u6162\u6162\u8fdb\u884cScaling cooldown \u662fAutoScaling\u7684\u6807\u51c6\u6001\u5ea6\u3002<br \/>\n\u53c2\u8003\uff1aNetflix\u7684\u6269\u5c55 &#8211; \u81ea\u52a8\u5316\u7bc7<br \/>\n\u8fd9\u662f\u4e00\u7bc7\u975e\u5e38\u73cd\u8d35\u7684\u7ecf\u9a8c\u6587\u7ae0\u3002\u8ba9\u6211\u4eec\u4e00\u8bfb\u5427\u3002<\/p>\n<p>\u9ed8\u8ba4\u89e6\u53d1\u5668\u8bbe\u7f6e\u4e3aNetworkOut\uff08\u4ee5\u4ec0\u4e48\u60c5\u51b5\u4e3a\u57fa\u51c6\u5462\uff1f\uff09<br \/>\n\u5982\u679c\u662fWeb\u670d\u52a1\u7684\u8bdd\uff0c\u4f3c\u4e4eLatency\u3001CPU\u5229\u7528\u7387\u548c\u8bf7\u6c42\u6b21\u6570\u7b49\u6bd4\u8f83\u65b9\u4fbf\u4f7f\u7528\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-04-21 16.33.02.png\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1f3c37434c4406c199b0\/42-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-04-21 16.33.02.png\" \/><\/div>\n<p>\u6709\u5173\u6bcf\u4e2a\u8bbe\u7f6e\u503c\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u53c2\u8003\u4ee5\u4e0b\u5185\u5bb9<br \/>\n\u9009\u9879\u7684\u503c<\/p>\n<p>\u5982\u679c\u7ec8\u6b62\u73af\u5883\uff0c\u6240\u6709\u4e4b\u524d\u7684\u8bbe\u7f6e\u90fd\u4f1a\u6d88\u5931\u3002\u5bf9\u4e8e\u4fee\u590d\u540e\u7684\u73af\u5883\u8bbe\u7f6e\uff0c\u4ece\u52a8\u4f5c\u4e2d\u4fdd\u5b58\u914d\u7f6e\u4f1a\u8ba9\u4eba\u611f\u5230\u5b89\u5fc3\u3002<\/p>\n<h2>\u8bbe\u7f6e\u5f97\u66f4\u591a\u3002<\/h2>\n<p>\u8fd8\u4e0d\u591f\uff01\u6211\u60f3\u8981\u6539\u53d8PHP\u7684\u8bbe\u7f6e\u548cWeb\u670d\u52a1\u5668\uff0c\u4ec0\u4e48\u90fd\u8fd8\u4e0d\u591f\uff01<br \/>\n\u6240\u4ee5\u4e3a\u4e86\u66f4\u7ec6\u81f4\u5730\u914d\u7f6e\uff0c\u6211\u5c1d\u8bd5\u4f7f\u7528eb\u547d\u4ee4\u8fdb\u884c\u5feb\u901f\u90e8\u7f72\u3002<br \/>\n\u8fd9\u9700\u8981\u8fdb\u884c\u7e41\u7410\u7684\u914d\u7f6e\u6587\u4ef6\u7f16\u5199\uff0c\u975e\u5e38\u9ebb\u70e6\u3002<br \/>\n\u53ef\u80fdEB\u5728\u8fd9\u4e00\u70b9\u4e0a\u975e\u5e38\u91cd\u8981\u3002<\/p>\n<blockquote><p>\u5728\u90e8\u7f72\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0c\u6709\u65f6\u5019\u9700\u8981\u5bf9\u5e94\u7528\u7a0b\u5e8f\u6240\u4f9d\u8d56\u7684\u8f6f\u4ef6\u8fdb\u884c\u5b9a\u5236\u548c\u914d\u7f6e\u3002\u8fd9\u4e9b\u6587\u4ef6\u5305\u62ec\u5e94\u7528\u7a0b\u5e8f\u6240\u9700\u7684\u4f9d\u8d56\u5173\u7cfb\uff08\u4f8b\u5982\u4ece yum \u4ed3\u5e93\u6dfb\u52a0\u7684\u989d\u5916\u5305\uff09\u4ee5\u53ca\u7528\u4e8e\u8986\u76d6 AWS Elastic Beanstalk \u7684\u9ed8\u8ba4\u7279\u5b9a\u914d\u7f6e\u7684 httpd.conf \u66ff\u4ee3\u914d\u7f6e\u6587\u4ef6\u7b49\u3002\u6b64\u5916\uff0c\u6709\u65f6\u4e5f\u9700\u8981\u5bf9\u4f5c\u4e3a AWS Elastic Beanstalk \u73af\u5883\u4e00\u90e8\u5206\u7684\u73af\u5883\u8d44\u6e90\u8fdb\u884c\u5b9a\u5236\uff08\u4f8b\u5982 SQS \u961f\u5217\u3001ElastiCache \u96c6\u7fa4\uff09\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u6dfb\u52a0\u9488\u5bf9 Amazon SQS \u961f\u5217\u548c\u961f\u5217\u6df1\u5ea6\u7684\u8b66\u62a5\uff0c\u6216\u8005\u6dfb\u52a0 Amazon ElastiCache \u96c6\u7fa4\u3002<\/p><\/blockquote>\n<p>\u901a\u8fc7\u5c06\u914d\u7f6e\u6587\u4ef6\u4e0e\u6e90\u4ee3\u7801\u6346\u7ed1\u5728\u4e00\u8d77\uff0c\u60a8\u53ef\u4ee5\u5728\u90e8\u7f72\u5e94\u7528\u7a0b\u5e8f\u7248\u672c\u65f6\u8f7b\u677e\u81ea\u5b9a\u4e49\u73af\u5883\u3002\u4e0e\u81ea\u5b9a\u4e49\u72ec\u7acb AMI \u76f8\u6bd4\uff0c\u4f7f\u7528\u914d\u7f6e\u6587\u4ef6\u6765\u81ea\u5b9a\u4e49\u5b9e\u4f8b\u8f6f\u4ef6\u66f4\u5177\u4f18\u52bf\uff0c\u56e0\u4e3a\u60a8\u65e0\u9700\u7ef4\u62a4 AMI \u7684\u96c6\u5408\u3002<\/p>\n<p>\u592a\u68d2\u4e86\uff01\uff01\uff01 le!)<\/p>\n<p>\u53c2\u8003\uff1a\u516c\u5f0f\u6587\u4ef6<\/p>\n<p>\u9996\u5148\uff0c\u6211\u4eec\u4f1a\u51c6\u5907\u5de5\u4f5c\u73af\u5883\u3002<\/p>\n<h3>\u5b89\u88c5 eb \u547d\u4ee4<\/h3>\n<p>[AWS\u4e13\u5bb6\u7cfb\u5217] AWS\u5f39\u6027Beanstalk<\/p>\n<p>\u5728\u89e3\u538b\u540e\u7684\u76ee\u5f55\u4e2d\uff0c\u6839\u636e\u5404\u4e2a\u64cd\u4f5c\u7cfb\u7edf\u7684\u8981\u6c42\u4e3aeb\u547d\u4ee4\u8bbe\u5b9a\u8def\u5f84\u3002\u6211\u4eec\u7684OS X\u7cfb\u7edf\u5e94\u6309\u4ee5\u4e0b\u65b9\u5f0f\u5904\u7406\u3002<\/p>\n<pre class=\"post-pre\"><code>\r\n<span class=\"nv\">$ <\/span><span class=\"nb\">echo<\/span> <span class=\"s1\">'export PATH=\"$HOME\/.AWS-ElasticBeanstalk-CLI-2.2\/eb\/macosx\/python2.7:$PATH\"'<\/span> <span class=\"o\">&gt;&gt;<\/span> .bashrc\r\n<span class=\"nv\">$ <\/span><span class=\"nb\">source<\/span> .bashrc\r\n<span class=\"nv\">$ <\/span>eb <span class=\"nt\">--help<\/span>\r\n\r\n<\/code><\/pre>\n<p>eb\u547d\u4ee4\u662f\u7c7b\u4f3c\u4e8e\u5c06git\u5305\u88c5\u8d77\u6765\u7684\u7ed3\u6784\uff08git\u662f\u5fc5\u9700\u7684\uff09\u3002<br \/>\n\u56e0\u6b64\uff0c\u5728\u64cd\u4f5c\uff08\u6e90\u4ee3\u7801\uff09\u76ee\u5f55\u4e2d\uff0c\u9700\u8981\u9884\u5148\u8fdb\u884cgit init\u3002<br \/>\n\u5728\u64cd\u4f5c\u76ee\u5f55\u7684\u6839\u76ee\u5f55\u4e0b\u7ee7\u7eed\u4ee5\u4e0b\u6b65\u9aa4\u3002<br \/>\n\u5982\u679c\u5e94\u7528\u7a0b\u5e8f\u540d\u79f0\u548c\u73af\u5883\u540d\u79f0\u5339\u914d\uff0c\u5b83\u4f1a\u81ea\u52a8\u6536\u96c6\u5e76\u68c0\u7d22\u5df2\u7ecf\u5b58\u5728\u7684\u73af\u5883\u4fe1\u606f\uff0c\u4f5c\u4e3aUI\u7aef\u521b\u5efa\u7684\u3002<\/p>\n<pre class=\"post-pre\"><code>\r\n<span class=\"nv\">$ <\/span>eb init\r\nEnter your AWS Access Key ID: <span class=\"o\">[<\/span>IAM\u30e6\u30fc\u30b6\u306eAccess Key]\r\nEnter your AWS Secret Access Key: <span class=\"o\">[<\/span>IAM\u30e6\u30fc\u30b6\u306eSecret Access Key]\r\n1<span class=\"o\">)<\/span> US East <span class=\"o\">(<\/span>Virginia<span class=\"o\">)<\/span>\r\n2<span class=\"o\">)<\/span> US West <span class=\"o\">(<\/span>Oregon<span class=\"o\">)<\/span>\r\n3<span class=\"o\">)<\/span> US West <span class=\"o\">(<\/span>North California<span class=\"o\">)<\/span>\r\n4<span class=\"o\">)<\/span> EU West <span class=\"o\">(<\/span>Ireland<span class=\"o\">)<\/span>\r\n5<span class=\"o\">)<\/span> Asia Pacific <span class=\"o\">(<\/span>Singapore<span class=\"o\">)<\/span>\r\n6<span class=\"o\">)<\/span> Asia Pacific <span class=\"o\">(<\/span>Tokyo<span class=\"o\">)<\/span>\r\n7<span class=\"o\">)<\/span> Asia Pacific <span class=\"o\">(<\/span>Sydney<span class=\"o\">)<\/span>\r\n8<span class=\"o\">)<\/span> South America <span class=\"o\">(<\/span>Sao Paulo<span class=\"o\">)<\/span>\r\nSelect <span class=\"o\">(<\/span>1 to 8<span class=\"o\">)<\/span>: <span class=\"o\">[<\/span>\u4f7f\u7528\u3059\u308b\u30ea\u30fc\u30b8\u30e7\u30f3]\r\nEnter an AWS Elastic Beanstalk application name <span class=\"o\">(<\/span>auto-generated value is <span class=\"s2\">\"repo.hihin.git\"<\/span><span class=\"o\">)<\/span>: <span class=\"o\">[<\/span>\u4e0a\u3067\u4f5c\u3063\u3066\u304a\u3044\u305fapplication name]\r\nEnter an AWS Elastic Beanstalk environment name <span class=\"o\">(<\/span>auto-generated value is <span class=\"s2\">\"hihinjp-env\"<\/span><span class=\"o\">)<\/span>: <span class=\"o\">[<\/span>\u74b0\u5883\u540d\uff08\u958b\u767a\u3068\u304b\u672c\u756a\uff09\u203b.<span class=\"o\">(<\/span>\u30c9\u30c3\u30c8<span class=\"o\">)<\/span>\u3092\u4f7f\u7528\u3059\u308b\u3068\u30c9\u30e1\u30a4\u30f3\u5468\u308a\u3067\u30c8\u30e9\u30d6\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u306e\u3067\u6ce8\u610f]\r\n\r\nSelect an environment tier.\r\nAvailable environment tiers are:\r\n1<span class=\"o\">)<\/span> WebServer::Standard::1.0\r\n2<span class=\"o\">)<\/span> Worker::SQS\/HTTP::1.0\r\nSelect <span class=\"o\">(<\/span>1 to 2<span class=\"o\">)<\/span>: 1\r\nSelect a solution stack.\r\nAvailable solution stacks are:\r\n1<span class=\"o\">)<\/span> 32bit Amazon Linux 2014.02 v1.0.1 running PHP 5.4\r\n2<span class=\"o\">)<\/span> 64bit Amazon Linux 2014.02 v1.0.1 running PHP 5.4\r\n3<span class=\"o\">)<\/span> 32bit Amazon Linux 2014.02 v1.0.1 running PHP 5.5\r\n4<span class=\"o\">)<\/span> 64bit Amazon Linux 2014.02 v1.0.1 running PHP 5.5\r\n5<span class=\"o\">)<\/span> 32bit Amazon Linux 2013.09 v1.0.1 running PHP 5.4\r\n6<span class=\"o\">)<\/span> 64bit Amazon Linux 2013.09 v1.0.1 running PHP 5.4\r\n7<span class=\"o\">)<\/span> 32bit Amazon Linux 2013.09 v1.0.1 running PHP 5.5\r\n8<span class=\"o\">)<\/span> 64bit Amazon Linux 2013.09 v1.0.1 running PHP 5.5\r\n9<span class=\"o\">)<\/span> 32bit Amazon Linux running PHP 5.3\r\n10<span class=\"o\">)<\/span> 64bit Amazon Linux running PHP 5.3\r\n11<span class=\"o\">)<\/span> 32bit Amazon Linux 2014.02 v1.0.1 running Node.js\r\n12<span class=\"o\">)<\/span> 64bit Amazon Linux 2014.02 v1.0.1 running Node.js\r\n13<span class=\"o\">)<\/span> 32bit Amazon Linux 2013.09 v1.0.1 running Node.js\r\n14<span class=\"o\">)<\/span> 64bit Amazon Linux 2013.09 v1.0.1 running Node.js\r\n15<span class=\"o\">)<\/span> 64bit Windows Server 2008 R2 running IIS 7.5\r\n16<span class=\"o\">)<\/span> 64bit Windows Server 2012 running IIS 8\r\n17<span class=\"o\">)<\/span> 32bit Amazon Linux 2014.02 v1.0.1 running Tomcat 7 Java 7\r\n18<span class=\"o\">)<\/span> 64bit Amazon Linux 2014.02 v1.0.1 running Tomcat 7 Java 7\r\n19<span class=\"o\">)<\/span> 32bit Amazon Linux 2014.02 v1.0.1 running Tomcat 7 Java 6\r\n20<span class=\"o\">)<\/span> 64bit Amazon Linux 2014.02 v1.0.1 running Tomcat 7 Java 6\r\n21<span class=\"o\">)<\/span> 32bit Amazon Linux 2013.09 v1.0.1 running Tomcat 7 Java 7\r\n22<span class=\"o\">)<\/span> 64bit Amazon Linux 2013.09 v1.0.1 running Tomcat 7 Java 7\r\n23<span class=\"o\">)<\/span> 32bit Amazon Linux 2013.09 v1.0.1 running Tomcat 7 Java 6\r\n24<span class=\"o\">)<\/span> 64bit Amazon Linux 2013.09 v1.0.1 running Tomcat 7 Java 6\r\n25<span class=\"o\">)<\/span> 32bit Amazon Linux running Tomcat 7\r\n26<span class=\"o\">)<\/span> 64bit Amazon Linux running Tomcat 7\r\n27<span class=\"o\">)<\/span> 32bit Amazon Linux running Tomcat 6\r\n28<span class=\"o\">)<\/span> 64bit Amazon Linux running Tomcat 6\r\n29<span class=\"o\">)<\/span> 32bit Amazon Linux running Python\r\n30<span class=\"o\">)<\/span> 64bit Amazon Linux running Python\r\n31<span class=\"o\">)<\/span> 64bit Amazon Linux 2014.03 v1.0.1 running Ruby 2.0 <span class=\"o\">(<\/span>Puma<span class=\"o\">)<\/span>\r\n32<span class=\"o\">)<\/span> 64bit Amazon Linux 2014.03 v1.0.1 running Ruby 2.0 <span class=\"o\">(<\/span>Passenger Standalone<span class=\"o\">)<\/span>\r\n33<span class=\"o\">)<\/span> 32bit Amazon Linux 2014.02 v1.0.1 running Ruby 1.8.7\r\n34<span class=\"o\">)<\/span> 64bit Amazon Linux 2014.02 v1.0.1 running Ruby 1.8.7\r\n35<span class=\"o\">)<\/span> 32bit Amazon Linux 2014.02 v1.0.1 running Ruby 1.9.3\r\n36<span class=\"o\">)<\/span> 64bit Amazon Linux 2014.02 v1.0.1 running Ruby 1.9.3\r\n37<span class=\"o\">)<\/span> 32bit Amazon Linux 2013.09 v1.0.1 running Ruby 1.8.7\r\n38<span class=\"o\">)<\/span> 64bit Amazon Linux 2013.09 v1.0.1 running Ruby 1.8.7\r\n39<span class=\"o\">)<\/span> 32bit Amazon Linux 2013.09 v1.0.1 running Ruby 1.9.3\r\n40<span class=\"o\">)<\/span> 64bit Amazon Linux 2013.09 v1.0.1 running Ruby 1.9.3\r\n41<span class=\"o\">)<\/span> 64bit Amazon Linux 2013.09 v1.0.1 running Python 2.7\r\n42<span class=\"o\">)<\/span> 64bit Amazon Linux 2013.09 v1.0.1 running Python\r\n43<span class=\"o\">)<\/span> 32bit Amazon Linux 2013.09 v1.0.1 running Python 2.7\r\n44<span class=\"o\">)<\/span> 32bit Amazon Linux 2013.09 v1.0.1 running Python\r\nSelect <span class=\"o\">(<\/span>1 to 44<span class=\"o\">)<\/span>: <span class=\"o\">[<\/span>\u4f7f\u7528\u3059\u308b\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3]\r\nSelect an environment type.\r\nAvailable environment types are:\r\n1<span class=\"o\">)<\/span> LoadBalanced\r\n2<span class=\"o\">)<\/span> SingleInstance\r\nSelect <span class=\"o\">(<\/span>1 to 2<span class=\"o\">)<\/span>: <span class=\"o\">[<\/span>\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u4f7f\u3046\u304b\u3069\u3046\u304b]\r\nreate an RDS DB Instance? <span class=\"o\">[<\/span>y\/n]: <span class=\"o\">[<\/span>RDS\u4f7f\u3046\u304b\u3069\u3046\u304b]\r\nAttach an instance profile <span class=\"o\">(<\/span>current value is <span class=\"s2\">\"[Create a default instance profile]\"<\/span><span class=\"o\">)<\/span>:\r\nYou IAM user does not have sufficient permission. User: arn:aws:iam::324691443829:user\/developer is not authorized to perform: iam:ListInstanceProfiles on resource: arn:aws:iam::324691443829:instance-profile\/\r\nDo you want to proceed without attaching an instance profile? <span class=\"o\">[<\/span>y\/n]:\r\n1<span class=\"o\">)<\/span> <span class=\"o\">[<\/span>Create a default instance profile]\r\n2<span class=\"o\">)<\/span> aws-elasticbeanstalk-ec2-role\r\n3<span class=\"o\">)<\/span> <span class=\"o\">[<\/span>Other instance profile]\r\nSelect <span class=\"o\">(<\/span>1 to 3<span class=\"o\">)<\/span>: 1\r\nUpdated AWS Credential file at <span class=\"s2\">\"\/Users\/[\u30e6\u30fc\u30b6]\/.elasticbeanstalk\/aws_credential_file\"<\/span><span class=\"nb\">.<\/span>\r\n\r\n<\/code><\/pre>\n<p>\u9019\u6a23\u521d\u6b65\u8a2d\u5b9a\u5c31\u5b8c\u6210\u4e86\u3002\u5df2\u7d93\u5728.git\/config\u4e2d\u6dfb\u52a0\u4e86\u5225\u540d\u3002<br \/>\n\u5617\u8a66\u555f\u52d5\u4e00\u4e0b\uff0c\u770b\u770b\u6703\u767c\u751f\u4ec0\u9ebc\u3002<\/p>\n<pre class=\"post-pre\"><code>\r\n<span class=\"nv\">$ <\/span>eb start\r\nStart application <span class=\"o\">[<\/span>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u540d]\r\nEnvironment <span class=\"s2\">\"[\u74b0\u5883\u540d]\"<\/span> already exists. Skipped creating.\r\n\r\n<\/code><\/pre>\n<p>\u8df3\u8fc7\uff0c\u5e76\u4e14\u5728workspace\/.ebextensions\/\u76ee\u5f55\u4e0b\u521b\u5efa\u4e86optionsettings.[\u73af\u5883\u540d]\u6587\u4ef6\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230\u9884\u5148\u5728\u754c\u9762\u4e0a\u8bbe\u7f6e\u7684\u4fe1\u606f\u88ab\u7ee7\u627f\u8fc7\u6765\u4e86\u3002<\/p>\n<h3>\u521b\u5efa\u8be6\u7ec6\u914d\u7f6e\u6587\u4ef6 un fichier de configuration<\/h3>\n<p>\u6211\u5df2\u7ecf\u505a\u5230\u8fd9\u4e2a\u5730\u6b65\u4e86\u3002\u5b9e\u9645\u4e0a\u82b1\u4e86\u4e24\u5929\u65f6\u95f4\uff01\u8981\u6309\u7167\u4ee5\u4e0b\u7684\u7ed3\u6784\u6765\u8fdb\u884c\u3002\u6309\u987a\u5e8f\u6267\u884c\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">workspace\/.ebextensions\/\u5404\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb.config<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">workspace\/.elasticbeanstalk\/\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30fb\u74b0\u5883\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">workspace\/opt\/elasticbeanstalk\/hooks\/appdeploy\/pre\/*<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">workspace\/opt\/elasticbeanstalk\/hooks\/appdeploy\/enact\/*<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">workspace\/opt\/elasticbeanstalk\/hooks\/appdeploy\/post\/*<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">workspace\/optionsettings.[\u74b0\u5883\u540d]<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">workspace\/\u305d\u306e\u4ed6\u914d\u7f6e\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u9054<\/ul>\n<p>\u4e3a\u4e86\u90e8\u7f72\uff0c\u9700\u8981\u5c06git\u5206\u652f\u548ceb\u5206\u652f\u8fdb\u884c\u6620\u5c04\u3002<br \/>\n\u8bf7\u8bb0\u4e0b\u4e0b\u8ff0\u5173\u8054\u547d\u4ee4\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30d6\u30e9\u30f3\u30c1\u4e00\u89a7\uff1a git branch<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30d6\u30e9\u30f3\u30c1\u4f5c\u6210\uff1a git branch [git\u30d6\u30e9\u30f3\u30c1\u540d]<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30d6\u30e9\u30f3\u30c1\u5207\u308a\u66ff\u3048\uff1agit checkout [git\u30d6\u30e9\u30f3\u30c1\u540d]<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u73fe\u5728\u30d6\u30e9\u30f3\u30c1\u3068EB\u74b0\u5883\u3092\u30de\u30c3\u30d7\uff1a eb branch<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u73fe\u5728\u30d6\u30e9\u30f3\u30c1\u304c\u30de\u30c3\u30d7\u3057\u3066\u3044\u308bEB\u74b0\u5883\u306b\u30c7\u30d7\u30ed\u30a4\uff1a git aws.push<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u5225EB\u74b0\u5883\u3092\u6307\u5b9a\u3057\u3066\u30c7\u30d7\u30ed\u30a4\uff1a git aws.push &#8211;environment [eb\u74b0\u5883\u540d]<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30b3\u30df\u30c3\u30c8\u6307\u5b9a\u30c7\u30d7\u30ed\u30a4\uff1a git aws.push &#8211;commit [\u30b3\u30df\u30c3\u30c8\u756a\u53f7]<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u74b0\u5883\u306e\u66f4\u65b0\uff1a eb update<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u74b0\u5883\u306e\u505c\u6b62\uff1a eb stop<\/ul>\n<p>\u5728\u90e8\u7f72\u65f6\uff0c\u5728\u670d\u52a1\u5668\u4e0a\u59cb\u7ec8\u8981\u76d1\u89c6\/var\/log*\u6587\u4ef6\u5939\uff0c\u6216\u8005\u5728\u7ed3\u675f\u65f6\u786e\u8ba4\u65e5\u5fd7\u662f\u4e00\u4e2a\u597d\u4e3b\u610f\u3002\u5c24\u5176\u662f\/var\/log\/eb-tools.log\u4e2d\u8bb0\u5f55\u4e86\u90e8\u7f72\u64cd\u4f5c\u7684\u65e5\u5fd7\u3002\u5728EB\u7684Web\u63a7\u5236\u53f0\u7684\u6bcf\u4e2a\u73af\u5883\u7684\u4e8b\u4ef6\u4e2d\u4e5f\u4f1a\u8f93\u51fa\u8bed\u6cd5\u9519\u8bef\u7b49\u4fe1\u606f\u3002\u5982\u679c\u65e0\u6cd5\u6b63\u5e38\u5de5\u4f5c\uff0c\u8bf7\u68c0\u67e5\u4e00\u4e0b\u3002\u987a\u4fbf\u8bf4\u4e00\u53e5\uff0c\u6211\u66fe\u7ecf\u628a\u5e94\u8be5\u653e\u5728.ebextensions\u6587\u4ef6\u5939\u4e2d\u7684\u6587\u4ef6\u653e\u5728\u4e86.elasticbeanstalk\u6587\u4ef6\u5939\u4e2d\uff0c\u8fd8\u5728YAML\u4e2d\u6253\u4e86\u5236\u8868\u7b26\u6216\u8005\u7a7a\u683c\u7684\u9519\u8bef\uff0c\u6d6a\u8d39\u4e86\u534a\u5929\u65f6\u95f4\u3002\u8be5\u811a\u672c\u542f\u52a8\u65f6\u7684\u65e5\u5fd7\u4f1a\u88ab\u8bb0\u5f55\u5728\/var\/log\/cfn-init.log\u4e2d\u3002\u5982\u679c\u5728\u914d\u7f6e\u6587\u4ef6\u5185\u521b\u5efa\u4e86\u6587\u4ef6\uff0c\u5b83\u4eec\u4e0d\u4f1a\u88ab\u81ea\u52a8\u5220\u9664\uff0c\u6240\u4ee5\u5728\u91cd\u547d\u540d\u65f6\u8981\u786e\u4fdd\u6b63\u786e\u5220\u9664\uff0c\u907f\u514d\u9047\u5230\u4e4b\u524d\u5b9a\u4e49\u7684\u64cd\u4f5c\u8fd8\u5b58\u5728\u7684\u60c5\u51b5\u3002\u90e8\u7f72\u9700\u8981\u65f6\u95f4\uff0c\u6240\u4ee5\u8fd9\u4e9b\u65f6\u95f4\u5f71\u54cd\u4e86\u8fdb\u5c55\u3002<\/p>\n<p>\u7531\u4e8e\u89c9\u5f97\u5f3a\u884c\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u5c1d\u8bd5\u4e00\u5207\u53ef\u80fd\u4f1a\u5bfc\u81f4\u67d0\u4e2a\u5730\u65b9\u51fa\u73b0\u4e0d\u8db3\u7684\u60c5\u51b5\uff0c\u6240\u4ee5\u6211\u503e\u5411\u4e8e\u5229\u7528\u4f4d\u4e8eworkspace\u76f4\u63a5\u4e0b\u7684\u6587\u4ef6\uff0c\u5c06\u5b83\u4eec\u590d\u5236\u5e76\u653e\u7f6e\u5728\/var\/app\/current\/\u4e2d\uff0c\u4ee5\u4f7f\u6574\u4e2a\u8fc7\u7a0b\u53d8\u5f97\u66f4\u7b80\u6d01\u3002<\/p>\n<p>\u56e0\u4e3a\u8bbe\u7f6e\u6587\u4ef6\u53d8\u5f97\u5f88\u957f\uff0c\u6240\u4ee5\u6211\u628a\u6e90\u4ee3\u7801\u653e\u5728\u4e86GitHub\u4e0a\u3002<br \/>\n\u4ee5\u4e0b\u662f\u6211\u505a\u8fc7\u7684\u7b80\u8981\u4e8b\u9879\u3002<\/p>\n<h3>\u7528\u6237\u76f8\u5173<\/h3>\n<p>\u5220\u9664ec2-user\u8d26\u6237\u3001\u521b\u5efa\u767b\u5f55\u7528\u6237\u5e76\u8bbe\u7f6eRSA\u8eab\u4efd\u9a8c\u8bc1\u7b49\u5b89\u5168\u63aa\u65bd\u3002<\/p>\n<h3>\u5feb\u901f\u5148\u8f6c\u6362\u4e3aNginx<\/h3>\n<p>\u505c\u6b62\u9ed8\u8ba4\u7684Apache\uff0c\u5e76\u90e8\u7f72Nginx\u3001php-fpm\u3001memcache\u3002<\/p>\n<h3>\u66f4\u6539EB\u4e0a\u7684php.ini\u6587\u4ef6<\/h3>\n<p>\u7531\u4e8e\u9009\u9879\u592a\u5c11\uff0c\u6240\u4ee5\u5728\u90e8\u7f72\u65f6\u4fee\u6539php.ini\u7684\u60f3\u6cd5\u662f\u5f88\u5e38\u89c1\u7684\u3002\u5f53\u6211\u67e5\u770b\u6b63\u5728\u8fd0\u884c\u7684\u670d\u52a1\u5668\u65f6\uff0c\u6211\u53d1\u73b0\u5728\u6211\u7684\u57ce\u5821\u91cc\uff1a<br \/>\nphp.ini =&gt; php-5.5.ini \u7b26\u53f7\u94fe\u63a5<br \/>\nphp.d =&gt; php-5.5.d \u7b26\u53f7\u94fe\u63a5<br \/>\n\u90a3\u4e48\u53ea\u9700\u505a\u4e00\u4ef6\u4e8b\uff0c\u5c06\u5e94\u7528\u7a0b\u5e8f\u7528\u7684ini\u653e\u5230php.d\u4e0b\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p>\u8c1c\u8bed\u3002<br \/>\n\u5982\u679c\u4ee5\u8fd9\u79cd\u65b9\u5f0f\u8fdb\u884c\u5b9a\u5236\uff0c\u4f3c\u4e4e\u53ef\u4ee5\u8fdb\u884c\u5404\u79cd\u8c03\u6574\uff01<\/p>\n<h2>\u56f0\u6270\u7684\u4e8b\u60c5\u6216\u56f0\u96be<\/h2>\n<p>\u4f7f\u7528EB\u542f\u52a8\u73af\u5883\u65f6\uff0c\u8d44\u6e90\u4f1a\u81ea\u52a8\u5927\u91cf\u751f\u6210\uff0c\u5982EC2\u3001ELB\u3001SecurityGroup\u7b49\u3002\u5f53\u9700\u8981\u5bf9\u5b83\u4eec\u8fdb\u884c\u8be6\u7ec6\u8bbe\u7f6e\u65f6\uff0c\u5fc5\u987b\u5206\u522b\u8fdb\u884c\u76f8\u5e94\u7684\u914d\u7f6e\u8c03\u6574\u3002<br \/>\n\u7136\u540e\uff0c\u5982\u679c\u60f3\u8981\u8fdb\u884c\u4e00\u4e9b\u91cd\u7f6e\u5e76\u91cd\u65b0\u542f\u52a8\u73af\u5883\uff0c\u5219\u4f1a\u9047\u5230\u4ee4\u4eba\u9057\u61be\u7684\u60c5\u51b5\u3002<br \/>\n\u7279\u522b\u662f\u5728\u7ec8\u6b62\u73af\u5883\u65f6\uff0c\u5fc5\u987b\u4fee\u6539ELB\u5e76\u91cd\u65b0\u7f16\u5199DNS\u8bb0\u5f55\uff0c\u8fd9\u4e2a\u6b65\u9aa4\u7279\u522b\u4ee4\u4eba\u9057\u61be\u3002<\/p>\n<p>\u5982\u679c\u6709\u4efb\u4f55\u9700\u8981\uff0c\u4ee5\u4e0a\u5185\u5bb9\u4f1a\u968f\u65f6\u8fdb\u884c\u8865\u5145\u3002<\/p>\n<p>\u53c2\u8003\u8d44\u6599\uff1a<br \/>\n\u4f7f\u7528PHP\u5728AWS Elastic Beanstalk\u4e0a\u90e8\u7f72\u5e94\u7528\u7a0b\u5e8f<br \/>\n<iframe loading=\"lazy\" title=\"[AWS\u30de\u30a4\u30b9\u30bf\u30fc\u30b7\u30ea\u30fc\u30ba] AWS Elastic Beanstalk\" src=\"https:\/\/www.slideshare.net\/slideshow\/embed_code\/key\/FR6BXJW9heoBv4\" width=\"427\" height=\"356\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" style=\"border:1px solid #CCC; border-width:1px; margin-bottom:5px; max-width: 100%;\" allowfullscreen> <\/iframe> <\/p>\n<div style=\"margin-bottom:5px\"> <strong> <a href=\"https:\/\/www.slideshare.net\/AmazonWebServicesJapan\/aws-aws-elastic-beanstalk\" title=\"[AWS\u30de\u30a4\u30b9\u30bf\u30fc\u30b7\u30ea\u30fc\u30ba] AWS Elastic Beanstalk\" target=\"_blank\">[AWS\u30de\u30a4\u30b9\u30bf\u30fc\u30b7\u30ea\u30fc\u30ba] AWS Elastic Beanstalk<\/a> <\/strong> from <strong><a href=\"https:\/\/www.slideshare.net\/AmazonWebServicesJapan\" target=\"_blank\">Amazon Web Services Japan<\/a><\/strong> <\/div>\n<p>\u53c2\u8003\uff1a<br \/>\n\u8bf7\u67e5\u770b\u4ee5\u4e0b\u94fe\u63a5\uff1a<br \/>\n&#8211; http:\/\/lab.sonicmoov.com\/development\/elastic-beanstalk\/<br \/>\n&#8211; http:\/\/dev.classmethod.jp\/cloud\/aws\/aws-elastic-beanstalk-rails\/<br \/>\n&#8211; http:\/\/dx.24-7.co.jp\/beanstalk\/<br \/>\n&#8211; http:\/\/docs.aws.amazon.com\/ja_jp\/elasticbeanstalk\/latest\/dg\/troubleshooting.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f39\u6027 Beanstalk \u53ef\u81ea\u52a8\u8bbe\u7f6e\u670d\u52a1\u7684\u670d\u52a1\u5668\u73af\u5883\uff0c\u5e76\u6839\u636e\u6307\u5b9a\u6761\u4ef6\u8fdb\u884c\u81ea\u52a8\u6269\u5c55\u8bbe\u7f6e\u3002\u7531\u4e8e\u4fe1\u606f\u8fd8\u5f88\u5c11\uff0c\u56e0\u6b64\u4e3a\u4e86 [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-34772","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4f7f\u7528AWS Elastic Beanstalk\u5b9e\u73b0\u73af\u5883\u81ea\u52a8\u5316\u90e8\u7f72 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528aws-elastic-beanstalk\u5b9e\u73b0\u73af\u5883\u81ea\u52a8\u5316\u90e8\u7f72\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528AWS Elastic Beanstalk\u5b9e\u73b0\u73af\u5883\u81ea\u52a8\u5316\u90e8\u7f72\" \/>\n<meta property=\"og:description\" content=\"\u5f39\u6027 Beanstalk \u53ef\u81ea\u52a8\u8bbe\u7f6e\u670d\u52a1\u7684\u670d\u52a1\u5668\u73af\u5883\uff0c\u5e76\u6839\u636e\u6307\u5b9a\u6761\u4ef6\u8fdb\u884c\u81ea\u52a8\u6269\u5c55\u8bbe\u7f6e\u3002\u7531\u4e8e\u4fe1\u606f\u8fd8\u5f88\u5c11\uff0c\u56e0\u6b64\u4e3a\u4e86 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528aws-elastic-beanstalk\u5b9e\u73b0\u73af\u5883\u81ea\u52a8\u5316\u90e8\u7f72\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-12T15:11:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-30T00:17:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1f3c37434c4406c199b0\/12-0.png\" \/>\n<meta name=\"author\" content=\"\u65b0, \u97f5\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u65b0, \u97f5\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8aws-elastic-beanstalk%e5%ae%9e%e7%8e%b0%e7%8e%af%e5%a2%83%e8%87%aa%e5%8a%a8%e5%8c%96%e9%83%a8%e7%bd%b2%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8aws-elastic-beanstalk%e5%ae%9e%e7%8e%b0%e7%8e%af%e5%a2%83%e8%87%aa%e5%8a%a8%e5%8c%96%e9%83%a8%e7%bd%b2%e3%80%82\/\",\"name\":\"\u4f7f\u7528AWS Elastic Beanstalk\u5b9e\u73b0\u73af\u5883\u81ea\u52a8\u5316\u90e8\u7f72 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-08-12T15:11:36+00:00\",\"dateModified\":\"2024-04-30T00:17:23+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8aws-elastic-beanstalk%e5%ae%9e%e7%8e%b0%e7%8e%af%e5%a2%83%e8%87%aa%e5%8a%a8%e5%8c%96%e9%83%a8%e7%bd%b2%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8aws-elastic-beanstalk%e5%ae%9e%e7%8e%b0%e7%8e%af%e5%a2%83%e8%87%aa%e5%8a%a8%e5%8c%96%e9%83%a8%e7%bd%b2%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8aws-elastic-beanstalk%e5%ae%9e%e7%8e%b0%e7%8e%af%e5%a2%83%e8%87%aa%e5%8a%a8%e5%8c%96%e9%83%a8%e7%bd%b2%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528AWS Elastic Beanstalk\u5b9e\u73b0\u73af\u5883\u81ea\u52a8\u5316\u90e8\u7f72\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\",\"name\":\"\u65b0, \u97f5\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"caption\":\"\u65b0, \u97f5\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8aws-elastic-beanstalk%e5%ae%9e%e7%8e%b0%e7%8e%af%e5%a2%83%e8%87%aa%e5%8a%a8%e5%8c%96%e9%83%a8%e7%bd%b2%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u4f7f\u7528AWS Elastic Beanstalk\u5b9e\u73b0\u73af\u5883\u81ea\u52a8\u5316\u90e8\u7f72 - Blog - Silicon Cloud","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:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528aws-elastic-beanstalk\u5b9e\u73b0\u73af\u5883\u81ea\u52a8\u5316\u90e8\u7f72\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528AWS Elastic Beanstalk\u5b9e\u73b0\u73af\u5883\u81ea\u52a8\u5316\u90e8\u7f72","og_description":"\u5f39\u6027 Beanstalk \u53ef\u81ea\u52a8\u8bbe\u7f6e\u670d\u52a1\u7684\u670d\u52a1\u5668\u73af\u5883\uff0c\u5e76\u6839\u636e\u6307\u5b9a\u6761\u4ef6\u8fdb\u884c\u81ea\u52a8\u6269\u5c55\u8bbe\u7f6e\u3002\u7531\u4e8e\u4fe1\u606f\u8fd8\u5f88\u5c11\uff0c\u56e0\u6b64\u4e3a\u4e86 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528aws-elastic-beanstalk\u5b9e\u73b0\u73af\u5883\u81ea\u52a8\u5316\u90e8\u7f72\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-08-12T15:11:36+00:00","article_modified_time":"2024-04-30T00:17:23+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1f3c37434c4406c199b0\/12-0.png"}],"author":"\u65b0, \u97f5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u65b0, \u97f5","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8aws-elastic-beanstalk%e5%ae%9e%e7%8e%b0%e7%8e%af%e5%a2%83%e8%87%aa%e5%8a%a8%e5%8c%96%e9%83%a8%e7%bd%b2%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8aws-elastic-beanstalk%e5%ae%9e%e7%8e%b0%e7%8e%af%e5%a2%83%e8%87%aa%e5%8a%a8%e5%8c%96%e9%83%a8%e7%bd%b2%e3%80%82\/","name":"\u4f7f\u7528AWS Elastic Beanstalk\u5b9e\u73b0\u73af\u5883\u81ea\u52a8\u5316\u90e8\u7f72 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-08-12T15:11:36+00:00","dateModified":"2024-04-30T00:17:23+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8aws-elastic-beanstalk%e5%ae%9e%e7%8e%b0%e7%8e%af%e5%a2%83%e8%87%aa%e5%8a%a8%e5%8c%96%e9%83%a8%e7%bd%b2%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8aws-elastic-beanstalk%e5%ae%9e%e7%8e%b0%e7%8e%af%e5%a2%83%e8%87%aa%e5%8a%a8%e5%8c%96%e9%83%a8%e7%bd%b2%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8aws-elastic-beanstalk%e5%ae%9e%e7%8e%b0%e7%8e%af%e5%a2%83%e8%87%aa%e5%8a%a8%e5%8c%96%e9%83%a8%e7%bd%b2%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528AWS Elastic Beanstalk\u5b9e\u73b0\u73af\u5883\u81ea\u52a8\u5316\u90e8\u7f72"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9","name":"\u65b0, \u97f5","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","caption":"\u65b0, \u97f5"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8aws-elastic-beanstalk%e5%ae%9e%e7%8e%b0%e7%8e%af%e5%a2%83%e8%87%aa%e5%8a%a8%e5%8c%96%e9%83%a8%e7%bd%b2%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/34772","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=34772"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/34772\/revisions"}],"predecessor-version":[{"id":90759,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/34772\/revisions\/90759"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=34772"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=34772"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=34772"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}