环境
服务器环境
https://devdocs.magento.com/guides/v2.2/install-gde/system-requirements-tech.html
- unix系统 比如redhat,CentOS, Ubuntu, Debian,max os等等
- 内存 要2G以上(包括2G)
- Composer(最新稳定版本)
- web服务器,apache 2.2或2.4,nginx 1.x
- 数据库 MySQL 5.6,5.7,MariaDB 10.0,10.1,10.2,Percona 5.7
- php 7.0.2,7.0.4,7.0.6-7.0.x,7.1.x,
- PHP扩展 bc-math,ctype,curl,dom,gd,ImageMagick 6.3.7以上,intl,mbstring,mcrypt,hash,openssl,PDO/MySQL,SimpleXML,soap,spl,libxml,xsl,zip,json,iconv
- PHP OPcache
浏览器环境
https://devdocs.magento.com/guides/v2.2/install-gde/system-requirements_browsers.html
- Internet Explorer 11 or later, Microsoft Edge, latest–1
- Firefox latest, latest–1 (any operating system)
- Chrome latest, latest–1 (any operating system)
- Safari latest, latest–1 (Mac OS)
- Safari Mobile for iPad 2, iPad Mini, iPad with Retina Display (iOS 7 or later), for desktop storefront
- Safari Mobile for iPhone 4 or later; iOS 7 or later, for mobile storefront
- Chrome for mobile latest–1 (Android 4 or later) for mobile storefront
前提条件
1, 已安装对应版本的php和mysql,以及magento2需要的php扩展库。
2, 已安装apache或者nginx
3, 已安装composer。
未安装的参考install_composer
4, 改php.ini配置文件
memory_limit 设为1024M
max_execution_time 设为180
安装
一,命令行安装
1
|
composer create-project --repository-url=https:
//repo
.magento.com/ magento
/project-community-edition
|
会提示输入用户名和密码。
这个用户名和密码需要到
https://marketplace.magento.com/customer/accessKeys/list/
去注册。
我的是:
1
2
|
Username: 351f04818e0e872f40eae452f594fe8d
|