Magento 2.0 安装

环境:

直接升到最新版PHP5.6.x 

刚才开MAC OS PHP 5.5  CENTOS PHP 5.5  composer install  依懒包错误。反复安装组件。还是不行。后来决定重新编释最新版 PHP5.6  在php 扩张地方通过了。

先安两个依懒包 

$yum install libicu-devel -y
$yum install libxslt-devel -y

 

./configure  '--prefix=/alidata/server/php' '--enable-opcache' '--with-config-file-path=/alidata/server/php/etc' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--enable-fpm' '--enable-static' '--enable-inline-optimization' '--enable-sockets' '--enable-wddx' '--enable-zip' '--enable-calendar' '--enable-bcmath' '--enable-soap' '--with-zlib' '--with-iconv=/usr/local' '--with-gd' '--with-xmlrpc' '--enable-mbstring' '--with-curl' '--enable-ftp' '--with-mcrypt' '--with-freetype-dir=/usr/local/freetype.2.1.10' '--with-jpeg-dir=/usr/local/jpeg.6' '--with-png-dir=/usr/local/libpng.1.2.50' '--disable-ipv6' '--disable-debug' '--with-openssl' '--disable-maintainer-zts' '--disable-fileinfo' '--enable-intl' '--enable-cgi' '--with-xsl'

 MAC OS 直接用brew 安装php56

需要的PHP扩展  http://devdocs.magento.com/guides/v2.0/install-gde/system-requirements.html

下载

https://www.magentocommerce.com/download?_ga=1.216763542.1009193077.1463466517

选择有测试数据的包

 

安装 composer

curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

 

进入官网 注册用户

https://www.magentocommerce.com/magento-connect/customerdata/accessKeys/list/

生成 钥匙 
(教程http://devdocs.magento.com/guides/v2.0/install-gde/prereq/connect-auth.html)
后面要求输用户与密码时  公钥是用户名,私钥是密码

进入程序目录

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition

 

composer install

 

posted @ 2016-05-19 15:42  3000  阅读(443)  评论(0编辑  收藏  举报