麦进斗 + php7 运行

1,官网下载

2,(Magento-CE-2.1.2-2016-10-11-11-19-27.tar.gz)环境部署,php 7.0.7+centos 7 + nginx + mysql 5.6 + composer 

php-xsl

yum install libicu-devel -y

yum install libxslt-devel -y

# /usr/local/php/bin/phpize

# ./configure --with-php-config= /usr/local/php/bin/php-config

# make 

# make test

# make install

vi /usr/local/php/lib/php.ini

[xsl]

extension=/usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/xsl.so

[intl]

extension=/usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/intl.so

xsl xml 解析库 ,intl 国际化库

composer intall

php bin/magento module:enable --all            # 开启所有模块

php bin/magento setup:di:compile                 #  编译 项目数据

3,安装 magento 直接访问 http://www.m2.local/setup/index.php

mysql> create database magento;

Query OK, 1 row affected (0.00 sec)

前台地址:http://www.m2.local/

后台地址:http://www.m2.local/admin_h9ijgo

 Success

Please keep this information for your records:

Magento Admin Info:

Username:

    [email protected]

Email:

    [email protected]

Password:

    ******

Your Store Address:

    http://www.m2.local/

Magento Admin Address:

    http://www.m2.local/admin_h9ijgo/

Be sure to bookmark your unique URL and record it offline.

Encryption Key:

    73b5c981963f777ee4540b764ccd0dce

Database Info:

Database Name:

    magento

Username:

    root

Password:

    ******

For security, remove write permissions from these directories: '/data/www/php/magento/app/etc'

猜你喜欢

转载自my.oschina.net/u/2280651/blog/800138