{"id":186466,"date":"2024-11-11T06:09:21","date_gmt":"2024-11-10T22:09:21","guid":{"rendered":"https:\/\/server.hk\/cnblog\/186466\/"},"modified":"2024-11-11T06:09:22","modified_gmt":"2024-11-10T22:09:22","slug":"%e6%95%b8%e6%93%9a%e5%ba%ab%e7%ab%af%e5%8f%a3%e8%99%9f%e4%b8%80%e8%88%ac%e6%98%af%e5%a4%9a%e5%b0%91%ef%bc%9f%ef%bc%88%e6%95%b8%e6%93%9a%e5%ba%ab%e7%ab%af%e5%8f%a3%e8%99%9f%e4%b8%80%e8%88%ac%e5%a4%9a","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/186466\/","title":{"rendered":"\u6578\u64da\u5eab\u7aef\u53e3\u865f\u4e00\u822c\u662f\u591a\u5c11\uff1f\uff08\u6578\u64da\u5eab\u7aef\u53e3\u865f\u4e00\u822c\u591a\u5c11\uff09"},"content":{"rendered":"<h1 id=\"%e6%95%b8%e6%93%9a%e5%ba%ab%e7%ab%af%e5%8f%a3%e8%99%9f%e4%b8%80%e8%88%ac%e6%98%af%e5%a4%9a%e5%b0%91%ef%bc%9f%ef%bc%88%e6%95%b8%e6%93%9a%e5%ba%ab%e7%ab%af%e5%8f%a3%e8%99%9f%e4%b8%80%e8%88%ac%e5%a4%9a-wcajaedoiC\">\u6578\u64da\u5eab\u7aef\u53e3\u865f\u4e00\u822c\u662f\u591a\u5c11\uff1f\uff08\u6578\u64da\u5eab\u7aef\u53e3\u865f\u4e00\u822c\u591a\u5c11\uff09<\/h1>\n<p>\u5728\u7576\u4eca\u7684\u6578\u64da\u9a45\u52d5\u6642\u4ee3\uff0c\u6578\u64da\u5eab\u5728\u5404\u7a2e\u61c9\u7528\u7a0b\u5e8f\u548c\u670d\u52d9\u4e2d\u626e\u6f14\u8457\u81f3\u95dc\u91cd\u8981\u7684\u89d2\u8272\u3002\u7121\u8ad6\u662f\u4f01\u696d\u7d1a\u61c9\u7528\u9084\u662f\u500b\u4eba\u9805\u76ee\uff0c\u6578\u64da\u5eab\u7684\u8a2d\u7f6e\u548c\u914d\u7f6e\u90fd\u662f\u6210\u529f\u7684\u95dc\u9375\u56e0\u7d20\u4e4b\u4e00\u3002\u5728\u9019\u500b\u904e\u7a0b\u4e2d\uff0c\u4e86\u89e3\u6578\u64da\u5eab\u7684\u7aef\u53e3\u865f\u662f\u975e\u5e38\u91cd\u8981\u7684\uff0c\u56e0\u70ba\u5b83\u76f4\u63a5\u5f71\u97ff\u5230\u6578\u64da\u5eab\u7684\u9023\u63a5\u548c\u5b89\u5168\u6027\u3002<\/p>\n<h2 id=\"%e4%bb%80%e9%ba%bc%e6%98%af%e6%95%b8%e6%93%9a%e5%ba%ab%e7%ab%af%e5%8f%a3%e8%99%9f%ef%bc%9f-wcajaedoiC\">\u4ec0\u9ebc\u662f\u6578\u64da\u5eab\u7aef\u53e3\u865f\uff1f<\/h2>\n<p>\u7aef\u53e3\u865f\u662f\u7528\u65bc\u8b58\u5225\u7db2\u7d61\u4e0a\u4e0d\u540c\u670d\u52d9\u7684\u6578\u5b57\u6a19\u8b58\u3002\u6bcf\u500b\u670d\u52d9\u90fd\u6703\u5728\u7279\u5b9a\u7684\u7aef\u53e3\u4e0a\u904b\u884c\uff0c\u9019\u6a23\u5ba2\u6236\u7aef\u5c31\u53ef\u4ee5\u901a\u904e\u9019\u4e9b\u7aef\u53e3\u8207\u670d\u52d9\u9032\u884c\u901a\u4fe1\u3002\u6578\u64da\u5eab\u7aef\u53e3\u865f\u5247\u662f\u6578\u64da\u5eab\u670d\u52d9\u5668\u7528\u4f86\u63a5\u6536\u5ba2\u6236\u7aef\u8acb\u6c42\u7684\u7aef\u53e3\u865f\u3002<\/p>\n<h2 id=\"%e5%b8%b8%e8%a6%8b%e6%95%b8%e6%93%9a%e5%ba%ab%e5%8f%8a%e5%85%b6%e9%bb%98%e8%aa%8d%e7%ab%af%e5%8f%a3%e8%99%9f-wcajaedoiC\">\u5e38\u898b\u6578\u64da\u5eab\u53ca\u5176\u9ed8\u8a8d\u7aef\u53e3\u865f<\/h2>\n<p>\u4e0d\u540c\u7684\u6578\u64da\u5eab\u7ba1\u7406\u7cfb\u7d71\uff08DBMS\uff09\u6709\u5404\u81ea\u7684\u9ed8\u8a8d\u7aef\u53e3\u865f\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u898b\u6578\u64da\u5eab\u53ca\u5176\u9ed8\u8a8d\u7aef\u53e3\u865f\u7684\u5217\u8868\uff1a<\/p>\n<ul>\n<li><strong>MySQL\uff1a<\/strong>\u9ed8\u8a8d\u7aef\u53e3\u865f\u70ba <code>3306<\/code><\/li>\n<li><strong>PostgreSQL\uff1a<\/strong>\u9ed8\u8a8d\u7aef\u53e3\u865f\u70ba <code>5432<\/code><\/li>\n<li><strong>Microsoft SQL Server\uff1a<\/strong>\u9ed8\u8a8d\u7aef\u53e3\u865f\u70ba <code>1433<\/code><\/li>\n<li><strong>Oracle Database\uff1a<\/strong>\u9ed8\u8a8d\u7aef\u53e3\u865f\u70ba <code>1521<\/code><\/li>\n<li><strong>MongoDB\uff1a<\/strong>\u9ed8\u8a8d\u7aef\u53e3\u865f\u70ba <code>27017<\/code><\/li>\n<\/ul>\n<h2 id=\"%e5%a6%82%e4%bd%95%e6%9f%a5%e6%89%be%e5%92%8c%e6%9b%b4%e6%94%b9%e6%95%b8%e6%93%9a%e5%ba%ab%e7%ab%af%e5%8f%a3%e8%99%9f-wcajaedoiC\">\u5982\u4f55\u67e5\u627e\u548c\u66f4\u6539\u6578\u64da\u5eab\u7aef\u53e3\u865f<\/h2>\n<p>\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u67e5\u627e\u6216\u66f4\u6539\u6578\u64da\u5eab\u7684\u7aef\u53e3\u865f\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u898b\u7684\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"%e6%9f%a5%e6%89%be%e7%ab%af%e5%8f%a3%e8%99%9f-wcajaedoiC\">\u67e5\u627e\u7aef\u53e3\u865f<\/h3>\n<p>\u8981\u67e5\u627e\u6578\u64da\u5eab\u7684\u7aef\u53e3\u865f\uff0c\u60a8\u53ef\u4ee5\u67e5\u770b\u6578\u64da\u5eab\u7684\u914d\u7f6e\u6587\u4ef6\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u898b\u6578\u64da\u5eab\u7684\u914d\u7f6e\u6587\u4ef6\u4f4d\u7f6e\uff1a<\/p>\n<ul>\n<li><strong>MySQL\uff1a<\/strong>\u901a\u5e38\u5728 <code>\/etc\/my.cnf<\/code> \u6216 <code>\/etc\/mysql\/my.cnf<\/code><\/li>\n<li><strong>PostgreSQL\uff1a<\/strong>\u901a\u5e38\u5728 <code>\/etc\/postgresql\/{version}\/main\/postgresql.conf<\/code><\/li>\n<li><strong>Microsoft SQL Server\uff1a<\/strong>\u53ef\u4ee5\u901a\u904e SQL Server Management Studio \u67e5\u627e<\/li>\n<li><strong>Oracle Database\uff1a<\/strong>\u901a\u5e38\u5728 <code>listener.ora<\/code> \u6587\u4ef6\u4e2d<\/li>\n<\/ul>\n<h3 id=\"%e6%9b%b4%e6%94%b9%e7%ab%af%e5%8f%a3%e8%99%9f-wcajaedoiC\">\u66f4\u6539\u7aef\u53e3\u865f<\/h3>\n<p>\u5982\u679c\u60a8\u9700\u8981\u66f4\u6539\u6578\u64da\u5eab\u7684\u7aef\u53e3\u865f\uff0c\u8acb\u9075\u5faa\u4ee5\u4e0b\u6b65\u9a5f\uff1a<\/p>\n<ol>\n<li>\u7de8\u8f2f\u76f8\u61c9\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u627e\u5230\u7aef\u53e3\u865f\u7684\u8a2d\u7f6e\u3002<\/li>\n<li>\u5c07\u7aef\u53e3\u865f\u66f4\u6539\u70ba\u60a8\u5e0c\u671b\u4f7f\u7528\u7684\u65b0\u7aef\u53e3\u865f\u3002<\/li>\n<li>\u4fdd\u5b58\u914d\u7f6e\u6587\u4ef6\u4e26\u91cd\u555f\u6578\u64da\u5eab\u670d\u52d9\u3002<\/li>\n<\/ol>\n<p>\u4f8b\u5982\uff0c\u5c0d\u65bc MySQL\uff0c\u60a8\u53ef\u4ee5\u5728 <code>my.cnf<\/code> \u6587\u4ef6\u4e2d\u627e\u5230\u4ee5\u4e0b\u884c\uff1a<\/p>\n<pre><code>[mysqld]\nport=3306\n<\/code><\/pre>\n<p>\u5c07\u5176\u66f4\u6539\u70ba\uff1a<\/p>\n<pre><code>[mysqld]\nport=3307\n<\/code><\/pre>\n<p>\u7136\u5f8c\u91cd\u555f MySQL \u670d\u52d9\u4ee5\u4f7f\u66f4\u6539\u751f\u6548\u3002<\/p>\n<h2 id=\"%e5%ae%89%e5%85%a8%e6%80%a7%e8%80%83%e9%87%8f-wcajaedoiC\">\u5b89\u5168\u6027\u8003\u91cf<\/h2>\n<p>\u9078\u64c7\u548c\u914d\u7f6e\u6578\u64da\u5eab\u7aef\u53e3\u865f\u6642\uff0c\u5b89\u5168\u6027\u662f\u5fc5\u9808\u8003\u616e\u7684\u91cd\u8981\u56e0\u7d20\u3002\u4f7f\u7528\u9ed8\u8a8d\u7aef\u53e3\u865f\u53ef\u80fd\u6703\u4f7f\u6578\u64da\u5eab\u9762\u81e8\u6f5b\u5728\u7684\u653b\u64ca\u98a8\u96aa\u3002\u5efa\u8b70\u60a8\u8003\u616e\u4ee5\u4e0b\u5b89\u5168\u63aa\u65bd\uff1a<\/p>\n<ul>\n<li>\u66f4\u6539\u9ed8\u8a8d\u7aef\u53e3\u865f\u4ee5\u6e1b\u5c11\u88ab\u653b\u64ca\u7684\u98a8\u96aa\u3002<\/li>\n<li>\u4f7f\u7528\u9632\u706b\u7246\u9650\u5236\u5c0d\u6578\u64da\u5eab\u7aef\u53e3\u7684\u8a2a\u554f\u3002<\/li>\n<li>\u5b9a\u671f\u6aa2\u67e5\u548c\u66f4\u65b0\u6578\u64da\u5eab\u7684\u5b89\u5168\u8a2d\u7f6e\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b8%bd%e7%b5%90-wcajaedoiC\">\u7e3d\u7d50<\/h2>\n<p>\u4e86\u89e3\u6578\u64da\u5eab\u7684\u7aef\u53e3\u865f\u5c0d\u65bc\u78ba\u4fdd\u6578\u64da\u5eab\u7684\u6b63\u5e38\u904b\u884c\u548c\u5b89\u5168\u6027\u81f3\u95dc\u91cd\u8981\u3002\u4e0d\u540c\u7684\u6578\u64da\u5eab\u7ba1\u7406\u7cfb\u7d71\u6709\u5404\u81ea\u7684\u9ed8\u8a8d\u7aef\u53e3\u865f\uff0c\u4e26\u4e14\u53ef\u4ee5\u6839\u64da\u9700\u8981\u9032\u884c\u67e5\u627e\u548c\u66f4\u6539\u3002\u5728\u914d\u7f6e\u6578\u64da\u5eab\u6642\uff0c\u52d9\u5fc5\u8003\u616e\u5b89\u5168\u6027\uff0c\u4ee5\u4fdd\u8b77\u60a8\u7684\u6578\u64da\u4e0d\u53d7\u6f5b\u5728\u5a01\u8105\u3002\u5982\u679c\u60a8\u9700\u8981\u9ad8\u6548\u7684 <a href=\"https:\/\/server.hk\">VPS<\/a> \u89e3\u6c7a\u65b9\u6848\u4f86\u904b\u884c\u60a8\u7684\u6578\u64da\u5eab\uff0c\u8acb\u8003\u616e\u9078\u64c7\u5408\u9069\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u670d\u52d9\uff0c\u78ba\u4fdd\u60a8\u7684\u61c9\u7528\u7a0b\u5e8f\u7a69\u5b9a\u904b\u884c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e86\u89e3\u5e38\u898b\u6578\u64da\u5eab\u7684\u7aef\u53e3\u865f\uff0c\u5982MySQL\u76843306\u3001PostgreSQL\u76845432\uff0c\u5e6b\u52a9\u60a8\u8f15\u9b06\u914d\u7f6e\u548c\u7ba1\u7406\u6578\u64da\u5eab\u9023\u63a5\u3002<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-186466","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/186466","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=186466"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/186466\/revisions"}],"predecessor-version":[{"id":186467,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/186466\/revisions\/186467"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=186466"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=186466"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=186466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}