Skip to content

Instantly share code, notes, and snippets.

@mba811
Created January 11, 2015 09:02
Show Gist options
  • Select an option

  • Save mba811/a0c17ab6c7e8e476cd91 to your computer and use it in GitHub Desktop.

Select an option

Save mba811/a0c17ab6c7e8e476cd91 to your computer and use it in GitHub Desktop.
Vagrant常用命令

Vagrant常用命令

vagrant up # 启动Vagrant的虚拟机
vagrant suspend # 休眠虚拟机,可以快速恢复
vagrant resume # 恢复虚拟机,可快速恢复到休眠前状态
vagrant halt # 关闭虚拟机电源。不使用额外空间保存状态,但是启动时间延长

# 增加Vagrant虚拟机的信息到SSH配置里
vagrant ssh-config --host chef_rails >> ~/.ssh/config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment