{"id":135277,"date":"2019-02-25T10:38:03","date_gmt":"2019-02-25T02:38:03","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=135277"},"modified":"2019-01-30T09:40:11","modified_gmt":"2019-01-30T01:40:11","slug":"fedora-magazine","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/fedora-magazine.html","title":{"rendered":"Fedora 28 \u4e2d\u7684\u6a21\u5757"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u6700\u8fd1 Fedora Magazine \u4e2d\u9898\u4e3a Fedora 28 \u670d\u52a1\u5668\u7248\u7684\u6a21\u5757\u5316\u5728\u89e3\u91ca Fedora 28 \u4e2d\u7684\u6a21\u5757\u5316\u65b9\u9762\u505a\u5f97\u5f88\u597d\u3002\u5b83\u8fd8\u7ed9\u51fa\u4e86\u4e00\u4e9b\u793a\u4f8b\u6a21\u5757\u5e76\u89e3\u91ca\u4e86\u5b83\u4eec\u89e3\u51b3\u7684\u95ee\u9898\u3002\u672c\u6587\u5c06\u5176\u4e2d\u4e00\u4e2a\u6a21\u5757\u7528\u4e8e\u5b9e\u9645\u5e94\u7528\uff0c\u5305\u62ec\u4f7f\u7528\u6a21\u5757\u5b89\u88c5\u8bbe\u7f6e Review Board 3.0\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
\u5165\u95e8<\/strong><\/div>\n

\u60f3\u8981\u7ee7\u7eed\u5e76\u4f7f\u7528\u6a21\u5757\uff0c\u4f60\u9700\u8981\u4e00\u4e2a Fedora 28 \u670d\u52a1\u5668\u7248\u5e76\u62e5\u6709 sudo \u7ba1\u7406\u6743\u9650\u3002\u53e6\u5916\uff0c\u8fd0\u884c\u6b64\u547d\u4ee4\u4ee5\u786e\u4fdd\u7cfb\u7edf\u4e0a\u7684\u6240\u6709\u8f6f\u4ef6\u5305\u90fd\u662f\u6700\u65b0\u7684\uff1a<\/p>\n

sudo dnf -y update<\/pre>\n

\u867d\u7136\u4f60\u53ef\u4ee5\u5728 Fedora 28 \u975e\u670d\u52a1\u5668\u7248\u672c\u4e0a\u4f7f\u7528\u6a21\u5757\uff0c\u4f46\u8bf7\u6ce8\u610f\u4e0a\u4e00\u7bc7\u6587\u7ae0\u8bc4\u8bba\u4e2d\u63d0\u5230\u7684\u8b66\u544a\u3002<\/p>\n

\u68c0\u67e5\u6a21\u5757<\/strong><\/div>\n

\u9996\u5148\uff0c\u770b\u770b Fedora 28 \u53ef\u7528\u7684\u6a21\u5757\u3002\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

dnf module list<\/pre>\n

\u8f93\u51fa\u5217\u51fa\u4e86\u4e00\u7ec4\u6a21\u5757\uff0c\u8fd9\u4e9b\u6a21\u5757\u663e\u793a\u4e86\u6bcf\u4e2a\u6a21\u5757\u7684\u5173\u8054\u7684\u6d41\u3001\u7248\u672c\u548c\u53ef\u7528\u5b89\u88c5\u914d\u7f6e\u6587\u4ef6\u3002\u6a21\u5757\u6d41\u65c1\u8fb9\u7684 [d] <\/span>\u8868\u793a\u5b89\u88c5\u547d\u540d\u6a21\u5757\u65f6\u4f7f\u7528\u7684\u9ed8\u8ba4\u6d41\u3002<\/p>\n

\u8f93\u51fa\u8fd8\u663e\u793a\u5927\u591a\u6570\u6a21\u5757\u90fd\u6709\u540d\u4e3a default <\/span>\u7684\u914d\u7f6e\u6587\u4ef6\u3002\u8fd9\u4e0d\u662f\u5de7\u5408\uff0c\u56e0\u4e3a default <\/span>\u662f\u9ed8\u8ba4\u914d\u7f6e\u6587\u4ef6\u4f7f\u7528\u7684\u540d\u79f0\u3002<\/p>\n

\u8981\u67e5\u770b\u6240\u6709\u8fd9\u4e9b\u6a21\u5757\u7684\u6765\u6e90\uff0c\u8bf7\u8fd0\u884c\uff1a<\/p>\n

dnf repolist<\/pre>\n

\u4e0e\u901a\u5e38\u7684 fedora \u548c\u66f4\u65b0\u5305\u4ed3\u5e93\u4e00\u8d77\uff0c\u8f93\u51fa\u8fd8\u663e\u793a\u4e86 fedora-modular \u548c updates-modular \u4ed3\u5e93\u3002<\/p>\n

\u4ecb\u7ecd\u58f0\u660e\u4f60\u5c06\u8bbe\u7f6e Review Board 3.0\u3002\u4e5f\u8bb8\u540d\u4e3a reviewboard \u7684\u6a21\u5757\u5728\u4e4b\u524d\u7684\u8f93\u51fa\u4e2d\u5f15\u8d77\u4e86\u4f60\u7684\u6ce8\u610f\u3002\u63a5\u4e0b\u6765\uff0c\u8981\u83b7\u53d6\u6709\u5173\u8be5\u6a21\u5757\u7684\u4e00\u4e9b\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

dnf module info reviewboard<\/pre>\n

\u6839\u636e\u63cf\u8ff0\u786e\u8ba4\u5b83\u662f Review Board \u6a21\u5757\uff0c\u4f46\u4e5f\u8bf4\u660e\u662f 2.5 \u7684\u6d41\u3002\u7136\u800c\u4f60\u60f3\u8981 3.0 \u7684\u3002\u67e5\u770b\u53ef\u7528\u7684 reviewboard \u6a21\u5757\uff1a<\/p>\n

dnf module list reviewboard<\/pre>\n

2.5 \u65c1\u8fb9\u7684 [d]<\/span> \u8868\u793a\u5b83\u88ab\u914d\u7f6e\u4e3a reviewboard \u7684\u9ed8\u8ba4\u6d41\u3002\u56e0\u6b64\uff0c\u8bf7\u660e\u786e\u4f60\u60f3\u8981\u7684\u6d41\uff1a<\/p>\n

dnf module info reviewboard:3.0<\/pre>\n

\u6709\u5173 reviewboard:3.0 \u6a21\u5757\u7684\u66f4\u591a\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u6dfb\u52a0\u8be6\u7ec6\u9009\u9879\uff1a<\/p>\n

dnf module info reviewboard:3.0 -v<\/p>\n

\u5b89\u88c5 Review Board 3.0 \u6a21\u5757<\/strong><\/div>\n

\u73b0\u5728\u4f60\u5df2\u7ecf\u8ddf\u8e2a\u4e86\u6240\u9700\u7684\u6a21\u5757\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\u5b83\uff1a<\/p>\n

sudo dnf -y module install reviewboard:3.0<\/pre>\n

\u8f93\u51fa\u663e\u793a\u5df2\u5b89\u88c5 ReviewBoard \u4ee5\u53ca\u5176\u4ed6\u51e0\u4e2a\u4f9d\u8d56\u8f6f\u4ef6\u5305\uff0c\u5176\u4e2d\u5305\u62ec django:1.6 \u6a21\u5757\u4e2d\u7684\u51e0\u4e2a\u8f6f\u4ef6\u5305\u3002\u5b89\u88c5\u8fd8\u542f\u7528\u4e86 reviewboard:3.0 \u6a21\u5757\u548c\u76f8\u5173\u7684 django:1.6 \u6a21\u5757\u3002<\/p>\n

\u63a5\u4e0b\u6765\uff0c\u8981\u67e5\u770b\u5df2\u542f\u7528\u7684\u6a21\u5757\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

dnf module list --enabled<\/pre>\n

\u8f93\u51fa\u4e2d\uff0c[e]<\/span> \u8868\u793a\u5df2\u542f\u7528\u7684\u6d41\uff0c[i] <\/span>\u8868\u793a\u5df2\u5b89\u88c5\u7684\u914d\u7f6e\u3002\u5bf9\u4e8e reviewboard:3.0 \u6a21\u5757\uff0c\u5df2\u5b89\u88c5\u9ed8\u8ba4\u914d\u7f6e\u3002\u4f60\u53ef\u4ee5\u5728\u5b89\u88c5\u6a21\u5757\u65f6\u6307\u5b9a\u5176\u4ed6\u914d\u7f6e\u3002\u5b9e\u9645\u4e0a\uff0c\u4f60\u4ecd\u7136\u53ef\u4ee5\u5b89\u88c5\u5b83\uff0c\u800c\u4e14\u8fd9\u6b21\u4f60\u4e0d\u9700\u8981\u6307\u5b9a 3.0\uff0c\u56e0\u4e3a\u5b83\u5df2\u7ecf\u542f\u7528\uff1a<\/p>\n

sudo dnf -y module install reviewboard\/server<\/pre>\n

\u4f46\u662f\uff0c\u5b89\u88c5 reviewboard:3.0\/server \u914d\u7f6e\u975e\u5e38\u5e73\u5e38\u3002reviewboard:3.0 \u6a21\u5757\u7684\u670d\u52a1\u5668\u914d\u7f6e\u4e0e\u9ed8\u8ba4\u914d\u7f6e\u6587\u4ef6\u76f8\u540c \u2014\u2014 \u56e0\u6b64\u65e0\u9700\u5b89\u88c5\u3002<\/p>\n

\u542f\u52a8 Review Board \u7f51\u7ad9<\/strong><\/div>\n

\u73b0\u5728\u5df2\u7ecf\u5b89\u88c5\u4e86 Review Board 3.0 \u6a21\u5757\u53ca\u5176\u76f8\u5173\u8f6f\u4ef6\u5305\uff0c\u521b\u5efa\u4e00\u4e2a\u672c\u5730\u8fd0\u884c\u7684 Review Board \u7f51\u7ad9\u3002\u65e0\u9700\u89e3\u91ca\uff0c\u8bf7\u590d\u5236\u5e76\u7c98\u8d34\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

\r\nsudo rb-site install --noinput \\\r\n--domain-name=localhost --db-type=sqlite3 \\\r\n--db-name=\/var\/www\/rev.local\/data\/reviewboard.db \\\r\n--admin-user=rbadmin --admin-password=secret \\\r\n\/var\/www\/rev.local\r\nsudo chown -R apache \/var\/www\/rev.local\/htdocs\/media\/uploaded \\\r\n\/var\/www\/rev.local\/data\r\nsudo ln -s \/var\/www\/rev.local\/conf\/apache-wsgi.conf \\\r\n\/etc\/httpd\/conf.d\/reviewboard-localhost.conf\r\nsudo setsebool -P httpd_can_sendmail=1 httpd_can_network_connect=1 \\\r\nhttpd_can_network_memcache=1 httpd_unified=1\r\nsudo systemctl enable --now httpd<\/pre>\n

\u73b0\u5728\u542f\u52a8\u7cfb\u7edf\u4e2d\u7684 Web \u6d4f\u89c8\u5668\uff0c\u6253\u5f00 http:\/\/localhost\uff0c\u7136\u540e\u4eab\u53d7\u5168\u65b0\u7684 Review Board \u7f51\u7ad9\uff01\u8981\u4ee5 Review Board \u7ba1\u7406\u5458\u8eab\u4efd\u767b\u5f55\uff0c\u8bf7\u4f7f\u7528\u4e0a\u9762 rb-site <\/span>\u547d\u4ee4\u4e2d\u7684\u7528\u6237 ID \u548c\u5bc6\u7801\u3002<\/p>\n

\u6a21\u5757\u6e05\u7406<\/strong><\/div>\n

\u5b8c\u6210\u540e\u6e05\u7406\u662f\u4e2a\u597d\u4e60\u60ef\u3002\u4e3a\u6b64\uff0c\u5220\u9664 Review Board \u6a21\u5757\u548c\u7ad9\u70b9\u76ee\u5f55\uff1a<\/p>\n

\r\nsudo dnf -y module remove reviewboard:3.0\r\nsudo rm -rf \/var\/www\/rev.local<\/pre>\n
\u603b\u7ed3<\/strong><\/div>\n

\u73b0\u5728\u4f60\u5df2\u7ecf\u63a2\u7d22\u4e86\u5982\u4f55\u68c0\u6d4b\u548c\u7ba1\u7406 Review Board \u6a21\u5757\uff0c\u90a3\u4e48\u53bb\u4f53\u9a8c Fedora 28 \u4e2d\u63d0\u4f9b\u7684\u5176\u4ed6\u6a21\u5757\u5427\u3002<\/p>\n

\u5728 Fedora \u6a21\u5757\u5316\u7f51\u7ad9\u4e0a\u4e86\u89e3\u6709\u5173\u5728 Fedora 28 \u4e2d\u4f7f\u7528\u6a21\u5757\u7684\u66f4\u591a\u4fe1\u606f\u3002dnf \u624b\u518c\u9875\u4e2d\u7684 module <\/span>\u547d\u4ee4\u90e8\u5206\u4e5f\u5305\u542b\u4e86\u6709\u7528\u7684\u4fe1\u606f\u3002<\/p>\n


\n

via:\u00a0https:\/\/fedoramagazine.org\/working-modules-fedora-28\/<\/a><\/p>\n

\u4f5c\u8005\uff1aMerlin Mathesius<\/a>\u00a0\u9009\u9898\uff1alujun9972<\/a>\u00a0\u8bd1\u8005\uff1ageekpi<\/a>\u00a0\u6821\u5bf9\uff1awxy<\/a><\/p>\n

\u672c\u6587\u7531\u00a0LCTT<\/a>\u00a0\u539f\u521b\u7f16\u8bd1\uff0cLinux\u4e2d\u56fd<\/a>\u00a0\u8363\u8a89\u63a8\u51fa<\/p>\n","protected":false},"excerpt":{"rendered":"

\u60f3\u8981\u7ee7\u7eed\u5e76\u4f7f\u7528\u6a21\u5757\uff0c\u4f60\u9700\u8981\u4e00\u4e2a Fedora 28 \u670d\u52a1\u5668\u7248\u5e76\u62e5\u6709 sudo \u7ba1\u7406\u6743\u9650\u3002\u53e6\u5916\uff0c\u8fd0\u884c\u6b64\u547d\u4ee4\u4ee5\u786e\u4fdd […]<\/p>\n","protected":false},"author":1890,"featured_media":135278,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-135277","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/135277","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\/1890"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=135277"}],"version-history":[{"count":6,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/135277\/revisions"}],"predecessor-version":[{"id":135500,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/135277\/revisions\/135500"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/135278"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=135277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=135277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=135277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}