{"id":766,"date":"2018-02-08T17:33:53","date_gmt":"2018-02-08T09:33:53","guid":{"rendered":"http:\/\/www.mrtblog.cn\/?p=766"},"modified":"2023-03-06T22:17:40","modified_gmt":"2023-03-06T14:17:40","slug":"%e3%80%90open-edx%e3%80%91ubuntu-16-04-native-%e5%ae%89%e8%a3%85","status":"publish","type":"post","link":"http:\/\/www.mrtblog.cn\/?p=766","title":{"rendered":"\u3010open edx\u3011ubuntu 16.04 native \u5b89\u88c5"},"content":{"rendered":"<div class='epvc-post-count'><span class='epvc-eye'><\/span>  <span class=\"epvc-count\"> 1,705<\/span><span class='epvc-label'> Views<\/span><\/div><p>openedx\u662f\u5f00\u6e90\u7684\u5728\u7ebf\u6559\u80b2\u5e73\u53f0\uff0c\u539f\u672c\u4ee5\u4e3a\u5b89\u88c5\u8d77\u6765\u5f88\u7b80\u5355\uff0c\u4f46\u662f\u5b9e\u9645\u914d\u7f6e\u73af\u5883\u65f6\u51fa\u73b0\u5404\u79cd\u5404\u6837\u610f\u5916\u7684\u9519\u8bef\uff0c\u603b\u7ed3\u4e00\u4e0b\u9047\u5230\u7684\u9519\u8bef\u548c\u89e3\u51b3\u529e\u6cd5\u3002<br \/>\n<strong>\u57fa\u672c\u73af\u5883\uff1a<br \/>\n\u7cfb\u7edf\uff1aUbuntu 16.04.3 LTS \u684c\u9762\u7248<br \/>\n\u5185\u5b58\uff1a12GB\u4ee5\u4e0a\uff08<span style=\"color: #ff0000;\"><strong>\u91cd\u8981<\/strong><\/span>\uff09<br \/>\n\u786c\u76d8\uff1a50GB\u4ee5\u4e0a<br \/>\nVPN\uff1a\u53ef\u4ee5\u7a33\u5b9a\u7ffb\u5899\uff08<span style=\"color: #ff0000;\"><strong>\u975e\u5e38\u91cd\u8981<\/strong><\/span>\uff09<br \/>\nedx\u7248\u672c\uff1aficus.2<br \/>\n<\/strong><br \/>\n\u4e3a\u4ec0\u4e48\u5185\u5b58\u91cd\u8981\uff0c\u56e0\u4e3a\u5728\u5b89\u88c5\u5230\u67d0\u4e2a\u4f4d\u7f6e\u7684\u65f6\u5019openedx\u4f1a\u5728\u540e\u53f0\u542f\u52a8\u591a\u4e2awww-data\u7528\u6237\u7684\u4efb\u52a1\uff0c\u77ac\u95f4\u4f1a\u5360\u636e8GB\u5185\u5b58\uff0c\u6574\u4e2a\u5b89\u88c5\u5b8c\u6210\u540e\u8fd0\u884c\u65f6\u6574\u4f53\u5360\u7528\u4e8610GB\u5185\u5b58\u3002<\/p>\n<p>\u7136\u540e\u662fVPN\uff0c\u5982\u679c\u6ca1\u6709VPN\uff0c\u6211\u4eec\u53ef\u7231\u7684\u56fd\u5185\u9632\u706b\u5899\u4f1a\u8ba9\u4f60\u5728\u4e0b\u8f7d\u65f6\u5361\u7684\u75db\u4e0d\u6b32\u751f\uff0c\u6bd4\u5982github\u4e0b\u8f7d800M\u53ea\u6709\u51e0\u5341kb\/s\uff0capt-get update \u8d85\u65f6\u7b49\u7b49\u3002\u7d27\u63a5\u7740\u53ef\u80fd\u4f1a\u51fa\u73b0\u5404\u79cd\u672a\u77e5\u9519\u8bef\u3002<\/p>\n<p>\u5b89\u88c5\u6b65\u9aa4\uff1a\uff08\u76f4\u63a5\u6309\u7167\u5b98\u65b9\u6765\uff09<\/p>\n<pre class=\"highlight\"><code class=\"language-shell line-numbers\">sudo apt-get update -y\nsudo apt-get upgrade -y\nsudo reboot\n\nexport OPENEDX_RELEASE=open-release\/ficus.2<\/code><\/pre>\n<p>\u4e4b\u540e\u6211\u6ca1\u6709\u5b8c\u5168\u6309\u7167\u81ea\u52a8\u5b89\u88c5\u7684\u529e\u6cd5\uff0c\u800c\u662f\u624b\u52a8\u4e0b\u8f7d\u5b98\u65b9\u7684\u811a\u672c\uff0c\u4fee\u6539\u811a\u672c\u540e\u8fd0\u884c\u811a\u672c\u5b89\u88c5\uff0c\u597d\u5904\u5c31\u662f\u53ef\u4ee5\u5728\u51fa\u73b0\u9519\u8bef\u540e\u4fee\u6539\u811a\u672c\u7ee7\u7eed\u4ece\u8fd9\u91cc\u5b89\u88c5\uff0c\u4e0d\u7528\u4ece\u5934\u518d\u6765\u3002<\/p>\n<pre class=\"highlight\"><code class=\"language-shell line-numbers\">wget https:\/\/raw.githubusercontent.com\/edx\/configuration\/$OPENEDX_RELEASE\/util\/install\/ansible-bootstrap.sh\nwget https:\/\/raw.githubusercontent.com\/edx\/configuration\/$OPENEDX_RELEASE\/util\/install\/generate-passwords.sh\nwget https:\/\/raw.githubusercontent.com\/edx\/configuration\/$OPENEDX_RELEASE\/util\/install\/sandbox.sh\n<\/code><\/pre>\n<p>\u4e0b\u8f7d\u5b8c\u6210\u540e\u624b\u52a8\u6267\u884c\u4e09\u4e2a\u811a\u672c<\/p>\n<pre class=\"highlight\"><code class=\"language-shell line-numbers\">sudo bash ansible-bootstrap.sh\nsudo bash generate-passwords.sh\nsudo bash sandbox.sh\n<\/code><\/pre>\n<p>\u5982\u679c\u8db3\u591f\u5e78\u8fd0\u7684\u8bdd\u5c31\u80fd\u4e00\u76f4\u7b49\u5f85\u5b89\u88c5\u5b8c\u6210\u4e86\u3002\u5f53\u7136\u51e0\u4e4e\u4e00\u5b9a\u4f1a\u51fa\u73b0\u5b89\u88c5\u9519\u8bef\uff0c\u6839\u636e\u8fd9\u4e9b\u9519\u8bef\u5728\u7f51\u4e0a\u627e\u5230\u89e3\u51b3\u65b9\u6cd5\u9010\u4e00\u89e3\u51b3\u3002<\/p>\n<hr>\n<p><strong>\u5173\u4e8eansible-bootstrap.sh\u811a\u672c\uff1a<\/strong><\/p>\n<p>\u56e0\u4e3aansible-bootstrap.sh\u57fa\u672c\u4e0d\u4f1a\u51fa\u9519\uff0c\u53ea\u6709\u4e00\u4e2a\u5730\u65b9\u5728git clone\u65f6\u5982\u679c\u4e0a\u4e00\u6b21\u6267\u884c\u8fc7\u7684\u8bdd\u4f1a\u63d0\u793a\u6587\u4ef6\u5939\u5df2\u5b58\u5728\u4e14\u4e0d\u4e3a\u7a7a\u3002\u628a\u5bf9\u5e94\u4f4d\u7f6e\u7684\u6587\u4ef6\u5939\u5b8c\u5168\u5220\u9664\u5c31\u80fd\u7ee7\u7eed\u3002\u5176\u4ed6\u5730\u65b9\u51fa\u9519\u4e86\u5c31\u53cd\u590d\u6267\u884csudo bash ansible-bootstrap.sh\u76f4\u5230\u4e0d\u4f1a\u51fa\u9519\u4e3a\u6b62\u3002<\/p>\n<p><strong>\u5173\u4e8egenerate-passwords.sh\u811a\u672c\uff1a<\/strong><\/p>\n<p>\u4ece\u6ca1\u51fa\u8fc7\u9519\uff0c\u4ea7\u751f\u521d\u59cb\u5bc6\u7801\u7528\u7684\u3002<\/p>\n<p><strong>\u5173\u4e8esandbox.sh\u811a\u672c\uff1a<\/strong><\/p>\n<p>\u770b\u5230\u6700\u540e\u4e00\u884c\u7684\u4ee3\u7801\uff1a<\/p>\n<pre class=\"highlight\"><code class=\"language-shell line-numbers\">cd \/var\/tmp\/configuration\/playbooks &amp;&amp; sudo -E ansible-playbook -c local .\/edx_sandbox.yml -i &quot;localhost,&quot; $EXTRA_VARS\n<\/code><\/pre>\n<p>\u51fa\u9519\u540e\u4fee\u6539\u8fd9\u4e00\u6761\u8bed\u53e5\u53ef\u4ee5\u4ece\u4e2d\u65ad\u5904\u5f00\u59cb\u7ee7\u7eed\u5b89\u88c5\u3002\u53ef\u5728$EXTRA_VARS\u540e\u6dfb\u52a0\u53c2\u6570\uff08\u6ce8\u610f\u7528\u7a7a\u683c\u9694\u5f00\uff09\uff1a<\/p>\n<pre class=\"highlight\"><code class=\"language-shell line-numbers\">-vvv&lt;strong&gt;\uff08\u5b89\u88c5\u65f6\u663e\u793a\u5168\u90e8\u5b89\u88c5\u4fe1\u606f\uff09&lt;\/strong&gt;\n--start-at-task=&#039;\u4f60\u8981\u5f00\u59cb\u7684\u4efb\u52a1\u540d&#039;&lt;strong&gt;\uff08\u4ece\u6307\u5b9a\u4efb\u52a1\u5f00\u59cb\u4e2d\u65ad\u5b89\u88c5\uff09&lt;\/strong&gt;\nCOMMON_PYPI_MIRROR_URL=&#039;pip\u955c\u50cf\u6e90\u5730\u5740&#039;&lt;strong&gt;\uff08\u4fee\u6539pip\u955c\u50cf\u6e90\uff09\n&lt;\/strong&gt;<\/code><\/pre>\n<p>\u4e2d\u65ad\u5b89\u88c5\u65f6\uff0c\u6bd4\u5982\u6267\u884c\u4e866\u4e2atask\uff1a<br \/>\ncommon_utils : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style=\"color: #00ff00;\">\u3010ok\u3011<\/span><br \/>\ncommon_utils : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00ff00;\">\u3010ok\u3011<\/span><br \/>\nedxapp : code sandbox | Use libblas.so.3 in Ubuntu&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00ff00;\">\u3010ok\u3011<\/span><br \/>\nedxapp : code sandbox | Check which `liblapac` to use&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00ff00;\">\u3010ok\u3011<\/span><br \/>\nedxapp : code sandbox | Use liblapack.so.3gf in Ubuntu&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00ff00;\">\u3010ok\u3011<\/span><br \/>\nedxapp : checkout edx-platform repo into \/edx\/app\/edxapp\/edx-platform&nbsp; &nbsp; <span style=\"color: #ff0000;\">\u3010failed\u3011<\/span><br \/>\n\u6700\u540e\u4e00\u6b65\u51fa\u9519\u4e86\uff0c\u90a3\u4e48\u6211\u4eec\u5c31\u5e94\u8be5\u4eceedxapp : code sandbox | Use libblas.so.3 in Ubuntu<br \/>\n\u8fd9\u4e2a\u4efb\u52a1\u91cd\u65b0\u5f00\u59cb\uff0c\u4e0d\u80fd\u76f4\u63a5\u4eceedxapp : checkout edx-platform repo into \/edx\/app\/edxapp\/edx-platform<br \/>\n\u5f00\u59cb\u3002<strong>\u6ce8\u610ftask\u540d\u4e00\u4e2a\u7a7a\u683c\u90fd\u4e0d\u80fd\u591a<\/strong><\/p>\n<p>\u66f4\u597d\u7684\u529e\u6cd5\u662f\u627e\u5230\u5bf9\u5e94\u7684\u811a\u672c\uff0c\u5b9e\u9645\u8fd0\u884c\u9700\u8981\u7684yml\u6587\u4ef6\u90fd\u5728\u76ee\u5f55<strong>\/var\/tmp\/configuration\/playbooks\/roles<\/strong>\u91cc\u9762\uff0c\u6bcf\u4e00\u4e2a\u6587\u4ef6\u5939\u5bf9\u5e94\u4e00\u4e2a\u5927\u7684task\uff0c\u627e\u5230\u8fd9\u4e2atask\u6587\u4ef6\u5939\u5185\u7684<strong>tasks\/main.yml\uff08\u8fd9\u91cc\u662f\u62ffedxapp\u4e3e\u4f8b\uff09\uff0c<\/strong>\u4ece\u8fd9\u4e2ayml\u6587\u4ef6\u7b2c\u4e00\u4e2a\u4efb\u52a1\u540d\u5f00\u59cb\u5c31\u6ca1\u9519\u4e86<\/p>\n<p><a href=\"http:\/\/www.mrtblog.cn\/wp-content\/uploads\/2018\/02\/edx1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-767\" src=\"http:\/\/www.mrtblog.cn\/wp-content\/uploads\/2018\/02\/edx1.png\" alt=\"\" width=\"606\" height=\"261\" srcset=\"http:\/\/www.mrtblog.cn\/wp-content\/uploads\/2018\/02\/edx1.png 606w, http:\/\/www.mrtblog.cn\/wp-content\/uploads\/2018\/02\/edx1-300x129.png 300w\" sizes=\"auto, (max-width: 606px) 100vw, 606px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.mrtblog.cn\/wp-content\/uploads\/2018\/02\/edx2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-768\" src=\"http:\/\/www.mrtblog.cn\/wp-content\/uploads\/2018\/02\/edx2.png\" alt=\"\" width=\"721\" height=\"295\" srcset=\"http:\/\/www.mrtblog.cn\/wp-content\/uploads\/2018\/02\/edx2.png 721w, http:\/\/www.mrtblog.cn\/wp-content\/uploads\/2018\/02\/edx2-300x123.png 300w\" sizes=\"auto, (max-width: 721px) 100vw, 721px\" \/><\/a><\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\u51fa\u73b0\u8fd9\u4e2a\u754c\u9762\u8868\u793a\u53ef\u4ee5\u4f7f\u7528\u4e86\uff0c\u7136\u540e\u7528\u9ed8\u8ba4\u7684\u51e0\u4e2a\u8d26\u6237\u767b\u5f55\u6559\u5e08\u7aef\u548c\u5b66\u751f\u7aef\uff0c\u521b\u5efa\u548c\u52a0\u5165\u8bfe\u7a0b\u770b\u4e00\u770b\u6709\u6ca1\u6709\u95ee\u9898\uff0c\u5982\u679c\u6709\u95ee\u9898\u518d\u53bb\u627e\u627e\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<p><a href=\"http:\/\/www.mrtblog.cn\/wp-content\/uploads\/2018\/02\/20140804133354074.png\"><\/a><a href=\"http:\/\/www.mrtblog.cn\/wp-content\/uploads\/2018\/02\/edx7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-775\" src=\"http:\/\/www.mrtblog.cn\/wp-content\/uploads\/2018\/02\/edx7.png\" alt=\"\" width=\"1279\" height=\"701\" srcset=\"http:\/\/www.mrtblog.cn\/wp-content\/uploads\/2018\/02\/edx7.png 1279w, http:\/\/www.mrtblog.cn\/wp-content\/uploads\/2018\/02\/edx7-300x164.png 300w, http:\/\/www.mrtblog.cn\/wp-content\/uploads\/2018\/02\/edx7-768x421.png 768w, http:\/\/www.mrtblog.cn\/wp-content\/uploads\/2018\/02\/edx7-1024x561.png 1024w\" sizes=\"auto, (max-width: 1279px) 100vw, 1279px\" \/><\/a><\/p>\n<hr>\n<h3>\u4e0d\u7528VPN\u8fd8\u662f\u60f3\u5b89\u88c5\u7684\u529e\u6cd5\uff1a<\/h3>\n<p>\u66f4\u6539apt-get\u6e90\u4e3a\u6e05\u534e\u6e90,\u4fee\u6539\/etc\/apt\/sources.list<a href=\"http:\/\/www.mrtblog.cn\/wp-content\/uploads\/2018\/02\/edx3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-769\" src=\"http:\/\/www.mrtblog.cn\/wp-content\/uploads\/2018\/02\/edx3.png\" alt=\"\" width=\"890\" height=\"409\" srcset=\"http:\/\/www.mrtblog.cn\/wp-content\/uploads\/2018\/02\/edx3.png 890w, http:\/\/www.mrtblog.cn\/wp-content\/uploads\/2018\/02\/edx3-300x138.png 300w, http:\/\/www.mrtblog.cn\/wp-content\/uploads\/2018\/02\/edx3-768x353.png 768w\" sizes=\"auto, (max-width: 890px) 100vw, 890px\" \/><\/a><\/p>\n<p>\u66f4\u6539pip\u955c\u50cf\u7ad9\uff0c\u53c2\u8003sandbox.sh\u811a\u672c\u90e8\u5206\u3002<br \/>\n\u5373\u4f7f\u8fd9\u6837\uff0c\u4e5f\u4e0d\u80fd\u4fdd\u8bc1\u80fd\u5b89\u88c5\u5b8c\u6210\uff0c\u56e0\u4e3a\u5728\u8fc7\u7a0b\u4e2d\u5f88\u5bb9\u6613\u9047\u5230\u88ab\u5899\u7684\u60c5\u51b5\uff0c\u800c\u4e14\u9f9f\u901f\u4e0b\u8f7d\uff0c\u6709\u8010\u5fc3\u7684\u5c31\u8bd5\u8bd5\u5427\uff0c\u53cd\u6b63\u6211\u8bd5\u4e86\u4e00\u4e2a\u793c\u62dc\u6700\u540e\u90fd\u6ca1\u6709\u8bd5\u6210\u529f\u3002\u4e00\u6012\u4e4b\u4e0b\u4e70\u4e86\u4e2avpn\uff0c\u4e00\u5207\u901a\u7545&#8230;<\/p>\n<h3>\u5e38\u89c1\u9519\u8bef\uff1a<\/h3>\n<p><strong>apt-get update<\/strong><br \/>\n<span style=\"color: #ff0000;\">&#8220;msg&#8221;: &#8220;Failed to update apt cache.&#8221;<\/span><br \/>\n\u4e00\u822c\u7528\u4e86vpn\u5c31\u4e0d\u4f1a\u6709\u8fd9\u4e2a\u95ee\u9898&#8230;\u8bbf\u95ee\u67d0\u4e2a\u5916\u56fd\u7f51\u7ad9\u4e4b\u524d\u53ef\u4ee5\uff0c\u5ffd\u7136\u4e0d\u884c\u4e86\u5c31\u4f1a\u51fa\u8fd9\u4e2a\u9519\uff0c\u68c0\u67e5sudo apt-get update\u662f\u5426\u6709\u4e0d\u80fd\u8fde\u63a5\u5230\u7684\u8fde\u63a5\uff0c\u5982\u679c\u4e0d\u662f\u5fc5\u987b\u7684\u53ef\u4ee5\u628a\u8fd9\u4e00\u6761\u66f4\u65b0\u94fe\u63a5\u5220\u9664\u3002\u8fd9\u4e2aother software\u5c31\u662f\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u81ea\u52a8\u6dfb\u52a0\u7684\uff0c\u6bd4\u5982ppa.edx.org\u8fd9\u4e2a\u94fe\u63a5\uff0c\u524d\u9762\u7684task\u53ef\u80fd\u901a\u8fc7\uff0c\u540e\u9762\u7684task\u4e0d\u51d1\u5de7\u7f51\u7edc\u4e0d\u901a\uff0c\u5c31\u4f1a\u76f4\u63a5\u62a5\u9519\uff0c\u6b64\u65f6\u628a\u8fd9\u4e2a\u5bf9\u52fe\u53bb\u6389\u5373\u53ef\u3002<a href=\"http:\/\/www.mrtblog.cn\/wp-content\/uploads\/2018\/02\/edx5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-771\" src=\"http:\/\/www.mrtblog.cn\/wp-content\/uploads\/2018\/02\/edx5.png\" alt=\"\" width=\"1079\" height=\"547\" srcset=\"http:\/\/www.mrtblog.cn\/wp-content\/uploads\/2018\/02\/edx5.png 1079w, http:\/\/www.mrtblog.cn\/wp-content\/uploads\/2018\/02\/edx5-300x152.png 300w, http:\/\/www.mrtblog.cn\/wp-content\/uploads\/2018\/02\/edx5-768x389.png 768w, http:\/\/www.mrtblog.cn\/wp-content\/uploads\/2018\/02\/edx5-1024x519.png 1024w\" sizes=\"auto, (max-width: 1079px) 100vw, 1079px\" \/><\/a><\/p>\n<p><strong>edxapp : checkout edx-platform<\/strong><br \/>\n<span style=\"color: #ff0000;\">RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054<\/span><br \/>\n\u56e0\u4e3agit clone\u7684\u7f13\u5b58\u53d7\u5230\u9650\u5236\uff0c\u5927\u6982\u4e0b\u8f7d300-500M\u65f6\u62a5\u9519\uff0c\u4fee\u6539\u6700\u5927\u7f13\u5b58\u91cf\u5373\u53ef\uff0c\u53ef\u4ee5\u6539\u7684\u66f4\u5927\u59821000000000<br \/>\n<span style=\"color: #00ff00;\"><em>git config &#8211;global http.postBuffer 524288000<\/em><\/span><\/p>\n<p>\u5982\u679c\u662f\u56fd\u5185\u7f51\u5b9e\u5728\u4e0b\u4e0d\u4e0b\u6765\uff0c\u5c31\u7528\u5176\u4ed6\u529e\u6cd5\u4e0b\u8f7d\u8fd9\u4e2ahttps:\/\/github.com\/edx\/edx-platform\u7684\u5168\u90e8\u6587\u4ef6\u7136\u540e\u79fb\u52a8\u5230\/edx\/app\/edxapp\/edx-platform\u76ee\u5f55\u4e0b\uff0c\u628a\u8fd9\u4e2a\u76ee\u5f55\u7684\u6240\u6709\u6587\u4ef6\u6743\u9650\u8bbe\u4e3a777\uff08\u4e0d\u5efa\u8bae\u8fd9\u4e48\u505a\uff0c\u56e0\u4e3a\u8fd9\u6709\u53ef\u80fd\u4f1a\u5bfc\u81f4\u90e8\u5206\u8f6f\u8fde\u63a5\u4e22\u5931\uff0c\u5fc5\u987b\u624b\u52a8\u7ed9\u6dfb\u52a0\uff0c\u4e0d\u8981\u95ee\u6211\u662f\u600e\u4e48\u77e5\u9053\u7684TAT\uff09<\/p>\n<pre class=\"highlight\"><code class=\"language-shell line-numbers\">\nsudo chmod 777 -R \/edx\/app\/edxapp\/edx-platform\nsudo chmod 777 -R \/edx\/app\/edxapp\/edx-platform\/.git\nsudo chmod 777 -R .git\/objects\n\n&lt;b&gt;git_clone : checkout code over https&lt;\/b&gt;\n&lt;span style=&quot;color: #ff0000;&quot;&gt;the output has been hidden due to the fact that &#039;no_log:true&#039; was specified for this result&lt;\/span&gt;<\/code><\/pre>\n<p>\u6839\u636e\u63d0\u793a\uff0c\u8fd9\u91cc\u9519\u8bef\u4fe1\u606f\u6ca1\u6709\u663e\u793a\u51fa\u6765\uff0c\u627e\u5230\u5bf9\u5e94\u7684yml\u811a\u672c\uff0c\u628a\u5176\u5185\u5bb9\u4fee\u6539\u4e3a<span style=\"color: #00ff00;\">no_log : false<\/span>\u7136\u540e\u518d\u6839\u636e\u9519\u8bef\u4fe1\u606f\u89e3\u51b3\u95ee\u9898\uff0c\u6211\u8fd9\u91cc\u662f\u56e0\u4e3a\u4e4b\u524d\u6587\u4ef6\u4e0b\u8f7d\u4e0d\u5b8c\u5168\u7684\u95ee\u9898\uff0c\u6839\u636e\u540e\u6765\u7684\u63d0\u793a\u5220\u9664\u5bf9\u5e94\u6587\u4ef6\u5939\u89e3\u51b3\u95ee\u9898\u3002<a href=\"http:\/\/www.mrtblog.cn\/wp-content\/uploads\/2018\/02\/edx4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-770\" src=\"http:\/\/www.mrtblog.cn\/wp-content\/uploads\/2018\/02\/edx4.png\" alt=\"\" width=\"570\" height=\"402\" srcset=\"http:\/\/www.mrtblog.cn\/wp-content\/uploads\/2018\/02\/edx4.png 570w, http:\/\/www.mrtblog.cn\/wp-content\/uploads\/2018\/02\/edx4-300x212.png 300w\" sizes=\"auto, (max-width: 570px) 100vw, 570px\" \/><\/a><\/p>\n<p><strong>edxapp : migrate<\/strong><br \/>\n<span style=\"color: #ff0000;\">\u4e00\u5927\u5806\u9519\u8bef\u4fe1\u606f<\/span><br \/>\n\u8fd9\u91cc\u51fa\u73b0\u9519\u8bef\u8bf7\u68c0\u67e5\u662f\u5426\u5220\u9664\u4e86sandbox.sh\u7684$EXTRA_VARS\u76f8\u5173\u53c2\u6570\uff0c\u7406\u8bba\u4e0a\u8fd9\u91cc\u4e5f\u4e0d\u4f1a\u51fa\u73b0\u9519\u8bef\u3002\u6211\u5728\u8fd9\u91cc\u51fa\u73b0\u9519\u8bef\u662f\u56e0\u4e3a\u4e00\u5f00\u59cb\u9519\u8bef\u7684\u4f7f\u7528\u4e86\u57fa\u4e8eubuntu12\u624b\u52a8\u5b89\u88c5\u7684\u65b9\u6cd5\u4e22\u5931\u4e86\u8fd9\u90e8\u5206\u53c2\u6570\u3002<\/p>\n<p><strong>insights : run collectstatics<\/strong><\/p>\n<p>\u56e0\u4e3a\u65f6\u95f4\u592a\u4e45\u8bb0\u4e0d\u6e05\u9519\u8bef\u4e86\uff0c\u4f3c\u4e4e\u662f\u4e4b\u524djdk\u6ca1\u80fd\u6b63\u786e\u5b89\u88c5\uff0c\u68c0\u67e5\/tmp\u4e0bjdk\u6587\u4ef6\u662f\u5426\u6709\u95ee\u9898\uff0c\u6216\u8005\u53c2\u8003\u8fd9\u7bc7\u535a\u5ba2<a href=\"http:\/\/blog.csdn.net\/jenyzhang\/article\/details\/52862670\">http:\/\/blog.csdn.net\/jenyzhang\/article\/details\/52862670<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1,705 Viewsopenedx\u662f\u5f00\u6e90\u7684\u5728\u7ebf\u6559\u80b2\u5e73\u53f0\uff0c\u539f\u672c\u4ee5\u4e3a\u5b89\u88c5\u8d77\u6765\u5f88\u7b80\u5355\uff0c\u4f46\u662f\u5b9e\u9645\u914d\u7f6e\u73af\u5883\u65f6\u51fa\u73b0\u5404\u79cd\u5404 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[92],"tags":[],"class_list":["post-766","post","type-post","status-publish","format-standard","hentry","category-project"],"_links":{"self":[{"href":"http:\/\/www.mrtblog.cn\/index.php?rest_route=\/wp\/v2\/posts\/766","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.mrtblog.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.mrtblog.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.mrtblog.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.mrtblog.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=766"}],"version-history":[{"count":1,"href":"http:\/\/www.mrtblog.cn\/index.php?rest_route=\/wp\/v2\/posts\/766\/revisions"}],"predecessor-version":[{"id":776,"href":"http:\/\/www.mrtblog.cn\/index.php?rest_route=\/wp\/v2\/posts\/766\/revisions\/776"}],"wp:attachment":[{"href":"http:\/\/www.mrtblog.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=766"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.mrtblog.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=766"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.mrtblog.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}