Build an integrated development environment using Vagrant + virtualBox
Let's explain why we want to do this:
I did it at the beginning. net is configured on the computer as follows: vs2008 + vs2013 + IIS + SQL SERVER 08R + Memcache service; playing with PHP in the middle, simply installing a wamp; and then doing Android, I also built a set of eclipse + JDK8 + SDK (forgot what version) + AS. Later I made java web, and then I made various environments ...... After a while, the computer environment was basically messy.
Therefore, I didn't have to use this item, but wanted to build a pure and single development environment, so that I wouldn't report port occupation issues when I accessed 8080.
When I checked the information, I found another advantage of using this method: Apart from thinking that I would like to play by myself, when we work, we enter a new team, the first thing is that the boss comes to teach you how to configure the environment. Every time a person comes, the boss will come to configure the environment .... Sorry, the boss is quite idle. But !!! After configuring this item, we can share it with everyone in the team. At the same time, this configuration can also be easily transplanted.
The following describes the installation process and some problems.
1. Install VirtualBox
Skipped ..
2. Install Vagrant
Vagrant-v
Check whether the version information is correct.
3. Add an image
Base box address:
Http://www.vagrantbox.es/
Vagrant box add centosMin + image path
4. Check the image list
Vagrant box list
V. initialize VM Information
Vagrant init centosMin
6. Start a virtual machine
Vagrant up
7. Modify network configurations
Go to the vagrant virtual device information folder:
Modify the vagrant file, open Vagrantfile, and set [config. vm. network: private_network, ip: "192.168.33.10"] This line of comment is removed (removed #) and saved: restart the Virtual Machine (vagrant reload), so that we can use 192.168.33.10 to access this machine.
Normally, this is okay. However, it seems that I am not the lucky person. After the configuration is complete, it cannot be opened. Later, I asked a professional "master" to learn how to enable virtual technology in the BIOS. However, when I entered my BIOS, I found that I had this item. The computer does not support this function.
This is a sad story !!! If you have money for MAC.