edX Ubuntu 12.04 64 安装fullstack官方文档
来源:互联网 发布:地下刷火车票软件 编辑:程序博客网 时间:2024/06/06 13:15
原文地址:https://github.com/edx/configuration/wiki/edX-Ubuntu-12.04-64-bit-Installation
This page describes how to install the edX Full Stack on a single Ubuntu 12.04 64-bit server from scratch. For other Full Stack installation instructions, see here.
Hardware requirements
The following server requirements will be fine for supporting hundreds of registered students on a single server.
Note: This will runs mysql, memcache, mongo, and all of the edX services (lms, studio, forums, ora/discern) on a single server. In production configurations we recommend that these services run on different servers and that a load balancer is added for redundancy. Setting up production configurations is beyond the scope of this wiki page.
- Ubuntu 12.04 amd64 (oraclejdk required)
- Minimum 2GB of memory, 4GB recommended for production servers (with only 2GB some swap space is required, at least during installation)
- At least one 2.00GHz CPU or EC2 compute unit
- Minimum 25GB of free disk, 50GB recommended for production servers
For hosting in Amazon we recommend an m3.medium server, seehttps://aws.amazon.com/ec2/pricing
Community Ubuntu AMIs have 8GB on the root directory, make sure to expand it before installing.
Installation instructions
WARNING:
These instructions will potentially destroy the server they are run on, you should only do them on a freshly installed virtual machine. But if you still want to have a try to re-install the Open edX stack on the same server, please see this article for some issues you may face and how to fix them.
By default ssh will only allow key based authentication. Please setup key based SSH logins or modify the configuration repo to allow for password based SSH logins before running ansible.
NOTES:
- If you are running your services behind a proxy, please see here
LET'S START:
Launch an Ubuntu 12.04 64-bit server and login to it as a user that has full sudo privileges. If you use EC2, use at least m1.large type with EBS and allocate ~50 GB to the root user.
Update your Ubuntu package sources
sudo apt-get update -ysudo apt-get upgrade -ysudo reboot
One step installation
Please read the contents of the script before running this to ensure you are aware of everything it will do; it is quite extensive. The script requires that the running user can run commands as root via sudo.
wget https://raw.githubusercontent.com/edx/configuration/master/util/install/sandbox.sh -O - | bash
If you want to install an Open edX release, such as Cypress, just set the
OPENEDX_RELEASE
variable before running the script. For example:export OPENEDX_RELEASE=named-release/cypresswget https://raw.githubusercontent.com/edx/configuration/$OPENEDX_RELEASE/util/install/sandbox.sh -O - | bash
Manual installation (does what the script does)
Perform the steps below
sudo apt-get install -y build-essential software-properties-common python-software-properties curl git-core libxml2-dev libxslt1-dev libfreetype6-dev python-pip python-apt python-dev libxmlsec1-dev swigsudo pip install --upgrade pipsudo pip install --upgrade virtualenv
On the new server, clone the configuration repo:
cd /var/tmpgit clone https://github.com/edx/configuration
To allow password based SSH authentication, edit the common role inside of
configuration/playbooks/roles/common/defaults/main.yml
and setCOMMON_SSH_PASSWORD_AUTH
to"yes"
Install the ansible requirements
cd /var/tmp/configurationsudo pip install -r requirements.txt
Run the edx_sandbox.yml playbook in the configuration/playbooks directory
cd /var/tmp/configuration/playbooks && sudo ansible-playbook -c local ./edx_sandbox.yml -i "localhost,"
Note: If you are running on an older version of the configuration repo, use the variable 'edx_platform_commit' instead.
- Note: If you get npm Error: failed to fetch from registry: coffee-script, put
registry = "http://registry.npmjs.org/"
to /usr/share/npm/npmrc and retry the installation.
- If ansible stops at some point, look at log files. See locations of log files in the FAQ page.
After installation connect your web browser to the following ports:
- LMS - 80
- Studio - 18010
Bad Suggestions (Arbitrary Upgrades)
Some parts of Open edX are outdated. If you see a message suggesting that you update something manually, don't do it -- Open edX is probably relying on the outdated software remaining at that older version. Specifically:
- Ubuntu may alert you that a newer version of Ubuntu available when you SSH in to your server, and may suggest that you run
do-release-upgrade
to upgrade to that newer version.Don't do it. - Pip may alert you that there is a newer version of pip available, and may suggest that you run
pip install --upgrade pip
to install it. Don't do it.
If you arbitrarily upgrade software in Open edX, things will break. Instead, you should submit a pull request to change the line in the Open edX project where that specific version of the software is defined. All pull requests need to be reviewed before they can be merged, and part of the review process will consist of testing Open edX with the updated software, identifying any breakages, and fixing them as part of the pull request.
Overriding default web ports
You may want to override the default ports for Studio and lms-preview if you are setting up subdomains to connect to your sandbox. By default nginx will forward studio.* to the studio gunicorn process.
Example where preview.example.com, example.com and studio.example.com all point to the same server and you want to deploy the master branch of the edx-platform repo.
cd /var/tmp/configuration/playbooks/edx-eastsudo ansible-playbook -c local --limit "localhost:127.0.0.1" ../edx_sandbox.yml \-i "localhost," -e 'EDXAPP_PREVIEW_LMS_BASE=preview.example.com EDXAPP_LMS_BASE=example.com EDXAPP_LMS_PREVIEW_NGINX_PORT=80 EDXAPP_CMS_NGINX_PORT=80 EDXAPP_LMS_NGINX_PORT=80 edx_platform_version=master '
See edX-Managing-the-Full-Stack for how to manage and update the server once it is running
- edX Ubuntu 12.04 64 安装fullstack官方文档
- Open edx Fullstack安装及安装错误整理
- open edX在Ubuntu 12.04中的安装
- Ubuntu 14.04安装edX
- edX Fullstack管理命令 以Cypress版本
- Open edX常见配置(fullstack)
- edX Ubuntu 12.04 64 bit Installation
- Ubuntu安装Docker(官方文档翻译)
- edx 安装笔记1-edx ububutu server 12.04安装
- edx安装
- ubuntu 系统安装配置搭建jenkins(官方文档小结)
- open edx: ubuntu 16.04原生native 安装部署
- ubuntu 12.04 安装官方nvidia显卡驱动
- Ubuntu官方安装说明
- edx 安装 备忘
- edx-xqueue的安装
- edx安装汉化包
- Open edX安装Xblock
- 通过偏移将GPS坐标转换成百度坐标--服务端实现
- GCD使用三部曲之:基本用法
- WIN7 SVN服务配置
- 关于android中调用系统拍照,返回图片是旋转90度..
- for myself(小米刷机)
- edX Ubuntu 12.04 64 安装fullstack官方文档
- ViewPager与FragmentPagerAdapter
- CocoaPods的安装及使用
- 九度题目1283:第一个只出现一次的字符
- IOS 正则表达式的坑
- excel如何调用VBA代码
- Android控件之ListView与SimpleAdapter
- 动画特效大全
- Open edx Fullstack安装及安装错误整理