VirtualBox:https://www.virtualbox.org/wiki/Downloads
Vagrant:https://www.vagrantup.com/downloads
seata:http://seata.io/zh-cn/blog/download.html
Sentinel:https://github.com/alibaba/Sentinel
SwitchHosts:https://github.com/oldj/SwitchHosts
vue-devtools:https://github.com/vuejs/devtools
(1)下载后先安装VirtualBox,然后安装Vagrant,一路next即可,建议不要安装c盘
(2)cmd查看Vagrant是否安装成功
vagrant
(3)vagrant init centos/7:初始化
https://app.vagrantup.com/boxes/search
(4)vagrant up:启动虚拟机
第一次启动需要去下载centos/7
说明启动成功
(5)vagrant ssh 打开命令行
(1)找到配置文件,修改配置
C:\Users\Peng\Vagrantfile
(2)ipconfig 检查本机VirtualBox地址,修改配置的网段需要一致,这里都是56
(3)vagrant reload 重启虚拟机
(4)测试本机与虚拟机能否互相ping通
查看ip命令
winows:ipconfig
centos:ip addr
下载地址:
https://app.vagrantup.com/boxes/search
$ vagrant box add {title} {url} $ vagrant init {title} $ vagrant up
例如:
vagrant box add CentOS E:\Data\tool\vagrant\CentOS-7-x86_64-Vagrant-2004_01.VirtualBox.box vagrant init CentOS vagrant up