标签:
virtualbox-4.3 去官网下载deb格式(可直接在软件中心安装,卸载使用命令apt-get remove virtualbox-4.3)
2.vagrant(虚拟机文件端口映射到本机的工具)
安装时,去官网直接下载deb
vagrantbox(配置文件)
向trunk中添加vagrantfile
3.20140625-johnnycake-devstack.box虚拟机的打包文件
4.vim Vagrantfile 需要改的地方: config.vm.box_url = "/Volumes/besterChen/operating_system/other/20140625-johnnycake-devstack.box"
override.vm.box_url = "/Volumes/besterChen/operating_system/other/20140625-johnnycake-devstack.box"(此文件的位置)
vagrant box add devstack201406 ~/Downloads/devstack201406_1020.box(edx中已经写好的 在本地服务器上可以下载)
==> box: Successfully added box ‘devstack201406‘ (v0) for ‘virtualbox‘!
vagrant init
cd 到有vagrantfile的文件夹中运行vagrant plugin install vagrant-vbguest
安装ruby
vagrant up(启动虚拟机):可能会缺少nfsd apt-get install nfs-kernel-server
5 启动虚拟机 vagrant up (halt关闭虚拟机)nfsd(配置自动启动)
6.连接虚拟机 vagrant ssh
sudo su edxapp
lms: ~/edx-platform$ paver devstack lms
cms:~/edx-platform$ paver devstack studio
sudo su forum(论坛)
forum $ ruby app.rb -p 18080
sudo /etc/init.d/nfs-kernel-server restart 启动nfs服务,可以添加到服务中,每次开启自动启动。
http://apexy.logdown.com/posts/138626-god-of-programmers-tool-vagrant
sudo chmod 777 ./node_modules/coffee-script/bin/
7.mongodb不正常关闭
taven@taven :~$ cd /home/taven/workspace/QST_MOOC/trunk
taven@taven :~/workspace/QST_MOOC/trunk$ ls
20140625-johnnycake-devstack.box.txt edx-platform other Vagrantfile
cs_comments_service ora themes
taven@taven :~/workspace/QST_MOOC/trunk$ vagrant ssh
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64)
Last login: Tue Oct 28 03:30:18 2014 from 10.0.2.2
vagrant@precise64:~$ sudo su root
root@precise64:/home/vagrant# cd /edx/var/mongo/mongodb
root@precise64:/edx/var/mongo/mongodb# rm *.lock
root@precise64:/edx/var/mongo/mongodb# ls
admin.0 cs_comments_service_development.0 edxapp.0 edxapp.ns
admin.1 cs_comments_service_development.1 edxapp.1 local.0
admin.ns cs_comments_service_development.ns edxapp.2 local.ns
root@precise64:/edx/var/mongo/mongodb#service mongodb stop
root@precise64:/edx/var/mongo/mongodb#service mongodb start
8.mako高亮
9.http://topmanopensource.iteye.com/blog/2002302(使用)
10.http://segmentfault.com/blog/fenbox/1190000000264347
11.如果项目从svn中重新嵌出,原项目最好保存mysql,mongo数据,vagrantfile文件以便保存原环境.
标签:
原文地址:http://my.oschina.net/u/2002748/blog/402899