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