{"id":24446,"date":"2022-11-13T17:34:12","date_gmt":"2022-11-13T09:34:12","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=24446"},"modified":"2022-11-13T17:34:54","modified_gmt":"2022-11-13T09:34:54","slug":"ubuntu-install-discourse","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/ubuntu-install-discourse.html","title":{"rendered":"\u5982\u4f55\u5728 Ubuntu Linux 16.04\u4e0a\u5b89\u88c5\u5f00\u6e90\u7684 Discourse \u8bba\u575b"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nDiscourse \u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u8bba\u575b\uff0c\u5b83\u53ef\u4ee5\u4ee5\u90ae\u4ef6\u5217\u8868\u3001\u804a\u5929\u5ba4\u6216\u8005\u8bba\u575b\u7b49\u591a\u79cd\u5f62\u5f0f\u5de5\u4f5c\u3002\u5b83\u662f\u4e00\u4e2a\u5e7f\u53d7\u6b22\u8fce\u7684\u73b0\u4ee3\u7684\u8bba\u575b\u5de5\u5177\u3002\u5728\u670d\u52a1\u7aef\uff0c\u5b83\u4f7f\u7528 Ruby on Rails \u548c Postgres \u642d\u5efa, \u5e76\u4e14\u4f7f\u7528 Redis \u7f13\u5b58\u6765\u51cf\u5c11\u8bfb\u53d6\u65f6\u95f4 , \u5728\u5ba2\u6237\u7aef\uff0c\u5b83\u4f7f\u7528\u652f\u6301 Java Script \u7684\u6d4f\u89c8\u5668\u3002\u5b83\u975e\u5e38\u5bb9\u6613\u5b9a\u5236\uff0c\u7ed3\u6784\u826f\u597d\uff0c\u5e76\u4e14\u5b83\u63d0\u4f9b\u4e86\u8f6c\u6362\u63d2\u4ef6\uff0c\u53ef\u4ee5\u5bf9\u4f60\u73b0\u5b58\u7684\u8bba\u575b\u3001\u516c\u544a\u677f\u8fdb\u884c\u8f6c\u6362\uff0c\u4f8b\u5982\uff1a vBulletin\u3001phpBB\u3001Drupal\u3001SMF \u7b49\u7b49\u3002\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u5b66\u4e60\u5728 Ubuntu \u64cd\u4f5c\u7cfb\u7edf\u4e0b\u5b89\u88c5 Discourse\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
\u5728 Ubuntu 16.04 \u4e0a\u5b89\u88c5 Discourse<\/strong><\/div>\n
\u5b89\u88c5docker\u548cGit<\/strong><\/span><\/div>\n

\u8ba9\u6211\u4eec\u5f00\u59cb\u5427 ! \u6700\u5c11\u9700\u8981 1G \u7684\u5185\u5b58\uff0c\u5e76\u4e14\u5b98\u65b9\u652f\u6301\u7684\u5b89\u88c5\u8fc7\u7a0b\u9700\u8981\u5df2\u7ecf\u5b89\u88c5\u4e86 docker\u3002 \u8bf4\u5230 docker\uff0c\u5b83\u8fd8\u9700\u8981\u5b89\u88c5Git\u3002\u8981\u6ee1\u8db3\u4ee5\u4e0a\u7684\u4e24\u70b9\u8981\u6c42\u6211\u4eec\u53ea\u9700\u8981\u8fd0\u884c\u4e0b\u9762\u7684\u547d\u4ee4\uff1a<\/p>\n

wget -qO- https:\/\/get.docker.com\/ | sh<\/pre>\n

<\/p>\n

\u7528\u4e0d\u4e86\u591a\u4e45\u5c31\u5b89\u88c5\u597d\u4e86 docker \u548c Git\uff0c\u5b89\u88c5\u7ed3\u675f\u4ee5\u540e\uff0c\u5728\u4f60\u7684\u7cfb\u7edf\u4e0a\u7684 \/var \u5206\u533a\u521b\u5efa\u4e00\u4e2a Discourse \u6587\u4ef6\u5939\uff08\u5f53\u7136\u4f60\u4e5f\u53ef\u4ee5\u9009\u62e9\u5176\u4ed6\u7684\u5206\u533a\uff09\u3002<\/p>\n

mkdir \/var\/discourse<\/pre>\n
\u514b\u9686Github\u4ed3\u5e93<\/strong><\/span><\/div>\n

\u73b0\u5728\u6211\u4eec\u6765\u514b\u9686 Discourse \u7684 Github \u4ed3\u5e93\u5230\u8fd9\u4e2a\u65b0\u5efa\u7684\u6587\u4ef6\u5939\u3002<\/p>\n

git clone https:\/\/github.com\/discourse\/discourse_docker.git \/var\/discourse<\/pre>\n

\u8fdb\u5165\u8fd9\u4e2a\u514b\u9686\u7684\u6587\u4ef6\u5939\u3002<\/p>\n

cd \/var\/discourse<\/pre>\n

<\/p>\n

\u4f60\u5c06\u770b\u5230\u201cdiscourse-setup\u201d \u811a\u672c\u6587\u4ef6\uff0c\u8fd0\u884c\u8fd9\u4e2a\u811a\u672c\u6587\u4ef6\u8fdb\u884c Discourse \u7684\u521d\u59cb\u5316\u3002<\/p>\n

.\/discourse-setup<\/pre>\n

\u5907\u6ce8\uff1a \u5728\u5b89\u88c5 discourse \u4e4b\u524d\u8bf7\u786e\u4fdd\u4f60\u5df2\u7ecf\u5b89\u88c5\u597d\u4e86\u90ae\u4ef6\u670d\u52a1\u5668\u3002<\/strong><\/p>\n

\u5b89\u88c5\u5411\u5bfc<\/strong><\/span><\/div>\n

\u5b89\u88c5\u5411\u5bfc\u5c06\u4f1a\u95ee\u4f60\u4ee5\u4e0b\u516d\u4e2a\u95ee\u9898\uff1a<\/p>\n

Hostname for your Discourse?\r\nEmail address for admin account?\r\nSMTP server address?\r\nSMTP user name?\r\nSMTP port [587]:\r\nSMTP password? []:\r\n<\/span><\/pre>\n

\"\u5982\u4f55\u5728<\/p>\n

\u5f53\u4f60\u63d0\u4ea4\u4e86\u4ee5\u4e0a\u4fe1\u606f\u4ee5\u540e, \u5b83\u4f1a\u8ba9\u4f60\u63d0\u4ea4\u786e\u8ba4, \u5982\u679c\u4e00\u5207\u90fd\u5f88\u6b63\u5e38\uff0c\u70b9\u51fb\u56de\u8f66\u4ee5\u540e\u5b89\u88c5\u5f00\u59cb\u3002<\/p>\n

\"\u5982\u4f55\u5728<\/p>\n

\u73b0\u5728\u201c\u5750\u7b49\u653e\u5bbd\u201d\uff0c\u9700\u8981\u82b1\u8d39\u4e00\u4e9b\u65f6\u95f4\u6765\u5b8c\u6210\u5b89\u88c5\uff0c\u5012\u676f\u5496\u5561\uff0c\u770b\u770b\u6709\u4ec0\u4e48\u9519\u8bef\u4fe1\u606f\u6ca1\u6709\u3002<\/p>\n

\"\u5982\u4f55\u5728<\/p>\n

\u5b89\u88c5\u6210\u529f\u4ee5\u540e\u770b\u8d77\u6765\u5e94\u8be5\u50cf\u8fd9\u6837\u3002<\/p>\n

\"\u5982\u4f55\u5728<\/p>\n

\u8fdb\u5165\u6d4f\u89c8\u5668\u8bbe\u7f6e<\/strong><\/span><\/div>\n

\u73b0\u5728\u6253\u5f00\u6d4f\u89c8\u5668\uff0c\u5982\u679c\u5df2\u7ecf\u505a\u4e86\u57df\u540d\u89e3\u6790\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u4f60\u7684\u57df\u540d\u6765\u8fde\u63a5 Discourse \u9875\u9762 \uff0c\u5426\u5219\u4f60\u53ea\u80fd\u4f7f\u7528IP\u5730\u5740\u4e86\u3002\u4f60\u5c06\u770b\u5230\u5982\u4e0b\u4fe1\u606f\uff1a<\/p>\n

\"\u5982\u4f55\u5728<\/p>\n

\u5c31\u662f\u8fd9\u4e2a\uff0c\u70b9\u51fb \u201cSign Up\u201d \u9009\u9879\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u8d26\u6237\uff0c\u7136\u540e\u8fdb\u884c\u4f60\u7684 Discourse \u8bbe\u7f6e\u3002<\/p>\n

\"\u5982\u4f55\u5728<\/p>\n

\u7ed3\u8bba<\/strong><\/div>\n

\u5b83\u5b89\u88c5\u7b80\u4fbf\uff0c\u8fd0\u884c\u5b8c\u7f8e\u3002 \u5b83\u62e5\u6709\u73b0\u4ee3\u8bba\u575b\u6240\u6709\u5fc5\u5907\u529f\u80fd\u3002\u5b83\u4ee5 GPL \u53d1\u5e03\uff0c\u662f\u5b8c\u5168\u5f00\u6e90\u7684\u4ea7\u54c1\u3002\u7b80\u5355\u3001\u6613\u7528\u3001\u4ee5\u53ca\u7279\u6027\u4e30\u5bcc\u662f\u5b83\u7684\u6700\u5927\u7279\u70b9\u3002<\/p>\n

\n

\u539f\u6587\u6765\u81ea\uff1ahttps:\/\/linux.cn\/article-7631-1.html<\/a><\/p>\n

\u672c\u6587\u5730\u5740\uff1a http:\/\/lrxjmw.cn\/ubuntu-install-discourse.html<\/a>\u7f16\u8f91\uff1a\u5f20\u632f\u5b87\uff0c\u5ba1\u6838\u5458\uff1a\u6768\u9e4f\u98de<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

Discourse \u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u8bba\u575b\uff0c\u5b83\u53ef\u4ee5\u4ee5\u90ae\u4ef6\u5217\u8868\u3001\u804a\u5929\u5ba4\u6216\u8005\u8bba\u575b\u7b49\u591a\u79cd\u5f62\u5f0f\u5de5\u4f5c\u3002\u5b83\u662f\u4e00\u4e2a\u5e7f\u53d7\u6b22\u8fce\u7684\u73b0\u4ee3\u7684\u8bba\u575b\u5de5\u5177\u3002\u5728\u670d\u52a1\u7aef\uff0c\u5b83\u4f7f\u7528 Ruby on Rails \u548c Postgres \u642d\u5efa, \u5e76\u4e14\u4f7f\u7528 Redis \u7f13\u5b58\u6765\u51cf\u5c11\u8bfb\u53d6\u65f6\u95f4 , \u5728\u5ba2\u6237\u7aef\uff0c\u5b83\u4f7f\u7528\u652f\u6301 Java Script \u7684\u6d4f\u89c8\u5668\u3002\u5b83\u975e\u5e38\u5bb9\u6613\u5b9a\u5236\uff0c\u7ed3\u6784\u826f\u597d\uff0c\u5e76\u4e14\u5b83\u63d0\u4f9b\u4e86\u8f6c\u6362\u63d2\u4ef6\uff0c\u53ef\u4ee5\u5bf9\u4f60\u73b0\u5b58\u7684\u8bba\u575b\u3001\u516c\u544a\u677f\u8fdb\u884c\u8f6c\u6362\uff0c\u4f8b\u5982\uff1a vBulletin\u3001phpBB\u3001Drupal\u3001SMF \u7b49\u7b49\u3002\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u5b66\u4e60\u5728 Ubuntu \u64cd\u4f5c\u7cfb\u7edf\u4e0b\u5b89\u88c5 Discourse\u3002<\/p>\n","protected":false},"author":310,"featured_media":24566,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-24446","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/24446","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/310"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=24446"}],"version-history":[{"count":21,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/24446\/revisions"}],"predecessor-version":[{"id":257358,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/24446\/revisions\/257358"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/24566"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=24446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=24446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=24446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}