{"id":196253,"date":"2024-11-13T21:44:23","date_gmt":"2024-11-13T13:44:23","guid":{"rendered":"https:\/\/server.hk\/cnblog\/196253\/"},"modified":"2024-11-13T21:44:24","modified_gmt":"2024-11-13T13:44:24","slug":"%e6%89%be%e5%88%b0%e6%ad%a3%e7%a2%ba%e7%9a%84%e6%95%b8%e6%93%9a%e5%ba%ab%e5%8f%83%e6%95%b8%e9%85%8d%e7%bd%ae%e6%96%b9%e6%a1%88-%e6%9f%a5%e8%a9%a2%e6%95%b8%e6%93%9a%e5%ba%ab%e5%8f%83%e6%95%b8","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/196253\/","title":{"rendered":"\u627e\u5230\u6b63\u78ba\u7684\u6578\u64da\u5eab\u53c3\u6578\u914d\u7f6e\u65b9\u6848 (\u67e5\u8a62\u6578\u64da\u5eab\u53c3\u6578)"},"content":{"rendered":"<h1 id=\"%e6%89%be%e5%88%b0%e6%ad%a3%e7%a2%ba%e7%9a%84%e6%95%b8%e6%93%9a%e5%ba%ab%e5%8f%83%e6%95%b8%e9%85%8d%e7%bd%ae%e6%96%b9%e6%a1%88-%e6%9f%a5%e8%a9%a2%e6%95%b8%e6%93%9a%e5%ba%ab%e5%8f%83%e6%95%b8-HxOiZVREMf\">\u627e\u5230\u6b63\u78ba\u7684\u6578\u64da\u5eab\u53c3\u6578\u914d\u7f6e\u65b9\u6848 (\u67e5\u8a62\u6578\u64da\u5eab\u53c3\u6578)<\/h1>\n<p>\u5728\u7576\u4eca\u6578\u64da\u9a45\u52d5\u7684\u4e16\u754c\u4e2d\uff0c\u6578\u64da\u5eab\u7684\u6027\u80fd\u5c0d\u65bc\u61c9\u7528\u7a0b\u5e8f\u7684\u6574\u9ad4\u6548\u7387\u81f3\u95dc\u91cd\u8981\u3002\u7121\u8ad6\u662f\u5c0f\u578b\u4f01\u696d\u9084\u662f\u5927\u578b\u4f01\u696d\uff0c\u6b63\u78ba\u7684\u6578\u64da\u5eab\u53c3\u6578\u914d\u7f6e\u65b9\u6848\u90fd\u80fd\u986f\u8457\u63d0\u9ad8\u67e5\u8a62\u6027\u80fd\u548c\u7cfb\u7d71\u7a69\u5b9a\u6027\u3002\u672c\u6587\u5c07\u63a2\u8a0e\u5982\u4f55\u627e\u5230\u5408\u9069\u7684\u6578\u64da\u5eab\u53c3\u6578\u914d\u7f6e\u65b9\u6848\uff0c\u4e26\u63d0\u4f9b\u4e00\u4e9b\u67e5\u8a62\u6578\u64da\u5eab\u53c3\u6578\u7684\u5be6\u7528\u6280\u5de7\u3002<\/p>\n<h2 id=\"%e7%90%86%e8%a7%a3%e6%95%b8%e6%93%9a%e5%ba%ab%e5%8f%83%e6%95%b8%e7%9a%84%e9%87%8d%e8%a6%81%e6%80%a7-HxOiZVREMf\">\u7406\u89e3\u6578\u64da\u5eab\u53c3\u6578\u7684\u91cd\u8981\u6027<\/h2>\n<p>\u6578\u64da\u5eab\u53c3\u6578\u662f\u5f71\u97ff\u6578\u64da\u5eab\u6027\u80fd\u7684\u95dc\u9375\u56e0\u7d20\u3002\u9019\u4e9b\u53c3\u6578\u63a7\u5236\u8457\u6578\u64da\u5eab\u7684\u884c\u70ba\uff0c\u5305\u62ec\u5167\u5b58\u4f7f\u7528\u3001\u67e5\u8a62\u512a\u5316\u3001\u9023\u63a5\u6578\u91cf\u7b49\u3002\u6b63\u78ba\u7684\u914d\u7f6e\u53ef\u4ee5\u5e6b\u52a9\u6e1b\u5c11\u67e5\u8a62\u5ef6\u9072\uff0c\u63d0\u9ad8\u6578\u64da\u8655\u7406\u901f\u5ea6\uff0c\u4e26\u78ba\u4fdd\u7cfb\u7d71\u5728\u9ad8\u8ca0\u8f09\u4e0b\u7684\u7a69\u5b9a\u6027\u3002<\/p>\n<h2 id=\"%e6%9f%a5%e8%a9%a2%e6%95%b8%e6%93%9a%e5%ba%ab%e5%8f%83%e6%95%b8%e7%9a%84%e6%96%b9%e6%b3%95-HxOiZVREMf\">\u67e5\u8a62\u6578\u64da\u5eab\u53c3\u6578\u7684\u65b9\u6cd5<\/h2>\n<p>\u4e0d\u540c\u7684\u6578\u64da\u5eab\u7ba1\u7406\u7cfb\u7d71\uff08DBMS\uff09\u6709\u4e0d\u540c\u7684\u67e5\u8a62\u53c3\u6578\u7684\u65b9\u6cd5\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u898b\u7684\u6578\u64da\u5eab\u7cfb\u7d71\u53ca\u5176\u67e5\u8a62\u53c3\u6578\u7684\u65b9\u5f0f\uff1a<\/p>\n<h3 id=\"mysql-HxOiZVREMf\">MySQL<\/h3>\n<p>\u5728MySQL\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0bSQL\u8a9e\u53e5\u67e5\u8a62\u7576\u524d\u7684\u6578\u64da\u5eab\u53c3\u6578\uff1a<\/p>\n<pre><code>SHOW VARIABLES;<\/code><\/pre>\n<p>\u9019\u500b\u547d\u4ee4\u5c07\u8fd4\u56de\u6240\u6709\u7684\u7cfb\u7d71\u8b8a\u91cf\u53ca\u5176\u7576\u524d\u503c\u3002\u82e5\u8981\u67e5\u8a62\u7279\u5b9a\u7684\u53c3\u6578\uff0c\u53ef\u4ee5\u4f7f\u7528\uff1a<\/p>\n<pre><code>SHOW VARIABLES LIKE 'max_connections';<\/code><\/pre>\n<h3 id=\"postgresql-HxOiZVREMf\">PostgreSQL<\/h3>\n<p>\u5728PostgreSQL\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u67e5\u8a62\u53c3\u6578\uff1a<\/p>\n<pre><code>SHOW ALL;<\/code><\/pre>\n<p>\u9019\u5c07\u5217\u51fa\u6240\u6709\u53ef\u7528\u7684\u53c3\u6578\u53ca\u5176\u7576\u524d\u503c\u3002\u82e5\u8981\u67e5\u8a62\u7279\u5b9a\u53c3\u6578\uff0c\u53ef\u4ee5\u4f7f\u7528\uff1a<\/p>\n<pre><code>SHOW work_mem;<\/code><\/pre>\n<h3 id=\"sql-server-HxOiZVREMf\">SQL Server<\/h3>\n<p>\u5728SQL Server\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u67e5\u8a62\u4f86\u7372\u53d6\u7576\u524d\u7684\u914d\u7f6e\u53c3\u6578\uff1a<\/p>\n<pre><code>EXEC sp_configure;<\/code><\/pre>\n<p>\u9019\u5c07\u986f\u793a\u6240\u6709\u7684\u914d\u7f6e\u9078\u9805\u53ca\u5176\u7576\u524d\u503c\u3002\u82e5\u8981\u67e5\u8a62\u7279\u5b9a\u7684\u53c3\u6578\uff0c\u53ef\u4ee5\u4f7f\u7528\uff1a<\/p>\n<pre><code>EXEC sp_configure 'max degree of parallelism';<\/code><\/pre>\n<h2 id=\"%e8%aa%bf%e6%95%b4%e6%95%b8%e6%93%9a%e5%ba%ab%e5%8f%83%e6%95%b8%e7%9a%84%e6%9c%80%e4%bd%b3%e5%af%a6%e8%b8%90-HxOiZVREMf\">\u8abf\u6574\u6578\u64da\u5eab\u53c3\u6578\u7684\u6700\u4f73\u5be6\u8e10<\/h2>\n<p>\u5728\u8abf\u6574\u6578\u64da\u5eab\u53c3\u6578\u6642\uff0c\u61c9\u9075\u5faa\u4ee5\u4e0b\u6700\u4f73\u5be6\u8e10\uff1a<\/p>\n<ul>\n<li><strong>\u76e3\u63a7\u6027\u80fd\uff1a<\/strong>\u5728\u9032\u884c\u4efb\u4f55\u66f4\u6539\u4e4b\u524d\uff0c\u61c9\u5148\u76e3\u63a7\u7576\u524d\u7684\u6027\u80fd\u6307\u6a19\uff0c\u4ee5\u4fbf\u5728\u8abf\u6574\u5f8c\u9032\u884c\u6bd4\u8f03\u3002<\/li>\n<li><strong>\u9010\u6b65\u8abf\u6574\uff1a<\/strong>\u6bcf\u6b21\u53ea\u8abf\u6574\u4e00\u500b\u6216\u5c11\u6578\u5e7e\u500b\u53c3\u6578\uff0c\u9019\u6a23\u53ef\u4ee5\u66f4\u5bb9\u6613\u5730\u8b58\u5225\u54ea\u4e9b\u66f4\u6539\u5c0d\u6027\u80fd\u6709\u5f71\u97ff\u3002<\/li>\n<li><strong>\u6e2c\u8a66\u74b0\u5883\uff1a<\/strong>\u5728\u751f\u7522\u74b0\u5883\u4e2d\u9032\u884c\u66f4\u6539\u4e4b\u524d\uff0c\u61c9\u5728\u6e2c\u8a66\u74b0\u5883\u4e2d\u9a57\u8b49\u9019\u4e9b\u66f4\u6539\u7684\u6548\u679c\u3002<\/li>\n<li><strong>\u6587\u6a94\u8a18\u9304\uff1a<\/strong>\u8a18\u9304\u6240\u6709\u7684\u66f4\u6539\u53ca\u5176\u539f\u56e0\uff0c\u4ee5\u4fbf\u672a\u4f86\u7684\u53c3\u8003\u548c\u56de\u6efe\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b5%90%e8%ab%96-HxOiZVREMf\">\u7d50\u8ad6<\/h2>\n<p>\u627e\u5230\u6b63\u78ba\u7684\u6578\u64da\u5eab\u53c3\u6578\u914d\u7f6e\u65b9\u6848\u662f\u63d0\u5347\u6578\u64da\u5eab\u6027\u80fd\u7684\u95dc\u9375\u3002\u901a\u904e\u4e86\u89e3\u5982\u4f55\u67e5\u8a62\u548c\u8abf\u6574\u6578\u64da\u5eab\u53c3\u6578\uff0c\u60a8\u53ef\u4ee5\u78ba\u4fdd\u7cfb\u7d71\u5728\u9ad8\u8ca0\u8f09\u4e0b\u7684\u7a69\u5b9a\u6027\u548c\u6548\u7387\u3002\u7121\u8ad6\u60a8\u4f7f\u7528\u7684\u662fMySQL\u3001PostgreSQL\u9084\u662fSQL Server\uff0c\u638c\u63e1\u9019\u4e9b\u6280\u5de7\u90fd\u5c07\u5c0d\u60a8\u7684\u6578\u64da\u5eab\u7ba1\u7406\u5de5\u4f5c\u5927\u6709\u88e8\u76ca\u3002<\/p>\n<p>\u5982\u679c\u60a8\u6b63\u5728\u5c0b\u627e\u9ad8\u6548\u7684 <a href=\"https:\/\/server.hk\">VPS<\/a> \u89e3\u6c7a\u65b9\u6848\uff0cServer.HK \u63d0\u4f9b\u591a\u7a2e\u9078\u64c7\uff0c\u5e6b\u52a9\u60a8\u512a\u5316\u6578\u64da\u5eab\u6027\u80fd\uff0c\u63d0\u5347\u696d\u52d9\u6548\u7387\u3002\u4e86\u89e3\u66f4\u591a\u95dc\u65bc\u6211\u5011\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2f\u4f3a\u670d\u5668<\/a> \u670d\u52d9\uff0c\u8b93\u60a8\u7684\u696d\u52d9\u904b\u884c\u66f4\u52a0\u9806\u66a2\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u63a2\u7d22\u6700\u4f73\u6578\u64da\u5eab\u53c3\u6578\u914d\u7f6e\u65b9\u6848\uff0c\u63d0\u5347\u67e5\u8a62\u6548\u7387\uff0c\u512a\u5316\u6027\u80fd\uff0c\u78ba\u4fdd\u6578\u64da\u5eab\u904b\u884c\u7a69\u5b9a\u8207\u9ad8\u6548\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-196253","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/196253","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=196253"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/196253\/revisions"}],"predecessor-version":[{"id":196254,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/196253\/revisions\/196254"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=196253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=196253"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=196253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}