{"id":62321,"date":"2024-10-13T18:02:14","date_gmt":"2024-10-13T10:02:14","guid":{"rendered":"https:\/\/server.hk\/cnblog\/62321\/"},"modified":"2024-10-13T18:02:14","modified_gmt":"2024-10-13T10:02:14","slug":"linux%e4%b8%8b%e5%bc%b7%e5%a4%a7%e7%9a%84%e6%95%b8%e6%93%9a%e5%ba%ab%e7%ae%a1%e7%90%86%e5%b7%a5%e5%85%b7-linux%e6%95%b8%e6%93%9a%e5%ba%ab%e7%ae%a1%e7%90%86%e5%b7%a5%e5%85%b7","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/62321\/","title":{"rendered":"Linux\u4e0b\u5f37\u5927\u7684\u6578\u64da\u5eab\u7ba1\u7406\u5de5\u5177 (linux\u6578\u64da\u5eab\u7ba1\u7406\u5de5\u5177)"},"content":{"rendered":"<h1 id=\"linux%e4%b8%8b%e5%bc%b7%e5%a4%a7%e7%9a%84%e6%95%b8%e6%93%9a%e5%ba%ab%e7%ae%a1%e7%90%86%e5%b7%a5%e5%85%b7-IrRBLHfyyg\">Linux\u4e0b\u5f37\u5927\u7684\u6578\u64da\u5eab\u7ba1\u7406\u5de5\u5177<\/h1>\n<p>\u5728\u7576\u4eca\u6578\u64da\u9a45\u52d5\u7684\u4e16\u754c\u4e2d\uff0c\u6578\u64da\u5eab\u7ba1\u7406\u5de5\u5177\u7684\u9078\u64c7\u5c0d\u65bc\u4f01\u696d\u7684\u904b\u71df\u81f3\u95dc\u91cd\u8981\u3002Linux\u4f5c\u70ba\u4e00\u500b\u958b\u6e90\u64cd\u4f5c\u7cfb\u7d71\uff0c\u63d0\u4f9b\u4e86\u591a\u7a2e\u5f37\u5927\u7684\u6578\u64da\u5eab\u7ba1\u7406\u5de5\u5177\uff0c\u9019\u4e9b\u5de5\u5177\u4e0d\u50c5\u529f\u80fd\u5f37\u5927\uff0c\u9084\u80fd\u5920\u6709\u6548\u5730\u652f\u6301\u5404\u7a2e\u6578\u64da\u5eab\u7cfb\u7d71\u7684\u7ba1\u7406\u548c\u7dad\u8b77\u3002\u672c\u6587\u5c07\u4ecb\u7d39\u5e7e\u7a2e\u5728Linux\u74b0\u5883\u4e0b\u5e38\u7528\u7684\u6578\u64da\u5eab\u7ba1\u7406\u5de5\u5177\uff0c\u5e6b\u52a9\u7528\u6236\u66f4\u597d\u5730\u7406\u89e3\u548c\u9078\u64c7\u5408\u9069\u7684\u5de5\u5177\u3002<\/p>\n<h2 id=\"1-mysql-IrRBLHfyyg\">1. MySQL<\/h2>\n<p>MySQL\u662f\u4e00\u500b\u6d41\u884c\u7684\u958b\u6e90\u95dc\u4fc2\u578b\u6578\u64da\u5eab\u7ba1\u7406\u7cfb\u7d71\uff0c\u5ee3\u6cdb\u61c9\u7528\u65bcWeb\u61c9\u7528\u7a0b\u5e8f\u4e2d\u3002\u5b83\u4ee5\u5176\u9ad8\u6548\u6027\u548c\u53ef\u9760\u6027\u800c\u805e\u540d\uff0c\u4e26\u4e14\u652f\u6301\u591a\u7a2e\u64cd\u4f5c\u7cfb\u7d71\uff0c\u5305\u62ecLinux\u3002MySQL\u63d0\u4f9b\u4e86\u8c50\u5bcc\u7684\u529f\u80fd\uff0c\u5982\u4e8b\u52d9\u8655\u7406\u3001\u5b58\u5132\u904e\u7a0b\u548c\u89f8\u767c\u5668\u7b49\u3002<\/p>\n<h3 id=\"%e5%ae%89%e8%a3%9dmysql-IrRBLHfyyg\">\u5b89\u88ddMySQL<\/h3>\n<pre><code>sudo apt update\nsudo apt install mysql-server\n<\/code><\/pre>\n<p>\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u555f\u52d5MySQL\u670d\u52d9\uff1a<\/p>\n<pre><code>sudo systemctl start mysql\n<\/code><\/pre>\n<h2 id=\"2-postgresql-IrRBLHfyyg\">2. PostgreSQL<\/h2>\n<p>PostgreSQL\u662f\u4e00\u500b\u529f\u80fd\u5f37\u5927\u7684\u958b\u6e90\u5c0d\u8c61\u95dc\u4fc2\u578b\u6578\u64da\u5eab\u7cfb\u7d71\uff0c\u7279\u5225\u9069\u5408\u9700\u8981\u8907\u96dc\u67e5\u8a62\u548c\u6578\u64da\u5b8c\u6574\u6027\u7684\u61c9\u7528\u3002\u5b83\u652f\u6301\u591a\u7a2e\u6578\u64da\u985e\u578b\u548c\u64f4\u5c55\uff0c\u4e26\u4e14\u5177\u6709\u826f\u597d\u7684\u6027\u80fd\u548c\u53ef\u64f4\u5c55\u6027\u3002<\/p>\n<h3 id=\"%e5%ae%89%e8%a3%9dpostgresql-IrRBLHfyyg\">\u5b89\u88ddPostgreSQL<\/h3>\n<pre><code>sudo apt update\nsudo apt install postgresql postgresql-contrib\n<\/code><\/pre>\n<p>\u5b89\u88dd\u5f8c\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u555f\u52d5PostgreSQL\u670d\u52d9\uff1a<\/p>\n<pre><code>sudo systemctl start postgresql\n<\/code><\/pre>\n<h2 id=\"3-mongodb-IrRBLHfyyg\">3. MongoDB<\/h2>\n<p>MongoDB\u662f\u4e00\u500b\u57fa\u65bc\u6587\u6a94\u7684NoSQL\u6578\u64da\u5eab\uff0c\u9069\u5408\u8655\u7406\u5927\u91cf\u975e\u7d50\u69cb\u5316\u6578\u64da\u3002\u5b83\u7684\u9748\u6d3b\u6027\u548c\u53ef\u64f4\u5c55\u6027\u4f7f\u5176\u6210\u70ba\u8a31\u591a\u73fe\u4ee3\u61c9\u7528\u7a0b\u5e8f\u7684\u9996\u9078\u3002MongoDB\u4f7f\u7528JSON\u6a23\u5f0f\u7684\u6587\u6a94\u4f86\u5b58\u5132\u6578\u64da\uff0c\u9019\u4f7f\u5f97\u6578\u64da\u7684\u8b80\u53d6\u548c\u5beb\u5165\u64cd\u4f5c\u975e\u5e38\u9ad8\u6548\u3002<\/p>\n<h3 id=\"%e5%ae%89%e8%a3%9dmongodb-IrRBLHfyyg\">\u5b89\u88ddMongoDB<\/h3>\n<pre><code>sudo apt update\nsudo apt install -y mongodb\n<\/code><\/pre>\n<p>\u5b89\u88dd\u5f8c\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u555f\u52d5MongoDB\u670d\u52d9\uff1a<\/p>\n<pre><code>sudo systemctl start mongodb\n<\/code><\/pre>\n<h2 id=\"4-phpmyadmin-IrRBLHfyyg\">4. phpMyAdmin<\/h2>\n<p>phpMyAdmin\u662f\u4e00\u500b\u7528\u65bc\u7ba1\u7406MySQL\u548cMariaDB\u7684Web\u61c9\u7528\u7a0b\u5e8f\uff0c\u63d0\u4f9b\u4e86\u4e00\u500b\u7528\u6236\u53cb\u597d\u7684\u754c\u9762\u4f86\u57f7\u884c\u6578\u64da\u5eab\u64cd\u4f5c\u3002\u5b83\u652f\u6301\u591a\u7a2e\u8a9e\u8a00\uff0c\u4e26\u4e14\u53ef\u4ee5\u8f15\u9b06\u5730\u9032\u884c\u6578\u64da\u5eab\u7684\u5099\u4efd\u548c\u6062\u5fa9\u3002<\/p>\n<h3 id=\"%e5%ae%89%e8%a3%9dphpmyadmin-IrRBLHfyyg\">\u5b89\u88ddphpMyAdmin<\/h3>\n<pre><code>sudo apt update\nsudo apt install phpmyadmin\n<\/code><\/pre>\n<p>\u5b89\u88dd\u5f8c\uff0c\u9700\u914d\u7f6eWeb\u4f3a\u670d\u5668\u4ee5\u4fbf\u8a2a\u554fphpMyAdmin\u754c\u9762\u3002<\/p>\n<h2 id=\"5-dbeaver-IrRBLHfyyg\">5. DBeaver<\/h2>\n<p>DBeaver\u662f\u4e00\u500b\u958b\u6e90\u7684\u6578\u64da\u5eab\u7ba1\u7406\u5de5\u5177\uff0c\u652f\u6301\u591a\u7a2e\u6578\u64da\u5eab\u7cfb\u7d71\uff0c\u5305\u62ecMySQL\u3001PostgreSQL\u3001SQLite\u7b49\u3002\u5b83\u63d0\u4f9b\u4e86\u4e00\u500b\u7d71\u4e00\u7684\u754c\u9762\u4f86\u7ba1\u7406\u4e0d\u540c\u985e\u578b\u7684\u6578\u64da\u5eab\uff0c\u4e26\u4e14\u652f\u6301SQL\u7de8\u8f2f\u3001\u6578\u64da\u5c0e\u5165\u5c0e\u51fa\u7b49\u529f\u80fd\u3002<\/p>\n<h3 id=\"%e5%ae%89%e8%a3%9ddbeaver-IrRBLHfyyg\">\u5b89\u88ddDBeaver<\/h3>\n<p>\u53ef\u4ee5\u5f9eDBeaver\u7684\u5b98\u65b9\u7db2\u7ad9\u4e0b\u8f09\u9069\u5408Linux\u7684\u5b89\u88dd\u5305\uff0c\u7136\u5f8c\u6309\u7167\u6307\u793a\u9032\u884c\u5b89\u88dd\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-IrRBLHfyyg\">\u7e3d\u7d50<\/h2>\n<p>\u5728Linux\u74b0\u5883\u4e0b\uff0c\u6709\u591a\u7a2e\u5f37\u5927\u7684\u6578\u64da\u5eab\u7ba1\u7406\u5de5\u5177\u53ef\u4f9b\u9078\u64c7\uff0c\u7121\u8ad6\u662f\u95dc\u4fc2\u578b\u6578\u64da\u5eab\u9084\u662fNoSQL\u6578\u64da\u5eab\uff0c\u90fd\u80fd\u627e\u5230\u5408\u9069\u7684\u89e3\u6c7a\u65b9\u6848\u3002\u9078\u64c7\u5408\u9069\u7684\u6578\u64da\u5eab\u7ba1\u7406\u5de5\u5177\u4e0d\u50c5\u80fd\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\uff0c\u9084\u80fd\u78ba\u4fdd\u6578\u64da\u7684\u5b89\u5168\u6027\u548c\u5b8c\u6574\u6027\u3002\u5c0d\u65bc\u9700\u8981\u9ad8\u6548\u6578\u64da\u8655\u7406\u7684\u4f01\u696d\u4f86\u8aaa\uff0c\u9078\u64c7\u5408\u9069\u7684 <a href=\"https:\/\/server.hk\">VPS<\/a> \u65b9\u6848\u4e5f\u662f\u81f3\u95dc\u91cd\u8981\u7684\uff0c\u9019\u6a23\u53ef\u4ee5\u78ba\u4fdd\u6578\u64da\u5eab\u7684\u7a69\u5b9a\u904b\u884c\u548c\u5feb\u901f\u97ff\u61c9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u63a2\u7d22Linux\u4e0b\u5f37\u5927\u7684\u6578\u64da\u5eab\u7ba1\u7406\u5de5\u5177\uff0c\u63d0\u5347\u6578\u64da\u8655\u7406\u6548\u7387\uff0c\u7c21\u5316\u7ba1\u7406\u6d41\u7a0b\uff0c\u52a9\u60a8\u8f15\u9b06\u638c\u63a7\u6578\u64da\u5eab\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-62321","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/62321","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"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=62321"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/62321\/revisions"}],"predecessor-version":[{"id":62322,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/62321\/revisions\/62322"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=62321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=62321"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=62321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}