{"id":51565,"date":"2024-10-08T19:42:17","date_gmt":"2024-10-08T11:42:17","guid":{"rendered":"https:\/\/server.hk\/cnblog\/51565\/"},"modified":"2024-11-14T10:42:44","modified_gmt":"2024-11-14T02:42:44","slug":"ubuntu-18-04-linux-%e4%b8%8a%e5%ae%89%e8%a3%9d-etherpad%ef%bc%8c%e5%9f%ba%e6%96%bc-web-%e7%9a%84%e5%af%a6%e6%99%82%e5%8d%94%e4%bd%9c%e7%b7%a8%e8%bc%af%e5%99%a8","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/51565\/","title":{"rendered":"Ubuntu 18.04 Linux \u4e0a\u5b89\u88dd Etherpad\uff0c\u57fa\u65bc Web \u7684\u5be6\u6642\u5354\u4f5c\u7de8\u8f2f\u5668"},"content":{"rendered":"<h1 id=\"%e5%9c%a8-ubuntu-18-04-linux-%e4%b8%8a%e5%ae%89%e8%a3%9d-etherpad%ef%bc%9a%e5%9f%ba%e6%96%bc-web-%e7%9a%84%e5%af%a6%e6%99%82%e5%8d%94%e4%bd%9c%e7%b7%a8%e8%bc%af%e5%99%a8-kvSSIrFyoa\">\u5728 Ubuntu 18.04 Linux \u4e0a\u5b89\u88dd Etherpad\uff1a\u57fa\u65bc Web \u7684\u5be6\u6642\u5354\u4f5c\u7de8\u8f2f\u5668<\/h1>\n<p>\u5728\u7576\u4eca\u7684\u6578\u4f4d\u6642\u4ee3\uff0c\u5be6\u6642\u5354\u4f5c\u7de8\u8f2f\u5668\u5df2\u6210\u70ba\u5718\u968a\u5408\u4f5c\u7684\u91cd\u8981\u5de5\u5177\u3002Etherpad \u662f\u4e00\u6b3e\u958b\u6e90\u7684\u57fa\u65bc Web \u7684\u5be6\u6642\u5354\u4f5c\u7de8\u8f2f\u5668\uff0c\u5141\u8a31\u591a\u4f4d\u7528\u6236\u540c\u6642\u7de8\u8f2f\u6587\u6a94\uff0c\u4e26\u5373\u6642\u770b\u5230\u5f7c\u6b64\u7684\u8b8a\u66f4\u3002\u672c\u6587\u5c07\u6307\u5c0e\u60a8\u5982\u4f55\u5728 Ubuntu 18.04 \u4e0a\u5b89\u88dd Etherpad\uff0c\u8b93\u60a8\u80fd\u5920\u8f15\u9b06\u5730\u9032\u884c\u5718\u968a\u5354\u4f5c\u3002<\/p>\n<h2 id=\"%e7%b3%bb%e7%b5%b1%e9%9c%80%e6%b1%82-kvSSIrFyoa\">\u7cfb\u7d71\u9700\u6c42<\/h2>\n<p>\u5728\u958b\u59cb\u5b89\u88dd\u4e4b\u524d\uff0c\u78ba\u4fdd\u60a8\u7684\u7cfb\u7d71\u7b26\u5408\u4ee5\u4e0b\u9700\u6c42\uff1a<\/p>\n<ul>\n<li>Ubuntu 18.04 \u6216\u66f4\u9ad8\u7248\u672c<\/li>\n<li>Node.js\uff08\u7248\u672c 10 \u6216\u66f4\u9ad8\uff09<\/li>\n<li>Git<\/li>\n<li>\u4e00\u500b\u53ef\u7528\u7684\u6578\u64da\u5eab\uff08\u5982 PostgreSQL \u6216 MySQL\uff09<\/li>\n<\/ul>\n<h2 id=\"%e5%ae%89%e8%a3%9d%e6%ad%a5%e9%a9%9f-kvSSIrFyoa\">\u5b89\u88dd\u6b65\u9a5f<\/h2>\n<h3 id=\"1-%e6%9b%b4%e6%96%b0%e7%b3%bb%e7%b5%b1-kvSSIrFyoa\">1. \u66f4\u65b0\u7cfb\u7d71<\/h3>\n<pre><code>sudo apt update\nsudo apt upgrade<\/code><\/pre>\n<h3 id=\"2-%e5%ae%89%e8%a3%9d-node-js-%e5%92%8c-npm-kvSSIrFyoa\">2. \u5b89\u88dd Node.js \u548c npm<\/h3>\n<p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u5b89\u88dd Node.js \u548c npm\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u9032\u884c\u5b89\u88dd\uff1a<\/p>\n<pre><code>sudo apt install nodejs npm<\/code><\/pre>\n<h3 id=\"3-%e5%ae%89%e8%a3%9d-git-kvSSIrFyoa\">3. \u5b89\u88dd Git<\/h3>\n<p>\u63a5\u4e0b\u4f86\uff0c\u5b89\u88dd Git \u4ee5\u4fbf\u5f9e GitHub \u7372\u53d6 Etherpad \u7684\u6e90\u4ee3\u78bc\uff1a<\/p>\n<pre><code>sudo apt install git<\/code><\/pre>\n<h3 id=\"4-%e4%b8%8b%e8%bc%89-etherpad-kvSSIrFyoa\">4. \u4e0b\u8f09 Etherpad<\/h3>\n<p>\u4f7f\u7528 Git \u514b\u9686 Etherpad \u7684\u6e90\u4ee3\u78bc\uff1a<\/p>\n<pre><code>git clone https:\/\/github.com\/ether\/etherpad-lite.git<\/code><\/pre>\n<p>\u9032\u5165 Etherpad \u7684\u76ee\u9304\uff1a<\/p>\n<pre><code>cd etherpad-lite<\/code><\/pre>\n<h3 id=\"5-%e5%ae%89%e8%a3%9d%e4%be%9d%e8%b3%b4%e9%a0%85-kvSSIrFyoa\">5. \u5b89\u88dd\u4f9d\u8cf4\u9805<\/h3>\n<p>\u5728 Etherpad \u76ee\u9304\u4e2d\uff0c\u904b\u884c\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u5b89\u88dd\u6240\u9700\u7684\u4f9d\u8cf4\u9805\uff1a<\/p>\n<pre><code>npm install<\/code><\/pre>\n<h3 id=\"6-%e9%85%8d%e7%bd%ae-etherpad-kvSSIrFyoa\">6. \u914d\u7f6e Etherpad<\/h3>\n<p>\u5728 Etherpad \u76ee\u9304\u4e2d\uff0c\u8907\u88fd\u914d\u7f6e\u7bc4\u672c\u4e26\u9032\u884c\u7de8\u8f2f\uff1a<\/p>\n<pre><code>cp settings.json.example settings.json\nnano settings.json<\/code><\/pre>\n<p>\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u60a8\u53ef\u4ee5\u8a2d\u7f6e\u6578\u64da\u5eab\u9023\u63a5\u3001\u7aef\u53e3\u865f\u7b49\u53c3\u6578\u3002\u78ba\u4fdd\u6839\u64da\u60a8\u7684\u9700\u6c42\u9032\u884c\u76f8\u61c9\u7684\u4fee\u6539\u3002<\/p>\n<h3 id=\"7-%e5%95%9f%e5%8b%95-etherpad-kvSSIrFyoa\">7. \u555f\u52d5 Etherpad<\/h3>\n<p>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u555f\u52d5 Etherpad\uff1a<\/p>\n<pre><code>bin\/run.sh<\/code><\/pre>\n<p>\u5982\u679c\u4e00\u5207\u6b63\u5e38\uff0c\u60a8\u61c9\u8a72\u6703\u770b\u5230 Etherpad \u6b63\u5728\u904b\u884c\u7684\u6d88\u606f\u3002<\/p>\n<h3 id=\"8-%e8%a8%aa%e5%95%8f-etherpad-kvSSIrFyoa\">8. \u8a2a\u554f Etherpad<\/h3>\n<p>\u5728\u700f\u89bd\u5668\u4e2d\u8f38\u5165\u4ee5\u4e0b\u5730\u5740\u4ee5\u8a2a\u554f Etherpad\uff1a<\/p>\n<pre><code>http:\/\/localhost:9001<\/code><\/pre>\n<p>\u60a8\u73fe\u5728\u53ef\u4ee5\u958b\u59cb\u5275\u5efa\u548c\u7de8\u8f2f\u6587\u6a94\uff0c\u4e26\u8207\u5176\u4ed6\u7528\u6236\u9032\u884c\u5be6\u6642\u5354\u4f5c\u3002<\/p>\n<h2 id=\"%e5%b8%b8%e8%a6%8b%e5%95%8f%e9%a1%8c-kvSSIrFyoa\">\u5e38\u898b\u554f\u984c<\/h2>\n<h3 id=\"1-%e5%a6%82%e4%bd%95%e8%a8%ad%e7%bd%ae%e6%95%b8%e6%93%9a%e5%ba%ab%ef%bc%9f-kvSSIrFyoa\">1. \u5982\u4f55\u8a2d\u7f6e\u6578\u64da\u5eab\uff1f<\/h3>\n<p>\u5728 settings.json \u6587\u4ef6\u4e2d\uff0c\u60a8\u53ef\u4ee5\u627e\u5230\u6578\u64da\u5eab\u914d\u7f6e\u90e8\u5206\u3002\u6839\u64da\u60a8\u9078\u64c7\u7684\u6578\u64da\u5eab\u985e\u578b\uff08\u5982 PostgreSQL \u6216 MySQL\uff09\u9032\u884c\u76f8\u61c9\u7684\u8a2d\u7f6e\u3002<\/p>\n<h3 id=\"2-etherpad-%e6%98%af%e5%90%a6%e6%94%af%e6%8c%81%e6%8f%92%e4%bb%b6%ef%bc%9f-kvSSIrFyoa\">2. Etherpad \u662f\u5426\u652f\u6301\u63d2\u4ef6\uff1f<\/h3>\n<p>\u662f\u7684\uff0cEtherpad \u652f\u6301\u591a\u7a2e\u63d2\u4ef6\uff0c\u60a8\u53ef\u4ee5\u6839\u64da\u9700\u8981\u5b89\u88dd\u548c\u914d\u7f6e\u9019\u4e9b\u63d2\u4ef6\u4ee5\u64f4\u5c55\u529f\u80fd\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-kvSSIrFyoa\">\u7e3d\u7d50<\/h2>\n<p>\u5728 Ubuntu 18.04 \u4e0a\u5b89\u88dd Etherpad \u662f\u4e00\u500b\u76f8\u5c0d\u7c21\u55ae\u7684\u904e\u7a0b\uff0c\u80fd\u5920\u70ba\u5718\u968a\u63d0\u4f9b\u4e00\u500b\u5f37\u5927\u7684\u5be6\u6642\u5354\u4f5c\u5e73\u53f0\u3002\u7121\u8ad6\u662f\u7528\u65bc\u6703\u8b70\u8a18\u9304\u3001\u9805\u76ee\u8a08\u5283\u9084\u662f\u5b78\u8853\u7814\u7a76\uff0cEtherpad \u90fd\u80fd\u6eff\u8db3\u60a8\u7684\u9700\u6c42\u3002\u5982\u679c\u60a8\u9700\u8981\u7a69\u5b9a\u7684\u74b0\u5883\u4f86\u904b\u884c Etherpad\uff0c\u8003\u616e\u4f7f\u7528 <a href=\"https:\/\/server.hk\">\u9999\u6e2f VPS<\/a> \u670d\u52d9\uff0c\u4ee5\u78ba\u4fdd\u6700\u4f73\u6027\u80fd\u548c\u53ef\u9760\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b78\u7fd2\u5982\u4f55\u5728 Ubuntu 18.04 Linux \u4e0a\u5b89\u88dd Etherpad\uff0c\u9019\u662f\u4e00\u6b3e\u57fa\u65bc Web \u7684\u5be6\u6642\u5354\u4f5c\u7de8\u8f2f\u5668\uff0c\u63d0\u5347\u5718\u968a\u5354\u4f5c\u6548\u7387\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4924],"tags":[],"class_list":["post-51565","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/51565","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=51565"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/51565\/revisions"}],"predecessor-version":[{"id":51566,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/51565\/revisions\/51566"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=51565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=51565"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=51565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}