{"id":41771,"date":"2023-02-25T14:19:30","date_gmt":"2023-07-02T16:04:26","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e7%a7%81%e6%9c%89%e5%ad%90%e7%bd%91%e4%b8%ad%e7%9a%84ec2%e5%ae%9e%e4%be%8b%e4%b8%8a%e5%ae%89%e8%a3%85postgresql%e4%bd%9c%e4%b8%ba%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/"},"modified":"2024-04-29T16:13:58","modified_gmt":"2024-04-29T08:13:58","slug":"%e5%9c%a8%e7%a7%81%e6%9c%89%e5%ad%90%e7%bd%91%e4%b8%ad%e7%9a%84ec2%e5%ae%9e%e4%be%8b%e4%b8%8a%e5%ae%89%e8%a3%85postgresql%e4%bd%9c%e4%b8%ba%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e7%a7%81%e6%9c%89%e5%ad%90%e7%bd%91%e4%b8%ad%e7%9a%84ec2%e5%ae%9e%e4%be%8b%e4%b8%8a%e5%ae%89%e8%a3%85postgresql%e4%bd%9c%e4%b8%ba%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/","title":{"rendered":"\u5728\u79c1\u6709\u5b50\u7f51\u4e2d\u7684EC2\u5b9e\u4f8b\u4e0a\u5b89\u88c5PostgreSQL\u4f5c\u4e3a\u5907\u5fd8\u5f55"},"content":{"rendered":"<h1>\u9996\u5148<\/h1>\n<p>\u6700\u8fd1\u6211\u5728\u5b66\u4e60\u5173\u4e8eAWS\uff0c\u6253\u7b97\u5728EC2\u73af\u5883\u4e2d\u90e8\u7f72Django\u5e94\u7528\u7a0b\u5e8f\uff0c\u6240\u4ee5\u5728\u8fd9\u91cc\u505a\u4e2a\u5907\u5fd8\u5f55\u3002\u8fd9\u6b21\u662f\u5173\u4e8e\u5b89\u88c5Postgres\u3002<\/p>\n<h1>\u5b89\u88c5PostgreSQL<\/h1>\n<h3>\u5bf9\u4e8e\u73af\u5883\u95ee\u9898\u6765\u8bf4<\/h3>\n<p>\u30fb\u4f4d\u4e8e\u79c1\u6709\u5b50\u7f51\u7684EC2\u5b9e\u4f8b<br \/>\n\u30fbAmazonLinux2<br \/>\n\u30fbPostgreSQL13\uff08\u5b89\u88c5\u6b64\u7248\u672c\uff09<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d48b137434c4406cac8c6\/5-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2022-02-01 21.44.00.png\" \/><\/div>\n<h3>2. \u5b89\u88c5 PostgreSQL<\/h3>\n<p>\u53c2\u8003 PostgreSQL \u5b98\u65b9\u7c7b\u4f3c\u7ec4\u7ec7\u7684\u7f51\u7ad9\uff0c<br \/>\n\u50cf\u5f80\u5e38\u4e00\u6837\u4f7f\u7528 yum \u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<p>\u5662\uff5e\u8f15\u800c\u6613\u8209\u3002\u4e00\u908a\u9019\u9ebc\u60f3\u8457\uff0c\u9996\u5148\u6aa2\u67e5\u4e00\u4e0b\u6240\u9700\u7684\u5305\u88dd\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span>yum search postgresql\r\n\u8aad\u307f\u8fbc\u3093\u3060\u30d7\u30e9\u30b0\u30a4\u30f3:extras_suggestions, langpacks, priorities, update-motd\r\nCould not retrieve mirrorlist https:\/\/amazonlinux-2-repos-us-east-2.s3.dualstack.us-east-2.amazonaws.com\/2\/core\/latest\/x86_64\/mirror.list error was\r\n12: Timeout on https:\/\/amazonlinux-2-repos-us-east-2.s3.dualstack.us-east-2.amazonaws.com\/2\/core\/latest\/x86_64\/mirror.list: <span class=\"o\">(<\/span>28, <span class=\"s1\">'Failed to connect to amazonlinux-2-repos-us-east-2.s3.dualstack.us-east-2.amazonaws.com port 443 after 2701 ms: Connection timed out'<\/span><span class=\"o\">)<\/span>\r\n\r\n\r\n One of the configured repositories failed <span class=\"o\">(<\/span>\u4e0d\u660e<span class=\"o\">)<\/span>,\r\n and yum doesn<span class=\"s1\">'t have enough cached data to continue. At this point the only\r\n safe thing yum can do is fail. There are a few ways to work \"fix\" this:\r\n\r\n     1. Contact the upstream for the repository and get them to fix the problem.\r\n\r\n     2. Reconfigure the baseurl\/etc. for the repository, to point to a working\r\n        upstream. This is most often useful if you are using a newer\r\n        distribution release than is supported by the repository (and the\r\n        packages for the previous distribution release still work).\r\n\r\n     3. Run the command with the repository temporarily disabled\r\n            yum --disablerepo=&lt;repoid&gt; ...\r\n\r\n     4. Disable the repository permanently, so yum won'<\/span>t use it by default. Yum\r\n        will <span class=\"k\">then <\/span>just ignore the repository <span class=\"k\">until <\/span>you permanently <span class=\"nb\">enable <\/span>it\r\n        again or use <span class=\"nt\">--enablerepo<\/span> <span class=\"k\">for <\/span>temporary usage:\r\n\r\n            yum-config-manager <span class=\"nt\">--disable<\/span> &lt;repoid&gt;\r\n        or\r\n            subscription-manager repos <span class=\"nt\">--disable<\/span><span class=\"o\">=<\/span>&lt;repoid&gt;\r\n\r\n     5. Configure the failing repository to be skipped, <span class=\"k\">if <\/span>it is unavailable.\r\n        Note that yum will try to contact the repo. when it runs most commands,\r\n        so will have to try and fail each <span class=\"nb\">time<\/span> <span class=\"o\">(<\/span>and thus. yum will be be much\r\n        slower<span class=\"o\">)<\/span><span class=\"nb\">.<\/span> If it is a very temporary problem though, this is often a <span class=\"nb\">nice\r\n        <\/span>compromise:\r\n\r\n            yum-config-manager <span class=\"nt\">--save<\/span> <span class=\"nt\">--setopt<\/span><span class=\"o\">=<\/span>&lt;repoid&gt;.skip_if_unavailable<span class=\"o\">=<\/span><span class=\"nb\">true\r\n\r\n<\/span>Cannot find a valid baseurl <span class=\"k\">for <\/span>repo: amzn2-core\/2\/x86_64\r\n<\/code><\/pre>\n<p>\u4f60\u9047\u5230\u9519\u8bef\u4e86\u5417\uff01<br \/>\n\u800c\u4e14\uff0c\u7531\u4e8e\u662f\u79c1\u6709\u5b50\u7f51\uff0c\u6240\u4ee5\u65e0\u6cd5\u8fde\u63a5\u5916\u90e8\u3002<\/p>\n<p>\u5c06\u516c\u5171\u5b50\u7f51\u4e2d\u7684\u670d\u52a1\u5668\u8bbe\u7f6e\u4e3a\u4ee3\u7406\u670d\u52a1\u5668\uff0c\u901a\u8fc7\u4ee3\u7406\u8fdb\u884cyum\u5b89\u88c5\u4f3c\u4e4e\u53ef\u884c\u5462\u3002<br \/>\n\u7136\u800c\uff0c\u5728\u641c\u7d22\u4e86\u4e00\u4e0b\u540e\uff0c\u53d1\u73b0\u8fd8\u6709\u66f4\u597d\u7684\u65b9\u6cd5\u5462\u3002<\/p>\n<h4>\u5728\u79c1\u6709\u5b50\u7f51\u5185\u4f7f\u7528yum\u547d\u4ee4\u3002<\/h4>\n<p>\u6839\u636eAWS\u4e0a\u7684\u6587\u7ae0\u6240\u8bf4\uff0c\u5728AmazonLinux\u4e0a\uff0cyum\u4ed3\u5e93\u5b58\u50a8\u5728S3\u4e0a\uff0c\u901a\u8fc7\u8bbe\u7f6eVPC\u7ec8\u7aef\u8282\u70b9\uff0c\u53ef\u4ee5\u5728\u79c1\u6709\u5b50\u7f51\u4e2d\u76f4\u63a5\u8fdb\u884c\u901a\u4fe1\u3002<\/p>\n<p>\u6309\u7167\u4e0a\u8ff0\u7684\u6587\u7ae0\uff0c\u5b8c\u6210\u8bbe\u7f6e\u540e\uff0c\u4f7f\u7528yum\u547d\u4ee4\u6210\u529f\u4e86\u3002<\/p>\n<h4>\u9ed8\u8ba4\u7684PostgreSQL\u7248\u672c\u662f9.x\u5417\uff1f<\/h4>\n<p>\u7ec8\u4e8e\u53ef\u4ee5\u5b89\u88c5\u4e86\uff01\u5f53\u6211\u6253\u7b97\u5b89\u88c5PostgreSQL\u65f6\uff0c\u68c0\u67e5\u7248\u672c\u65f6\u53d1\u73b0\u5b83\u662f9.2.24\u3002<\/p>\n<pre class=\"post-pre\"><code>$ yum info postgresql-server\r\n\u8aad\u307f\u8fbc\u3093\u3060\u30d7\u30e9\u30b0\u30a4\u30f3:extras_suggestions, langpacks, priorities, update-motd\r\n\u5229\u7528\u53ef\u80fd\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\r\n\u540d\u524d                : postgresql-server\r\n\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u30fc    : x86_64\r\n\u30d0\u30fc\u30b8\u30e7\u30f3          : 9.2.24\r\n\u30ea\u30ea\u30fc\u30b9            : 6.amzn2\r\n\u5bb9\u91cf                : 3.8 M\r\n\u30ea\u30dd\u30b8\u30c8\u30ea\u30fc        : amzn2-core\/2\/x86_64\r\n\u8981\u7d04                : The programs needed to create and run a PostgreSQL server\r\nURL                 : http:\/\/www.postgresql.org\/\r\n\u30e9\u30a4\u30bb\u30f3\u30b9          : PostgreSQL\r\n\u8aac\u660e                : PostgreSQL is an advanced Object-Relational database\r\n                    : management system (DBMS). The postgresql-server package\r\n                    : contains the programs needed to create and run a\r\n                    : PostgreSQL server, which will in turn allow you to create\r\n                    : and maintain PostgreSQL databases.\r\n<\/code><\/pre>\n<p>\u54e6~ PostgreSQL13\u5f88\u4e0d\u9519\u554a\uff01\u6709\u4e00\u79cd\u76f4\u89c9\uff01<br \/>\n\u67e5\u4e86\u4e00\u4e0b\uff0c\u53d1\u73b0amazon-linux-extras\u4e0a\u670913\u7248\u672c\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span><span class=\"nb\">sudo <\/span>amazon-linux-extras \r\n\r\n \u3000\u3000\u3000\u3000\u3000\u3000~\u7701\u7565~\r\n 41  postgresql11             available    <span class=\"o\">[<\/span> <span class=\"o\">=<\/span>11  <span class=\"o\">=<\/span>stable <span class=\"o\">]<\/span>\r\n    ~\u7701\u7565~\r\n 58  postgresql12             available    <span class=\"o\">[<\/span> <span class=\"o\">=<\/span>stable <span class=\"o\">]<\/span>\r\n 59  postgresql13             available    <span class=\"o\">[<\/span> <span class=\"o\">=<\/span>stable <span class=\"o\">]<\/span>\r\n\r\n<\/code><\/pre>\n<p>\u6240\u4ee5\uff0c\u5c31\u8fd9\u6837\u51c6\u5907\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span><span class=\"nb\">sudo <\/span>amazon-linux-extras <span class=\"nb\">install <\/span>postgresql13\r\n<span class=\"nv\">$ <\/span>yum info postgresql-server\r\n\u8aad\u307f\u8fbc\u3093\u3060\u30d7\u30e9\u30b0\u30a4\u30f3:extras_suggestions, langpacks, priorities, update-motd\r\n\u5229\u7528\u53ef\u80fd\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\r\n\u540d\u524d                : postgresql-server\r\n\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u30fc    : x86_64\r\n\u30d0\u30fc\u30b8\u30e7\u30f3          : 13.3\r\n\u30ea\u30ea\u30fc\u30b9            : 2.amzn2.0.1\r\n\u5bb9\u91cf                : 5.4 M\r\n\u30ea\u30dd\u30b8\u30c8\u30ea\u30fc        : amzn2extra-postgresql13\/2\/x86_64\r\n\u8981\u7d04                : The programs needed to create and run a PostgreSQL server\r\nURL                 : http:\/\/www.postgresql.org\/\r\n\u30e9\u30a4\u30bb\u30f3\u30b9          : PostgreSQL\r\n\u8aac\u660e                : PostgreSQL is an advanced Object-Relational database\r\n                    : management system <span class=\"o\">(<\/span>DBMS<span class=\"o\">)<\/span><span class=\"nb\">.<\/span> The postgresql-server package\r\n                    : contains the programs needed to create and run a\r\n                    : PostgreSQL server, which will <span class=\"k\">in <\/span>turn allow you to create\r\n                    : and maintain PostgreSQL databases.\r\n\r\n<\/code><\/pre>\n<p>\u6ee1\u5fc3\u671f\u5f85\u5730\u5b89\u88c5\u4e86PostgreSQL\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span><span class=\"nb\">sudo <\/span>yum <span class=\"nb\">install <\/span>postgresql-server\r\n<\/code><\/pre>\n<p>\u5b8c\u6210\u4e86?<\/p>\n<p>\u7ed3\u6784\u8ba9\u6211\u8d39\u4e86\u4e0d\u5c11\u52b2\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148 \u6700\u8fd1\u6211\u5728\u5b66\u4e60\u5173\u4e8eAWS\uff0c\u6253\u7b97\u5728EC2\u73af\u5883\u4e2d\u90e8\u7f72Django\u5e94\u7528\u7a0b\u5e8f\uff0c\u6240\u4ee5\u5728\u8fd9\u91cc\u505a\u4e2a\u5907\u5fd8\u5f55\u3002\u8fd9\u6b21\u662f\u5173\u4e8e\u5b89\u88c5 [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-41771","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>\u5728\u79c1\u6709\u5b50\u7f51\u4e2d\u7684EC2\u5b9e\u4f8b\u4e0a\u5b89\u88c5PostgreSQL\u4f5c\u4e3a\u5907\u5fd8\u5f55 - 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\/\u5728\u79c1\u6709\u5b50\u7f51\u4e2d\u7684ec2\u5b9e\u4f8b\u4e0a\u5b89\u88c5postgresql\u4f5c\u4e3a\u5907\u5fd8\u5f55\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728\u79c1\u6709\u5b50\u7f51\u4e2d\u7684EC2\u5b9e\u4f8b\u4e0a\u5b89\u88c5PostgreSQL\u4f5c\u4e3a\u5907\u5fd8\u5f55\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148 \u6700\u8fd1\u6211\u5728\u5b66\u4e60\u5173\u4e8eAWS\uff0c\u6253\u7b97\u5728EC2\u73af\u5883\u4e2d\u90e8\u7f72Django\u5e94\u7528\u7a0b\u5e8f\uff0c\u6240\u4ee5\u5728\u8fd9\u91cc\u505a\u4e2a\u5907\u5fd8\u5f55\u3002\u8fd9\u6b21\u662f\u5173\u4e8e\u5b89\u88c5 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728\u79c1\u6709\u5b50\u7f51\u4e2d\u7684ec2\u5b9e\u4f8b\u4e0a\u5b89\u88c5postgresql\u4f5c\u4e3a\u5907\u5fd8\u5f55\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-02T16:04:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T08:13:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d48b137434c4406cac8c6\/5-0.png\" \/>\n<meta name=\"author\" content=\"\u6e05, \u626c\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6e05, \u626c\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \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\/%e5%9c%a8%e7%a7%81%e6%9c%89%e5%ad%90%e7%bd%91%e4%b8%ad%e7%9a%84ec2%e5%ae%9e%e4%be%8b%e4%b8%8a%e5%ae%89%e8%a3%85postgresql%e4%bd%9c%e4%b8%ba%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e7%a7%81%e6%9c%89%e5%ad%90%e7%bd%91%e4%b8%ad%e7%9a%84ec2%e5%ae%9e%e4%be%8b%e4%b8%8a%e5%ae%89%e8%a3%85postgresql%e4%bd%9c%e4%b8%ba%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/\",\"name\":\"\u5728\u79c1\u6709\u5b50\u7f51\u4e2d\u7684EC2\u5b9e\u4f8b\u4e0a\u5b89\u88c5PostgreSQL\u4f5c\u4e3a\u5907\u5fd8\u5f55 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-07-02T16:04:26+00:00\",\"dateModified\":\"2024-04-29T08:13:58+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e7%a7%81%e6%9c%89%e5%ad%90%e7%bd%91%e4%b8%ad%e7%9a%84ec2%e5%ae%9e%e4%be%8b%e4%b8%8a%e5%ae%89%e8%a3%85postgresql%e4%bd%9c%e4%b8%ba%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e7%a7%81%e6%9c%89%e5%ad%90%e7%bd%91%e4%b8%ad%e7%9a%84ec2%e5%ae%9e%e4%be%8b%e4%b8%8a%e5%ae%89%e8%a3%85postgresql%e4%bd%9c%e4%b8%ba%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e7%a7%81%e6%9c%89%e5%ad%90%e7%bd%91%e4%b8%ad%e7%9a%84ec2%e5%ae%9e%e4%be%8b%e4%b8%8a%e5%ae%89%e8%a3%85postgresql%e4%bd%9c%e4%b8%ba%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728\u79c1\u6709\u5b50\u7f51\u4e2d\u7684EC2\u5b9e\u4f8b\u4e0a\u5b89\u88c5PostgreSQL\u4f5c\u4e3a\u5907\u5fd8\u5f55\"}]},{\"@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\/cb5556d2501da73d864cac945e8d9461\",\"name\":\"\u6e05, \u626c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"caption\":\"\u6e05, \u626c\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e7%a7%81%e6%9c%89%e5%ad%90%e7%bd%91%e4%b8%ad%e7%9a%84ec2%e5%ae%9e%e4%be%8b%e4%b8%8a%e5%ae%89%e8%a3%85postgresql%e4%bd%9c%e4%b8%ba%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5728\u79c1\u6709\u5b50\u7f51\u4e2d\u7684EC2\u5b9e\u4f8b\u4e0a\u5b89\u88c5PostgreSQL\u4f5c\u4e3a\u5907\u5fd8\u5f55 - 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\/\u5728\u79c1\u6709\u5b50\u7f51\u4e2d\u7684ec2\u5b9e\u4f8b\u4e0a\u5b89\u88c5postgresql\u4f5c\u4e3a\u5907\u5fd8\u5f55\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5728\u79c1\u6709\u5b50\u7f51\u4e2d\u7684EC2\u5b9e\u4f8b\u4e0a\u5b89\u88c5PostgreSQL\u4f5c\u4e3a\u5907\u5fd8\u5f55","og_description":"\u9996\u5148 \u6700\u8fd1\u6211\u5728\u5b66\u4e60\u5173\u4e8eAWS\uff0c\u6253\u7b97\u5728EC2\u73af\u5883\u4e2d\u90e8\u7f72Django\u5e94\u7528\u7a0b\u5e8f\uff0c\u6240\u4ee5\u5728\u8fd9\u91cc\u505a\u4e2a\u5907\u5fd8\u5f55\u3002\u8fd9\u6b21\u662f\u5173\u4e8e\u5b89\u88c5 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728\u79c1\u6709\u5b50\u7f51\u4e2d\u7684ec2\u5b9e\u4f8b\u4e0a\u5b89\u88c5postgresql\u4f5c\u4e3a\u5907\u5fd8\u5f55\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-07-02T16:04:26+00:00","article_modified_time":"2024-04-29T08:13:58+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d48b137434c4406cac8c6\/5-0.png"}],"author":"\u6e05, \u626c","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6e05, \u626c","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e7%a7%81%e6%9c%89%e5%ad%90%e7%bd%91%e4%b8%ad%e7%9a%84ec2%e5%ae%9e%e4%be%8b%e4%b8%8a%e5%ae%89%e8%a3%85postgresql%e4%bd%9c%e4%b8%ba%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e7%a7%81%e6%9c%89%e5%ad%90%e7%bd%91%e4%b8%ad%e7%9a%84ec2%e5%ae%9e%e4%be%8b%e4%b8%8a%e5%ae%89%e8%a3%85postgresql%e4%bd%9c%e4%b8%ba%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/","name":"\u5728\u79c1\u6709\u5b50\u7f51\u4e2d\u7684EC2\u5b9e\u4f8b\u4e0a\u5b89\u88c5PostgreSQL\u4f5c\u4e3a\u5907\u5fd8\u5f55 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-07-02T16:04:26+00:00","dateModified":"2024-04-29T08:13:58+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e7%a7%81%e6%9c%89%e5%ad%90%e7%bd%91%e4%b8%ad%e7%9a%84ec2%e5%ae%9e%e4%be%8b%e4%b8%8a%e5%ae%89%e8%a3%85postgresql%e4%bd%9c%e4%b8%ba%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e7%a7%81%e6%9c%89%e5%ad%90%e7%bd%91%e4%b8%ad%e7%9a%84ec2%e5%ae%9e%e4%be%8b%e4%b8%8a%e5%ae%89%e8%a3%85postgresql%e4%bd%9c%e4%b8%ba%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e7%a7%81%e6%9c%89%e5%ad%90%e7%bd%91%e4%b8%ad%e7%9a%84ec2%e5%ae%9e%e4%be%8b%e4%b8%8a%e5%ae%89%e8%a3%85postgresql%e4%bd%9c%e4%b8%ba%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5728\u79c1\u6709\u5b50\u7f51\u4e2d\u7684EC2\u5b9e\u4f8b\u4e0a\u5b89\u88c5PostgreSQL\u4f5c\u4e3a\u5907\u5fd8\u5f55"}]},{"@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\/cb5556d2501da73d864cac945e8d9461","name":"\u6e05, \u626c","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","caption":"\u6e05, \u626c"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e7%a7%81%e6%9c%89%e5%ad%90%e7%bd%91%e4%b8%ad%e7%9a%84ec2%e5%ae%9e%e4%be%8b%e4%b8%8a%e5%ae%89%e8%a3%85postgresql%e4%bd%9c%e4%b8%ba%e5%a4%87%e5%bf%98%e5%bd%95%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\/41771","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\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=41771"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/41771\/revisions"}],"predecessor-version":[{"id":86308,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/41771\/revisions\/86308"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=41771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=41771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=41771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}