Using vagrant to build lamp development environment under WINDOW7 (i)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.