vagrant命令

$ vagrant init      # 初始化
 
$ vagrant up        # 启动虚拟机
$ vagrant halt      # 关闭虚拟机
$ vagrant reload    # 重启虚拟机
$ vagrant ssh       # SSH 至虚拟机
$ vagrant suspend   # 挂起虚拟机
$ vagrant resume    # 唤醒虚拟机
$ vagrant status    # 查看虚拟机运行状态
$ vagrant destroy   # 销毁当前虚拟机
 
 
#box管理命令
$ vagrant box list    # 查看本地box列表
$ vagrant box add     # 添加box到列表
 
$ vagrant box remove  # 从box列表移除 
 
nginx:
      nginx目录:/etc/nginx
      sudo service nginx restart 重启nginx

原文:https://blog.csdn.net/lw545034502/article/details/84135886 

 

posted @ 2019-07-17 09:15  飞翔的贺兰猪  阅读(231)  评论(0编辑  收藏  举报