centos7安装使用vagrant

2021/4/16 7:25:26

本文主要是介绍centos7安装使用vagrant,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

https://blog.51cto.com/u_12173069/2312621

#download virtualbox
https://www.virtualbox.org/wiki/Linux_Downloads
#download vagrant
https://www.vagrantup.com/downloads.html
#download centos7 image of vagrant format
http://cloud.centos.org/centos/7/vagrant/x86_64/images/
http://cloud.centos.org/centos/7/vagrant/x86_64/images/CentOS-7.box

#install virtual box
yum  -y  install  kernel-devel
yum  -y  localinstall  VirtualBox-6.1-6.1.18_142142_el7-1.x86_64.rpm

#install vagrant
yum  -y  localinstall vagrant_2.2.15_x86_64.rpm
#initiate configuration
vagrant  init  CentOS-7.box
#start the vm
vagrant  up
#stop the vm
vagrant halt
#reboot the vm
vagrant reload
#delete the vm
vagrant destroy


这篇关于centos7安装使用vagrant的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程