在Vagrant 下配置环境安装Magento

        最近,我在学习使用Vagrant 来配置Magento所需要的环境,在网上找了很多还不错的配置方法,在这里就推荐一下,自认为简单快速有效的配置方法。

This is a VERY simple Magento environment provisioner for Vagrant

Getting Started 

准备工作:

Magento所需的环境:Ubuntu (Trusty 14.04 64 Bit)\ PHP5.5, Mysql5.5, Apache2.2

Magento 版本: Magento CE 1.9.1.1

安装工具:n98-magerun Installer

安装 Vagrant 

安装 VisualBox

下载 (or Clone)This repository to the root of your project dir 

git clone https://github.com/timothypro/simple-magento-vagrant.git

Just unzip and rename it as you wish. In this case I will call it "simple-magento-vagrant".

$ cd ./simple-magento-vagrant $ vim Vagrantfile

// On line 5.                                                                                                                                           change sample_data = "true" to sample_data = "false" or leave it incase you need sample data

// Save changed

$ vagrant up

在你的下载好的文件夹下面  运行 vagrant up 

第一次使用vagrant, vagrant会下载 Ubuntu box的镜像。可能会花一些时间,不过只会执行一次。

与此同时,Vagrant会配置最基本的环境, 然后使用 n98-magerun 安装Magento。

当vagrant提示完成系统配置后:

在你的浏览器中 , http://127.0.0.1:8080 进入前端. http://127.0.0.1:8080/admin 进入Magento 的 CMS。

User: admin Password: password123

如果要进入 Visual Machine 就是: vagrant ssh

关机:vagrant halt

Full Vagrant command documentation

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 136,309评论 19 139
  • afinalAfinal是一个android的ioc,orm框架 https://github.com/yangf...
    passiontim阅读 15,809评论 2 45
  • 第8-14天的后面再补。先画了第三组。
    SugarLYS阅读 575评论 2 2
  • 生命里总有一道闪电以迅雷不及掩耳之势震彻寰宇,裹挟着惊悚怵目也给予黑夜最耀眼的光束,当所有梦想像虚惊一场,你就像个...
    嚒嚒哒阅读 345评论 0 0
  • 周末就睡到12点多,三餐也几乎是外卖来解决。大学生活没有高三时候所想象的那种热情和兴奋,有的只是每天的慵懒和度日,...
    Casil阅读 614评论 0 0

友情链接更多精彩内容