openedx平台搭建過程整理一下,以作記錄
想在校内搭建一個MOOC慕課平台,經比較,選擇開源的openedx系統,開始安裝之旅,本想會很順利,想不到一個星期才搞掂,主要原因還是網速和哪堵牆。
試過三種方法:
1. 下載下傳安裝配置好的虛拟機檔案,直接加載到虛拟機
網址1: https://bitnami.com/stack/edx/virtual-machine
網址2:http://edustack.org/manual/edx/ova-download/
以下内容從以上網址1截取

Version
Size
Checksum
Open edX ficus.3-4 (64-bit)
2 GB
<a target="_blank" href="https://bitnami.com/stack/edx/virtual-machine#">show</a>
<a target="_blank" href="https://bitnami.com/redirect/to/159737/bitnami-edx-ficus.3-4-linux-debian-8-x86_64.ova">Download</a>
這個方法最簡單,但下載下傳流量大,系統配置靈活性差,不是我的風格,嘗試了後就删掉了
2. 從github擷取源碼安裝
網址:https://github.com/edx/configuration
安裝方法參考網址:https://openedx.atlassian.net/wiki/spaces/OpenOPS/pages/146440579/Native+Open+edX+Ubuntu+16.04+64+bit+Installation
環境:Ubuntu server 16.04 64bit
指令序列:
<code>sudo apt</code><code>-</code><code>get update </code><code>-</code><code>y</code>
<code>sudo apt</code><code>-</code><code>get upgrade </code><code>-</code><code>y</code>
<code>sudo reboot</code>
<code># 1. Set the OPENEDX_RELEASE variable:</code>
<code>export OPENEDX_RELEASE</code><code>=</code><code>the</code><code>-</code><code>tag</code><code>/</code><code>you</code><code>-</code><code>want</code><code>-</code><code>to</code><code>-</code><code>install</code>
<code># 2. Bootstrap the Ansible installation:</code>
<code>wget https:</code><code>/</code><code>/</code><code>raw.githubusercontent.com</code><code>/</code><code>edx</code><code>/</code><code>configuration</code><code>/</code><code>$OPENEDX_RELEASE</code><code>/</code><code>util</code><code>/</code><code>install</code><code>/</code><code>ansible</code><code>-</code><code>bootstrap.sh </code><code>-</code><code>O </code><code>-</code> <code>| sudo bash</code>
<code># 3. (Optional) If this is a new installation, randomize the passwords:</code>
<code>wget https:</code><code>/</code><code>/</code><code>raw.githubusercontent.com</code><code>/</code><code>edx</code><code>/</code><code>configuration</code><code>/</code><code>$OPENEDX_RELEASE</code><code>/</code><code>util</code><code>/</code><code>install</code><code>/</code><code>generate</code><code>-</code><code>passwords.sh </code><code>-</code><code>O </code><code>-</code> <code>| bash</code>
<code># 4. Install Open edX:</code>
<code>wget https:</code><code>/</code><code>/</code><code>raw.githubusercontent.com</code><code>/</code><code>edx</code><code>/</code><code>configuration</code><code>/</code><code>$OPENEDX_RELEASE</code><code>/</code><code>util</code><code>/</code><code>install</code><code>/</code><code>sandbox.sh </code><code>-</code><code>O </code><code>-</code> <code>| bash</code>
安裝了無數次,有無數的坑,每次安裝卡在不同的地方,主要是網速和牆的問題,無數次滿懷希望,無數次接近成功,最後都沒走到最後,還是放棄了,建議大陸的電腦慎走此路。
3. 用bitnami的一鍵安裝包
位址:https://bitnami.com/stack/edx/installer
良心制作,把需要的各種基礎軟體都配置好了,打包在一個檔案包裡,下載下傳後一次安裝即順利完成
以下是網址内容copy:
<a target="_blank" href="https://bitnami.com/launch/edx">DEMO IN BROWSER</a>
Bitnami native installers automate the setup of a Bitnami application stack on Linux. Each installer includes all of the software necessary to run out of the box (the stack). The process is simple; just download, click next-next-next and you are done! Bitnami
<a target="_blank" href="https://bitnami.com/stack/edx/README.txt">Readme</a>
<a target="_blank" href="https://bitnami.com/stack/edx/changelog.txt">Changelog</a>
<a target="_blank" href="https://docs.bitnami.com/installer/apps/edx/">Documentation</a>

1 GB
<a target="_blank" href="https://bitnami.com/stack/edx/installer#">show</a>
<a target="_blank" href="https://bitnami.com/redirect/to/159733/bitnami-edx-ficus.3-4-linux-x64-installer.run">Download</a>
另文再介紹簡要修改配置和界面,最後上兩圖為證