{"id":4047,"date":"2025-11-03T17:17:42","date_gmt":"2025-11-03T09:17:42","guid":{"rendered":"https:\/\/aws-oncloudai.com\/?p=4047"},"modified":"2025-11-03T17:17:42","modified_gmt":"2025-11-03T09:17:42","slug":"how-to-change-instance-type-in-aws-ec2","status":"publish","type":"post","link":"https:\/\/aws-oncloudai.com\/zh_hk\/how-to-change-instance-type-in-aws-ec2\/","title":{"rendered":"\u5982\u4f55\u5728AWS EC2 \u4e2d\u66f4\u6539\u5be6\u4f8b\u985e\u578b(How to change instance type in aws EC2)"},"content":{"rendered":"<p>\u5728\u96f2\u7aef\u904b\u7b97\u74b0\u5883\u4e2d\uff0c\u696d\u52d9\u8ca0\u8f09\u548c\u8cc7\u6e90\u9700\u6c42\u5f80\u5f80\u96a8\u8457\u6642\u9593\u800c\u4e0d\u65b7\u8b8a\u5316\u3002 Amazon Elastic Compute Cloud\uff08Amazon EC2\uff09\u63d0\u4f9b\u4e86\u9748\u6d3b\u7684\u57f7\u884c\u500b\u9ad4\u985e\u578b\u8b8a\u66f4\u529f\u80fd\uff0c\u4f7f\u7528\u6236\u80fd\u5920\u6839\u64da\u5be6\u969b\u9700\u6c42\u8abf\u6574\u904b\u7b97\u3001\u8a18\u61b6\u9ad4\u3001\u5132\u5b58\u548c\u7db2\u8def\u6548\u80fd\u914d\u7f6e\uff0c\u5f9e\u800c\u512a\u5316\u6210\u672c\u8207\u6548\u80fd\u3002\u672c\u6587\u5c07\u8a73\u7d30\u4ecb\u7d39\u5982\u4f55\u5728AWS EC2 \u4e2d\u5b89\u5168\u3001\u6709\u6548\u7387\u5730\u8b8a\u66f4\u57f7\u884c\u500b\u9ad4\u985e\u578b\uff0c\u4e26\u89e3\u6790\u80cc\u5f8c\u7684\u61c9\u7528\u5834\u666f\u8207\u6700\u4f73\u5be6\u52d9\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>\u70ba\u4ec0\u9ebc\u9700\u8981\u66f4\u6539\u5be6\u4f8b\u985e\u578b<\/h4>\n<p>\u5728\u5be6\u969b\u71df\u904b\u4e2d\uff0c\u66f4\u6539EC2 \u5be6\u4f8b\u985e\u578b\u901a\u5e38\u51fa\u65bc\u4ee5\u4e0b\u5e7e\u985e\u539f\u56e0\uff1a<\/p>\n<ol>\n<li><strong>\u6548\u80fd\u4e0d\u8db3\u6216\u8cc7\u6e90\u6d6a\u8cbb<\/strong>\uff1a\u696d\u52d9\u6210\u9577\u5c0e\u81f4\u73fe\u6709\u5be6\u4f8b\u898f\u683c\u7121\u6cd5\u6eff\u8db3\u6548\u80fd\u9700\u6c42\uff0c\u6216\u5be6\u4f8b\u6548\u80fd\u904e\u5269\u9020\u6210\u6210\u672c\u6d6a\u8cbb\u3002<\/li>\n<li><strong>\u67b6\u69cb\u6700\u4f73\u5316<\/strong>\uff1a\u9077\u79fb\u81f3\u65b0\u4e00\u4ee3\u5be6\u4f8b\uff08\u5982\u5f9eM5 \u5347\u7d1a\u81f3M7g\uff09\u4ee5\u7372\u5f97\u66f4\u9ad8\u7684\u8a08\u7b97\u6548\u7387\u8207\u6027\u50f9\u6bd4\u3002<\/li>\n<li><strong>\u6210\u672c\u63a7\u5236<\/strong>\uff1a\u900f\u904e\u9078\u64c7\u5408\u9069\u7684\u5be6\u4f8b\u65cf\uff08\u5982t4g\u3001c7g \u7b49\uff09\u6216\u5229\u7528\u7bc0\u7701\u8a08\u756b\uff08Savings Plans\uff09\uff0c\u5728\u7dad\u6301\u6548\u80fd\u7684\u540c\u6642\u964d\u4f4e\u6210\u672c\u3002<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h4>\u66f4\u6539\u5be6\u4f8b\u985e\u578b\u7684\u524d\u63d0\u689d\u4ef6<\/h4>\n<p>\u5728\u8abf\u6574\u5be6\u4f8b\u985e\u578b\u524d\uff0c\u9700\u78ba\u4fdd\u4ee5\u4e0b\u689d\u4ef6\u6eff\u8db3\uff1a<\/p>\n<ul>\n<li><strong>\u5be6\u4f8b\u8655\u65bc\u201cstopped\u201d\u72c0\u614b<\/strong>\uff1a\u9664\u90e8\u5206\u652f\u63f4\u71b1\u66f4\u6539\u7684\u5be6\u4f8b\u5916\uff0c\u5927\u591a\u6578\u5be6\u4f8b\u9700\u505c\u6b62\u5f8c\u624d\u80fd\u4fee\u6539\u3002<\/li>\n<li><strong>\u65b0\u985e\u578b\u76f8\u5bb9\u73fe\u6709AMI \u8207EBS \u914d\u7f6e<\/strong>\uff1a\u78ba\u4fdd\u76ee\u6a19\u57f7\u884c\u500b\u9ad4\u985e\u578b\u8207\u76ee\u524d\u7cfb\u7d71\u6620\u50cf\u3001\u865b\u64ec\u5316\u985e\u578b\uff08HVM\/Paravirtual\uff09\u76f8\u5bb9\u3002<\/li>\n<li><strong>\u6240\u5728\u53ef\u7528\u5340\u652f\u63f4\u8a72\u57f7\u884c\u500b\u9ad4\u985e\u578b<\/strong>\uff1a\u67d0\u4e9b\u5be6\u4f8b\u985e\u578b\u53ef\u80fd\u672a\u5728\u6240\u6709\u53ef\u7528\u5340\u63d0\u4f9b\u3002<\/li>\n<li><strong>\u5be6\u4f8b\u672a\u7d81\u5b9a\u81e8\u6642\u5be6\u4f8b\u5132\u5b58\uff08Instance Store\uff09<\/strong>\uff1a\u5426\u5247\u505c\u6b62\u5be6\u4f8b\u5c07\u5c0e\u81f4\u8cc7\u6599\u907a\u5931\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h4>\u66f4\u6539\u5be6\u4f8b\u985e\u578b\u7684\u64cd\u4f5c\u6b65\u9a5f<\/h4>\n<h5>1. \u767b\u5165AWS \u7ba1\u7406\u63a7\u5236\u53f0<\/h5>\n<p>\u9032\u5165Amazon EC2 \u63a7\u5236\u53f0\uff0c\u5728\u5de6\u5074\u5c0e\u89bd\u5217\u4e2d\u9078\u64c7 <strong>\u201c\u5be6\u4f8b\uff08Instances\uff09\u201d<\/strong>\u3002<\/p>\n<h5>2. \u505c\u6b62\u5be6\u4f8b<\/h5>\n<p>\u9078\u53d6\u76ee\u6a19\u5be6\u4f8b\uff0c\u9ede\u9078 <strong>\u201c\u5be6\u4f8b\u72c0\u614b\u201d \u2192 \u201c\u505c\u6b62\u5be6\u4f8b\uff08Stop Instance\uff09\u201d<\/strong>\u3002<\/p>\n<blockquote><p>\u6ce8\u610f\uff1a\u505c\u6b62\u57f7\u884c\u500b\u9ad4\u524d\uff0c\u8acb\u78ba\u4fdd\u6240\u6709\u95dc\u9375\u8cc7\u6599\u5df2\u6301\u4e45\u5316\u81f3Amazon EBS \u6216S3\u3002<\/p><\/blockquote>\n<h5>3. \u4fee\u6539\u5be6\u4f8b\u985e\u578b<\/h5>\n<p>\u5728\u5be6\u4f8b\u505c\u6b62\u5f8c\uff0c\u9078\u64c7 <strong>\u201c\u64cd\u4f5c\uff08Actions\uff09\u2192 \u5be6\u4f8b\u8a2d\u5b9a\uff08Instance Settings\uff09\u2192 \u66f4\u6539\u5be6\u4f8b\u985e\u578b\uff08Change Instance Type\uff09\u201d<\/strong>\u3002<\/p>\n<p>\u5f9e\u4e0b\u62c9\u5f0f\u9078\u55ae\u4e2d\u9078\u64c7\u76ee\u6a19\u5be6\u4f8b\u985e\u578b\uff08\u5982t3.medium \u2192 t3.large \u6216m6i.xlarge\uff09\u3002<\/p>\n<h5>4. \u555f\u52d5\u5be6\u4f8b<\/h5>\n<p>\u78ba\u8a8d\u66f4\u6539\u5f8c\uff0c\u9ede\u9078 <strong>\u201c\u555f\u52d5\u5be6\u4f8b\uff08Start Instance\uff09\u201d<\/strong>\u3002<\/p>\n<p>\u555f\u52d5\u5b8c\u6210\u5f8c\uff0c\u53ef\u5728 <strong>\u201c\u8a73\u7d30\u8cc7\u6599\u201d<\/strong> \u4e2d\u67e5\u770b\u65b0\u7684\u5be6\u4f8b\u985e\u578b\u914d\u7f6e\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>\u900f\u904eAWS CLI \u66f4\u6539\u5be6\u4f8b\u985e\u578b<\/h4>\n<p>\u5c0d\u65bc\u6279\u91cf\u904b\u7dad\u6216\u81ea\u52d5\u5316\u5834\u666f\uff0c\u4e5f\u53ef\u900f\u904eAWS CLI \u57f7\u884c\uff1a<\/p>\n<p>aws ec2 stop-instances \u2013instance-ids i-xxxxxxxxxxxxx<\/p>\n<p>aws ec2 modify-instance-attribute \u2013instance-id i-xxxxxxxxxxxxx \u2013instance-type \u201c{\\\u201dValue\\\u201d: \\\u201dm6i.large\\\u201d}\u201d<\/p>\n<p>aws ec2 start-instances \u2013instance-ids i-xxxxxxxxxxxxxxxx<\/p>\n<blockquote><p>\u5efa\u8b70\u5728\u8b8a\u66f4\u524d\u4f7f\u7528describe-instance-types \u6307\u4ee4\u9a57\u8b49\u53ef\u7528\u985e\u578b\u3002<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<h4>\u6700\u4f73\u5be6\u52d9\u8207\u6ce8\u610f\u4e8b\u9805<\/h4>\n<ol>\n<li><strong>\u7d50\u5408Auto Scaling \u81ea\u52d5\u6700\u4f73\u5316\u5be6\u4f8b\u985e\u578b<\/strong>\uff1a\u900f\u904eAuto Scaling \u7fa4\u7d44\u8a2d\u5b9a\u591a\u5be6\u4f8b\u985e\u578b\u7b56\u7565\uff0c\u5be6\u73fe\u5f48\u6027\u64f4\u5145\u3002<\/li>\n<li><strong>\u4f7f\u7528CloudWatch \u76e3\u63a7\u6548\u80fd\u6307\u6a19<\/strong>\uff1a\u5728\u66f4\u6539\u57f7\u884c\u500b\u9ad4\u524d\u5f8c\u76e3\u63a7CPU\u3001\u8a18\u61b6\u9ad4\u8207\u7db2\u8def\u4f7f\u7528\u7387\uff0c\u8a55\u4f30\u8abf\u6574\u6548\u679c\u3002<\/li>\n<li><strong>\u5229\u7528Savings Plans \u6216Reserved Instances \u964d\u672c<\/strong>\uff1a\u5728\u78ba\u5b9a\u9577\u671f\u4f7f\u7528\u65b0\u57f7\u884c\u500b\u9ad4\u985e\u578b\u5f8c\uff0c\u53ef\u900f\u904e\u627f\u8afe\u8a08\u756b\u9032\u4e00\u6b65\u512a\u5316\u6210\u672c\u3002<\/li>\n<li><strong>\u6e2c\u8a66\u74b0\u5883\u9a57\u8b49<\/strong>\uff1a\u5728\u751f\u7522\u74b0\u5883\u8abf\u6574\u524d\uff0c\u5efa\u8b70\u5148\u5728\u6e2c\u8a66\u74b0\u5883\u9a57\u8b49\u76f8\u5bb9\u6027\u8207\u6548\u80fd\u8868\u73fe\u3002<\/li>\n<\/ol>\n<h4><\/h4>\n<h4>\u603b\u7ed3<\/h4>\n<p>\u900f\u904e\u9748\u6d3b\u8abf\u6574Amazon EC2 \u57f7\u884c\u500b\u9ad4\u985e\u578b\uff0c\u4f01\u696d\u53ef\u5728\u696d\u52d9\u8ca0\u8f09\u8b8a\u5316\u6642\u5feb\u901f\u64f4\u5145\u6216\u964d\u7d1a\uff0c\u5be6\u73fe\u6548\u80fd\u8207\u6210\u672c\u7684\u52d5\u614b\u5e73\u8861\u3002<\/p>\n<p>\u4f5c\u70ba <strong>AWS \u5b98\u65b9\u4ee3\u7406\u5546<\/strong>\uff0c\u6211\u5011\u53ef\u63d0\u4f9b\u4f01\u696d\u5305\u542b\u5be6\u4f8b\u985e\u578b\u9078\u7528\u3001\u67b6\u69cb\u6700\u4f73\u5316\u3001\u6210\u672c\u63a7\u5236\u53ca\u9077\u79fb\u65b9\u6848\u5728\u5167\u7684\u4e00\u7ad9\u5f0f\u96f2\u7aef\u4e0a\u89e3\u6c7a\u65b9\u6848\uff0c\u5354\u52a9\u5ba2\u6236\u5145\u5206\u91cb\u653e\u96f2\u7aef\u904b\u7b97\u7684\u5f48\u6027\u8207\u50f9\u503c\u3002<\/p>","protected":false},"excerpt":{"rendered":"<p>\u5728\u96f2\u7aef\u904b\u7b97\u74b0\u5883\u4e2d\uff0c\u696d\u52d9\u8ca0\u8f09\u548c\u8cc7\u6e90\u9700\u6c42\u5f80\u5f80\u96a8\u8457\u6642\u9593\u800c\u4e0d\u65b7\u8b8a\u5316\u3002 Amazon Elastic Compute Cloud\uff08Amazon EC2\uff09\u63d0\u4f9b\u4e86\u9748\u6d3b\u7684\u57f7\u884c\u500b\u9ad4\u985e\u578b\u8b8a\u66f4\u529f\u80fd\uff0c\u4f7f\u7528\u6236\u80fd\u5920\u6839\u64da\u5be6\u969b\u9700\u6c42\u8abf\u6574\u904b\u7b97\u3001\u8a18\u61b6\u9ad4\u3001\u5132\u5b58\u548c\u7db2\u8def\u6548\u80fd\u914d\u7f6e\uff0c\u5f9e\u800c\u512a\u5316\u6210\u672c\u8207\u6548\u80fd\u3002\u672c\u6587\u5c07\u8a73\u7d30\u4ecb\u7d39\u5982\u4f55\u5728AWS EC2 \u4e2d\u5b89\u5168\u3001\u6709\u6548\u7387\u5730\u8b8a\u66f4\u57f7\u884c\u500b\u9ad4\u985e\u578b\uff0c\u4e26\u89e3\u6790\u80cc\u5f8c\u7684\u61c9\u7528\u5834\u666f\u8207\u6700\u4f73\u5be6\u52d9\u3002<\/p>","protected":false},"author":1,"featured_media":4048,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[65],"tags":[],"class_list":["post-4047","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technical-sharing"],"_links":{"self":[{"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/posts\/4047","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/comments?post=4047"}],"version-history":[{"count":1,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/posts\/4047\/revisions"}],"predecessor-version":[{"id":4049,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/posts\/4047\/revisions\/4049"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/media\/4048"}],"wp:attachment":[{"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/media?parent=4047"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/categories?post=4047"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/tags?post=4047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}