1,官網下載php
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 mysql
php-xslnginx
yum install libicu-devel -ysql
yum install libxslt-devel -ycentos
# /usr/local/php/bin/phpizeapp
# ./configure --with-php-config= /usr/local/php/bin/php-configcomposer
# make this
# make testdebug
# make installorm
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:
1148743058@qq.com
Email:
1148743058@qq.com
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'