{"id":21016,"date":"2021-02-28T12:27:19","date_gmt":"2021-02-28T04:27:19","guid":{"rendered":"http:\/\/www.idc.net\/help\/21016\/"},"modified":"2022-04-29T14:34:13","modified_gmt":"2022-04-29T06:34:13","slug":"ubuntu%e4%b8%ad%e5%ae%89%e8%a3%85discourse%e5%85%b7%e4%bd%93%e6%ad%a5%e9%aa%a4","status":"publish","type":"post","link":"https:\/\/idc.net\/help\/21016\/","title":{"rendered":"Ubuntu\u4e2d\u5b89\u88c5Discourse\u5177\u4f53\u6b65\u9aa4"},"content":{"rendered":"<div class=\"idc_table\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;margin: 5px 0px;line-height: 1.75;letter-spacing: 0.1em;font-size: 16px;text-align: justify\">Discourse \u662f Stack Overflow \u7684\u8054\u5408\u521b\u59cb\u4eba Jeff Atwood \u63a8\u51fa\u7684\u4e00\u4e2a\u65b0\u7684\u5f00\u6e90\u8bba\u575b\u9879\u76ee\uff0c\u5176\u76ee\u7684\u662f\u4e3a\u4e86\u6539\u53d8\u5341\u5e74\u672a\u53d8\u7684\u8bba\u575b\u8f6f\u4ef6\u3002\u5b83\u6452\u5f03\u4e86\u4f20\u7edf\u8bba\u575b\u7684\u8bdd\u9898\u8ba8\u8bba\u5f62\u5f0f\u3001\u62e5\u6709\u81ea\u5b66\u4e60\u7cfb\u7edf\u3001\u5168Web\u5e94\u7528\u540c\u65f6\u9002\u7528\u4e8e\u684c\u9762\u548c\u79fb\u52a8\u7ec8\u7aef\uff0c\u672c\u7bc7\u6587\u7ae0\u91cd\u70b9\u4e3a\u5927\u5bb6\u8bb2\u89e3\u4e00\u4e0b\u5728Ubuntu\u4e2d\u5b89\u88c5Discourse\u5177\u4f53\u6b65\u9aa4\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"max-width: 100%;border-radius: 5px 5px 5px 5px;margin: 0px 10px auto;width: 100%;height: 100%\" src=\"https:\/\/lxlinux.superbed.verylink.top\/item\/614ea17e2ab3f51d915ae384.gif\">  <\/p>\n<h2><span style=\"font-size: 20px;color: #f48a00;padding-left: 10px;border-left: 8px solid #ffbf52\">\u5728 Ubuntu 16.04 \u4e0a\u5b89\u88c5 Discourse<\/span><\/h2>\n<h3><span style=\"font-size: 18px;color: #f48a00;padding-left: 10px;border-left: 4px solid #ffe3a3\">\u5b89\u88c5docker\u548cGit<\/span><\/h3>\n<p style=\"padding-top: 8px;padding-bottom: 8px;margin: 5px 0px;line-height: 1.75;letter-spacing: 0.1em;font-size: 16px;text-align: justify\">\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<pre><code>wget&nbsp;-qO-&nbsp;https:\/\/get.docker.com\/&nbsp;|&nbsp;sh\r\n<\/code><\/pre>\n<p><img decoding=\"async\" style=\"max-width: 100%;border-radius: 5px 5px 5px 5px;margin: 0px 10px auto;width: 100%;height: 100%\" src=\"https:\/\/lxlinux.superbed.verylink.top\/item\/614ea17e2ab3f51d915ae300.png\" class=\"aligncenter\">  \u5982\u4f55\u5728 Ubuntu Linux 16.04\u4e0a\u5b89\u88c5\u5f00\u6e90\u7684 Discourse \u8bba\u575b\u5982\u4f55\u5728 Ubuntu Linux 16.04\u4e0a\u5b89\u88c5\u5f00\u6e90\u7684 Discourse \u8bba\u575b   <\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;margin: 5px 0px;line-height: 1.75;letter-spacing: 0.1em;font-size: 16px;text-align: justify\">\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<pre><code>mkdir&nbsp;\/var\/discourse\r\n<\/code><\/pre>\n<h3><span style=\"font-size: 18px;color: #f48a00;padding-left: 10px;border-left: 4px solid #ffe3a3\">\u514b\u9686Github\u4ed3\u5e93<\/span><\/h3>\n<p style=\"padding-top: 8px;padding-bottom: 8px;margin: 5px 0px;line-height: 1.75;letter-spacing: 0.1em;font-size: 16px;text-align: justify\">\u73b0\u5728\u6211\u4eec\u6765\u514b\u9686 Discourse \u7684 Github \u4ed3\u5e93\u5230\u8fd9\u4e2a\u65b0\u5efa\u7684\u6587\u4ef6\u5939\u3002<\/p>\n<pre><code>git&nbsp;<span style=\"color: #4ec9b0;line-height: 26px\">clone<\/span>&nbsp;https:\/\/github.com\/discourse\/discourse_docker.git&nbsp;\/var\/discourse\r\n<\/code><\/pre>\n<p style=\"padding-top: 8px;padding-bottom: 8px;margin: 5px 0px;line-height: 1.75;letter-spacing: 0.1em;font-size: 16px;text-align: justify\">\u8fdb\u5165\u8fd9\u4e2a\u514b\u9686\u7684\u6587\u4ef6\u5939\u3002<\/p>\n<pre><code><span style=\"color: #4ec9b0;line-height: 26px\">cd<\/span>&nbsp;\/var\/discourse\r\n<\/code><\/pre>\n<p><img decoding=\"async\" style=\"max-width: 100%;border-radius: 5px 5px 5px 5px;margin: 0px 10px auto;width: 100%;height: 100%\" src=\"https:\/\/lxlinux.superbed.verylink.top\/item\/614ea17d2ab3f51d915ae1ec.png\" class=\"aligncenter\">  \u5982\u4f55\u5728 Ubuntu Linux 16.04\u4e0a\u5b89\u88c5\u5f00\u6e90\u7684 Discourse \u8bba\u575b\u5982\u4f55\u5728 Ubuntu Linux 16.04\u4e0a\u5b89\u88c5\u5f00\u6e90\u7684 Discourse \u8bba\u575b   <\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;margin: 5px 0px;line-height: 1.75;letter-spacing: 0.1em;font-size: 16px;text-align: justify\">\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<pre><code>.\/discourse-setup\r\n<\/code><\/pre>\n<p style=\"padding-top: 8px;padding-bottom: 8px;margin: 5px 0px;line-height: 1.75;letter-spacing: 0.1em;font-size: 16px;text-align: justify\"><strong>\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<h3><span style=\"font-size: 18px;color: #f48a00;padding-left: 10px;border-left: 4px solid #ffe3a3\">\u5b89\u88c5\u5411\u5bfc<\/span><\/h3>\n<p style=\"padding-top: 8px;padding-bottom: 8px;margin: 5px 0px;line-height: 1.75;letter-spacing: 0.1em;font-size: 16px;text-align: justify\">\u5b89\u88c5\u5411\u5bfc\u5c06\u4f1a\u95ee\u4f60\u4ee5\u4e0b\u516d\u4e2a\u95ee\u9898\uff1a<\/p>\n<pre><code>Hostname&nbsp;<span style=\"color: #569cd6;line-height: 26px\">for<\/span>&nbsp;your&nbsp;Discourse?\r\nEmail&nbsp;address&nbsp;<span style=\"color: #569cd6;line-height: 26px\">for<\/span>&nbsp;admin&nbsp;account?\r\nSMTP&nbsp;server&nbsp;address?\r\nSMTP&nbsp;user&nbsp;name?\r\nSMTP&nbsp;port&nbsp;[587]:\r\nSMTP&nbsp;password?&nbsp;[]:\r\n<\/code><\/pre>\n<p><img decoding=\"async\" style=\"max-width: 100%;border-radius: 5px 5px 5px 5px;margin: 0px 10px auto;width: 100%;height: 100%\" src=\"https:\/\/lxlinux.superbed.verylink.top\/item\/614ea17f2ab3f51d915ae411.png\" class=\"aligncenter\">  \u5982\u4f55\u5728 Ubuntu Linux 16.04\u4e0a\u5b89\u88c5\u5f00\u6e90\u7684 Discourse \u8bba\u575b\u5982\u4f55\u5728 Ubuntu Linux 16.04\u4e0a\u5b89\u88c5\u5f00\u6e90\u7684 Discourse \u8bba\u575b   <\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;margin: 5px 0px;line-height: 1.75;letter-spacing: 0.1em;font-size: 16px;text-align: justify\">\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<p><img decoding=\"async\" style=\"max-width: 100%;border-radius: 5px 5px 5px 5px;margin: 0px 10px auto;width: 100%;height: 100%\" src=\"https:\/\/lxlinux.superbed.verylink.top\/item\/614ea17b2ab3f51d915adf35.png\" class=\"aligncenter\">  \u5982\u4f55\u5728 Ubuntu Linux 16.04\u4e0a\u5b89\u88c5\u5f00\u6e90\u7684 Discourse \u8bba\u575b\u5982\u4f55\u5728 Ubuntu Linux 16.04\u4e0a\u5b89\u88c5\u5f00\u6e90\u7684 Discourse \u8bba\u575b   <\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;margin: 5px 0px;line-height: 1.75;letter-spacing: 0.1em;font-size: 16px;text-align: justify\">\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<p><img decoding=\"async\" style=\"max-width: 100%;border-radius: 5px 5px 5px 5px;margin: 0px 10px auto;width: 100%;height: 100%\" src=\"https:\/\/lxlinux.superbed.verylink.top\/item\/614ea1822ab3f51d915ae89b.png\" class=\"aligncenter\">  \u5982\u4f55\u5728 Ubuntu Linux 16.04\u4e0a\u5b89\u88c5\u5f00\u6e90\u7684 Discourse \u8bba\u575b\u5982\u4f55\u5728 Ubuntu Linux 16.04\u4e0a\u5b89\u88c5\u5f00\u6e90\u7684 Discourse \u8bba\u575b   <\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;margin: 5px 0px;line-height: 1.75;letter-spacing: 0.1em;font-size: 16px;text-align: justify\">\u5b89\u88c5\u6210\u529f\u4ee5\u540e\u770b\u8d77\u6765\u5e94\u8be5\u50cf\u8fd9\u6837\u3002<\/p>\n<p><img decoding=\"async\" style=\"max-width: 100%;border-radius: 5px 5px 5px 5px;margin: 0px 10px auto;width: 100%;height: 100%\" src=\"https:\/\/lxlinux.superbed.verylink.top\/item\/614ea1802ab3f51d915ae61e.png\" class=\"aligncenter\">  \u5982\u4f55\u5728 Ubuntu Linux 16.04\u4e0a\u5b89\u88c5\u5f00\u6e90\u7684 Discourse \u8bba\u575b\u5982\u4f55\u5728 Ubuntu Linux 16.04\u4e0a\u5b89\u88c5\u5f00\u6e90\u7684 Discourse \u8bba\u575b   <\/p>\n<h3><span style=\"font-size: 18px;color: #f48a00;padding-left: 10px;border-left: 4px solid #ffe3a3\">\u8fdb\u5165\u6d4f\u89c8\u5668\u8bbe\u7f6e<\/span><\/h3>\n<p style=\"padding-top: 8px;padding-bottom: 8px;margin: 5px 0px;line-height: 1.75;letter-spacing: 0.1em;font-size: 16px;text-align: justify\">\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<p><img decoding=\"async\" style=\"max-width: 100%;border-radius: 5px 5px 5px 5px;margin: 0px 10px auto;width: 100%;height: 100%\" src=\"https:\/\/lxlinux.superbed.verylink.top\/item\/614ea1802ab3f51d915ae6e2.png\" class=\"aligncenter\">  \u5982\u4f55\u5728 Ubuntu Linux 16.04\u4e0a\u5b89\u88c5\u5f00\u6e90\u7684 Discourse \u8bba\u575b\u5982\u4f55\u5728 Ubuntu Linux 16.04\u4e0a\u5b89\u88c5\u5f00\u6e90\u7684 Discourse \u8bba\u575b   <\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;margin: 5px 0px;line-height: 1.75;letter-spacing: 0.1em;font-size: 16px;text-align: justify\">\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<p><img decoding=\"async\" style=\"max-width: 100%;border-radius: 5px 5px 5px 5px;margin: 0px 10px auto;width: 100%;height: 100%\" src=\"https:\/\/lxlinux.superbed.verylink.top\/item\/614ea17e2ab3f51d915ae353.png\" class=\"aligncenter\">  \u5982\u4f55\u5728 Ubuntu Linux 16.04\u4e0a\u5b89\u88c5\u5f00\u6e90\u7684 Discourse \u8bba\u575b\u5982\u4f55\u5728 Ubuntu Linux 16.04\u4e0a\u5b89\u88c5\u5f00\u6e90\u7684 Discourse \u8bba\u575b   <\/p>\n<h3><span style=\"font-size: 18px;color: #f48a00;padding-left: 10px;border-left: 4px solid #ffe3a3\">\u7ed3\u8bba<\/span><\/h3>\n<p style=\"padding-top: 8px;padding-bottom: 8px;margin: 5px 0px;line-height: 1.75;letter-spacing: 0.1em;font-size: 16px;text-align: justify\">\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","protected":false},"excerpt":{"rendered":"<p>Discourse \u662f Stack Overflow \u7684\u8054\u5408\u521b\u59cb\u4eba Jeff Atwood \u63a8\u51fa\u7684\u4e00\u4e2a\u65b0\u7684\u5f00\u6e90 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":21017,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,28],"tags":[],"class_list":["post-21016","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/21016","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/comments?post=21016"}],"version-history":[{"count":0,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/21016\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media\/21017"}],"wp:attachment":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media?parent=21016"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/categories?post=21016"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/tags?post=21016"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}