open edX稳定版基于Ubuntu 16.04 64bit 官方自动安装
openedx作为哈佛大学等美国顶尖大学推出的在线教育平台,在全世界有着广泛的应用。相较于同类的基于php的moodle,openedx核心代码基于python的django框架。现在,openedx在国内越来越普及,有成熟的商业化产品(清华的学堂在线),也有面向各大院校的免费教育产品(edustack)。
服务器要求
建议配置一台服务器可以支持100多名学生注册学习。
注意: 单台服务器上运行MySQL, Memcache, Mongo, nginx, 及所有的 Open edX services (LMS, Studio, Forums, ORA,等等) 。每个服务可以单独运行在一台服务器上。
- Ubuntu 16.04 amd64 (需要oraclejdk)。
- 最小内存: 8GB
- 至少2.00GHz的 CPU
- 最小硬盘空间:25GB,建议使用50GB
开始安装
启动你的Ubuntu 16.04 64-bit服务器并使用有sudo权限的账户登陆。
更新服务器资源:
1 2 3 |
sudo apt-get update sudo apt-get upgrade -y sudo reboot |
自动安装
open edX稳定版采用字母编号,最新版本为hawthorn第二版,你可以自己选择想要安装的稳定版本,版本编号选择地址为:open edX releases 。通过设置OPENEDX_RELEASE值设定要安装的版本,例如安装hawthorn第二版,设定OPENEDX_RELEASE=open-release/hawthorn.2。
自动安装脚本如下:
1 2 3 4 5 6 7 8 |
# 1. Set the OPENEDX_RELEASE variable: export OPENEDX_RELEASE=open-release/hawthorn.2 # 2. Bootstrap the Ansible installation: wget https://raw.githubusercontent.com/edx/configuration/$OPENEDX_RELEASE/util/install/ansible-bootstrap.sh -O - | sudo bash # 3. (Optional) If this is a new installation, randomize the passwords: wget https://raw.githubusercontent.com/edx/configuration/$OPENEDX_RELEASE/util/install/generate-passwords.sh -O - | bash # 4. Install Open edX. For Ginkgo and older, this will be a 404, and you need to use sandbox.sh instead of native.sh wget https://raw.githubusercontent.com/edx/configuration/$OPENEDX_RELEASE/util/install/native.sh -O - | bash |
安装过程时间不定,根据你的网络环境来定。安装结果如果fail=0表示安装成功,可以访问你的edX平台了。
学生端:http://ip
创课端:http://ip:18010
管理端:http://ip/admin
平台管理的常用命令详见:edX管理