同求~
写个脚本放到 init.d 中 , 另:不建议在生产环境使用 vagrant .
passenger 直接 patch 到 nginx 中了 , 所以 passenger 会和 nginx 一同启动 , 也就是说 , 只要 nginx 启动就可以了 .
centos 系统可以执行
chkconfig nginx on
ubuntu
update-rc.d nginx defaults
iPad 还算比较结实的 , 折损没那么厉害 .
#10 楼 @shangrenzhidao 是你当时的工作目录 , 创建一个虚拟机
localhost:vm lsong$ pwd
/Users/Lsong/Documents/vm
localhost:vm lsong$ vagrant box list
precise32 (virtualbox)
localhost:vm lsong$ vagrant init precise32
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
localhost:vm lsong$
那么你下次想要运行他的话 , 就必须再次回到这个目录:
localhost:~ lsong$ cd /Users/Lsong/Documents/vm
localhost:vm lsong$ vagrant up
#8 楼 @shangrenzhidao 不会的 , 如果你在一个已经创建 (init) 的目录中再次执行时会提示你已经存在了 , 想继续的话,需要删除 Vagrantfile 文件才行
我猜你可能忘记在那个目录中创建了 ...
恩 , 就是你之前做 vagrant init 的目录
那要进入 之前 的虚拟机目录
这是两个不同的虚拟机吧~
每个目录中只能 vagrant init 一次 , 不存在多次 init .
#4 楼 @ChanceDoor 肯定是打开方式不对 ...
用 screen 或者 tmux 分屏 , 分别 tail 两个 log .
测试
不好
太长了 , 看了一半 ...
#7 楼 @shangrenzhidao VBoxManage 是 VirtualBox 自带的 headless 管理工具
膜拜大神~
#6 楼 @Blues MAC OS 基本常识右键打开
#7 楼 @shangrenzhidao 不建议
盖茨在网吧厕所哭晕了~
妹纸 ....
我等到 10086 的时候注册 ..
echo "source /etc/profile.d/rvm.sh " >> ~/.bashrc
啥时候 RubyChina 也来个 New Design .