Install LNMP environment under vagrant

Source: Internet
Author: User
Tags add time

Today, the use of vagrant installed LNMP bag, it feels good, it is worth recording

  • First of all, I installed a centos65, the specific command is this (box on-premises)
    Vagrant box Add centos65/users/zeopean/downloads/mac/centos65-x86_64-20140116. Box


  • Next, my vagrant is ready to be initialized.
    Vagrant Init centos65vagrant up

  • Note that it is possible now that the Vagrantfile file in the Config.vm.box is used base, then change it, change to CENTOS65, corresponding to the name of the add time
    Vagrant.configure ("2" do |config|  " hashicorp/precise32 " End

  • And then, I think it's time to get into vagrant.
    Ssh

  • In our centos65, there is a vagrant directory with the path:
  • /vagrant

  • Switch to the inside, create a file, you can see, there is also a vagrantfile, haha, create a vhost directory, you quit Vagrant, came to you just initialized vagrant to the directory, you want to effect appeared, the directory also appeared a vhost, and our The/vagrant under CentOS is exactly the same.
  • Next, then directly to the LNMP lost in, now, you can see how to install LNMP environment
      • First step: Unzip the file, note that this is the LNMP one-click installation package, Very useful stickers address: http://lnmp.org/download.html
         tar - ZXVF Lnmp. 1.2 . tar . GZ 

      • Step two: Update yum for reasons not known, but after the update, it's nice to install
         sudo  yum  update 
      • step three, of course, to the LNMP directory, and then install the
         cd lnmp  sudo ./install . sh  lnmp 

         

Next to, is quietly to wait, this process compared, you can do something else, if you do not understand the place, you can see here:

http://weizhifeng.net/learn-vagrant-01.html&&http://lnmp.org/ Install.html

Install LNMP environment under vagrant

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.