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
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