Ubuntu server 16.04 部署edx(fullstack)
0.软件配置
Ubuntu Server 16.04.3 LTS https://www.ubuntu.com/download/server
virtualbox-5.1_5.1.32-120294-Ubuntu-xenial_amd64 https://www.virtualbox.org/wiki/Download_Old_Builds
vagrant_2.0.1_x86_64 https://releases.hashicorp.com/vagrant/
EDX对ubuntu、virtualbox、vagrant的版本都有限制,选择不同的EDX版本时需要注意
1.安装ssh
sudo apt-get install openssh-server
2.安装virtualbox5.1
sudo apt-get update -y
sudo apt-get upgrade -y
sudo reboot
sudo apt-get -f install
sudo apt-get install libqt5x11extras5 libsdl1.2debian
sudo apt-get install gcc make
sudo dpkg -i virtualbox-5.1_5.1.18-114002~Ubuntu~xenial_amd64.deb //替换路径
3.安装vagrant2.0.1
sudo dpkg -i vagrant_1.5.4_x86_64.deb //替换路径
4.安装nfs(安装devstack版本需要)
sudo apt-get install nfs-common nfs-kernel-server
5.获取edx-fullstack镜像链接
export OPENEDX_RELEASE=open-release/ficus.2//选择获取的edx版本
sudo apt install curl
curl -OL https://raw.github.com/edx/configuration/$OPENEDX_RELEASE/util/install/install_stack.sh
bash install_stack.sh fullstack //命令行中显示,获取到下载链接 http://files.edx.org/vagrant-images/ficus-fullstack-2017-03-28.box
6.运行EDX
mkdir fullstack
cd fullstack
vagrant box add ficus-fullstack-2017-03-28 /tmp/ficus-fullstack-2017-03-28.box//替换路径,换成下载文件存放的路径,官网要求名字和下载的文件名保持一致
vagrant init ficus-fullstack-2017-03-28.box
在上一步生成的Vagrantfile中取消 config.vm.network “forwarded_port”,guest:80,host:8080 的注释,这里可以根据需要自行修改Vagrantfile文件,具体可参考http://blog.csdn.net/leonpengweicn/article/details/48263035
vagrant up
7.参考链接
edx平台搭建(基于Ubuntu搭建edx):http://blog.csdn.net/ji_th/article/details/38362155
官网教程:
http://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/latest/installation/fullstack/index.html
ubuntu16.04安装virtualbox:http://blog.csdn.net/u011791526/article/details/67636809