我的环境
MacOS Sierra 10.12.3 (16D32)
nginx -v
nginx version: nginx/1.10.2
php --version
PHP 5.6.29 (cli) (built: Dec 9 2016 07:03:56)
// mysql 5.6.35
select version();
5.6.35
下载
git clone https://github.com/magento/magento2.git
// 我以前clone 了,现在(2017-03-01) Magento ver. 2.2.0-dev
git pull origin develop
重新整理MySQL数据库
create database magento2 default charset utf8;
GRANT ALL PRIVILEGES ON *.* to 'admin'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* to 'admin'@'localhost' IDENTIFIED BY '123456' WITH GRANT OPTION;
flush privileges;
重新 安装 数据库
rm -rf composer.lock
composer install
php bin/magento setup:install --db-host 127.0.0.1 --db-name magento2 --db-user admin --db-engine mysql --db-password 123456 --db-prefix m2_ --admin-user admin --admin-password admin888 --admin-email leeyisoft@qq.com --admin-firstname yi --admin-lastname lee
现在可以访问了
http://192.168.2.128:8090/admin