Objective:
Company Computer only Win7 + (Xampp | | wamp) Development, in personal hobbies, want to learn under the most comfortable development environment under development, do not want to install dual system, want to use VMware computer is not configured high, Vagrant+virtual box provides us with a good way out, Occupies a very small system resources, developed very comfortable, the following for everyone to share my installation process, Linux I used the most non-solution of the CentOS (Linux son, free)
First, the preparatory work:
1: Download vagrant:https://www.vagrantup.com/downloads.html
2: Download Virtualbox:https://www.virtualbox.org/wiki/downloads
3: Download centos:http://www.vagrantbox.es--ps: Choose your favorite system, preferably FQ download, do not use the ISO image file, this provides a good package of Centos.box
4: Download xshell:http://www.netsarang.com/products/xsh_overview.html
Second, installation
This step does not make special instructions, self-installation vagrant (after successful installation into CMD, enter "vagrant", can see vagrant Help), VirtualBox, Xshell
Third, build the environment
1: Create a development directory (WWW)
2: Under this directory, press and hold shift+ the right mouse button, select "Open Command Window Here"
3: input = "vagrant box add CentOS vagrant-centos-7.1.box carriage return wait for installation base Centos.box
4: input = "vagrant init CentOS
5: input = "vagrant up"
6: See if the installation is successful = "vagrant box list
7: After the installation is complete, we can connect the virtual machine via SSH, but we are here with Win7 system, can not directly connect, this time our Xshell to debut, their own name, according to the information in our Vagrantfile file fill in the host and port number, Then fill in the account name: vagrant, Password: vagrant; If you want to log in with Root, then (Su-), switch to the administrator, the students should pay attention to Oh, (su command just switch users, and do not switch the shell environment, to switch the environment, remember to add a minus sign-)
This way our Win7 installation of CentOS has been completed.
For lamp installation, please see the next section!
Using vagrant to build lamp development environment under WINDOW7 (i)