系统要求
软件版本要求
安装在 adobe cloud
Software dependencies | 2.4.7-beta3 | 2.4.6-p4 | 2.4.6-p3 | 2.4.6-p2 | 2.4.6-p1 | 2.4.6 | 2.4.5-p6 | 2.4.5-p5 | 2.4.5-p4 | 2.4.5-p3 | 2.4.5-p2 | 2.4.5-p1 | 2.4.5 | 2.4.4-p7 | 2.4.4-p6 | 2.4.4-p5 | 2.4.4-p4 | 2.4.4-p3 | 2.4.4-p2 | 2.4.4-p1 | 2.4.4 | 2.4.3-p3 | 2.4.2-p2 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Composer | 2.6 | 2.2 | 2.2 | 2.2 | 2.2 | 2.2 | 2.2 | 2.2 | 2.2 | 2.2 | 2.2 | 2.2 | 2.2 | 2.2 | 2.2 | 2.2 | 2.2 | 2.2 | 2.1 | 2.1 | 2.1 | 1 | 1 |
Elasticsearch | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | 7.9 |
OpenSearch | 2.11 | 2.5 | 2.5 | 2.5 | 2.5 | 2.5 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | – |
MariaDB | 10.6 | 10.6 | 10.6 | 10.6 | 10.6 | 10.6 | 10.4 | 10.4 | 10.4 | 10.4 | 10.4 | 10.4 | 10.4 | 10.4 | 10.4 | 10.4 | 10.4 | 10.4 | 10.4 | 10.4 | 10.4 | 10.4 | 10.4 |
PHP | 8.3, 8.2 | 8.2, 8.1 | 8.2, 8.1 | 8.2, 8.1 | 8.2, 8.1 | 8.2, 8.1 | 8.1 | 8.1 | 8.1 | 8.1 | 8.1 | 8.1 | 8.1 | 8.1 | 8.1 | 8.1 | 8.1 | 8.1 | 8.1 | 8.1 | 8.1 | 7.4 | 7.4 |
RabbitMQ | 3.12 | 3.11, 3.9 | 3.11, 3.9 | 3.11, 3.9 | 3.11, 3.9 | 3.11, 3.9 | 3.11, 3.9 | 3.11, 3.9 | 3.11, 3.9 | 3.11, 3.9 | 3.9 | 3.9 | 3.9 | 3.9 | 3.9 | 3.9 | 3.9 | 3.9 | 3.9 | 3.9 | 3.9 | 3.8 | 3.8 |
Redis | 7.2 | 7.0 | 7.0 | 7.0 | 7.0 | 7.0 | 6.2 | 6.2 | 6.2 | 6.2 | 6.2 | 6.2 | 6.2 | 6.2 | 6.2 | 6.2 | 6.2 | 6.2 | 6.2 | 6.2 | 6.2 | 6.0 | 6.0 |
自己部署
Software dependencies | 2.4.7-beta3 | 2.4.6-p4 | 2.4.6-p3 | 2.4.6-p2 | 2.4.6-p1 | 2.4.6 | 2.4.5-p6 | 2.4.5-p5 | 2.4.5-p4 | 2.4.5-p3 | 2.4.5-p2 | 2.4.5-p1 | 2.4.5 | 2.4.4-p7 | 2.4.4-p6 | 2.4.4-p5 | 2.4.4-p4 | 2.4.4-p3 | 2.4.4-p2 | 2.4.4-p1 | 2.4.4 | 2.4.3-p3 | 2.4.2-p2 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Composer | 2.6 | 2.2 | 2.2 | 2.2 | 2.2 | 2.2 | 2.2 | 2.2 | 2.2 | 2.2 | 2.2 | 2.2 | 2.2 | 2.2 | 2.2 | 2.2 | 2.2 | 2.2 | 2.1 | 2.1 | 2.1 | 1 | 1 |
Elasticsearch | 8.11 | 8.11, 7.17 | 8.5, 7.17 | 8.5, 7.17 | 8.5, 7.17 | 8.4, 7.17 | 7.17 | 7.17 | 7.17 | 7.17 | 7.17 | 7.17 | 7.17 | 7.17 | 7.17 | 7.17 | 7.17 | 7.17 | 7.16 | 7.16 | 7.16 | 7.16 | 7.9 |
OpenSearch | 2.11 | 2.5 | 2.5 | 2.5 | 2.5 | 2.5 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | 1.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2.4 | 2.4 | 2.4 | 2.4 | 2.4 | 2.4 | 2.4 | 2.4 | 2.4 | 2.4 | 2.4 | 2.4 | 2.4 | 2.4 | 2.4 |
nginx | 1.24 | 1.24 | 1.24 | 1.22 | 1.22 | 1.22 | 1.24 | 1.24 | 1.22 | 1.22 | 1.22 | 1.22 | 1.22 | 1.24 | 1.24 | 1.22 | 1.22 | 1.22 | 1.22 | 1.22 | 1.22 | 1.18 | 1.18 |
AWS Aurora (MySQL) | 8.0 | 8.0 | 8.0 | 8.0 | 8.0 | 8.0 | 8.0 | 8.0 | 8.0 | 8.0 | 8.0 | 8.0 | 8.0 | 8.0 | 8.0 | 8.0 | 8.0 | 8.0 | 5.7 | 5.7 | 5.7 | 5.7 | – |
AWS S3 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
AWS MQ | 3.11.20 | 3.9.16 | 3.9.16 | 3.9.16 | 3.9.16 | 3.9.16 | 3.9.13 | 3.9.13 | 3.9.13 | 3.9.13 | 3.9.13 | 3.9.13 | 3.9.13 | 3.9.13 | 3.9.13 | 3.9.13 | 3.9.13 | 3.9.13 | 3.8.11 | 3.8.11 | 3.8.11 | 3.8.11 | – |
AWS ElastiCache | Redis 7.0 | Redis 6.2 | Redis 6.2 | Redis 6.2 | Redis 6.2 | Redis 6.2 | Redis 6 | Redis 6 | Redis 6 | Redis 6 | Redis 6 | Redis 6 | Redis 6 | Redis 6 | Redis 6 | Redis 6 | Redis 6 | Redis 6 | Redis 6 | Redis 6 | Redis 6 | Redis 6 | – |
AWS Elasticsearch | – | – | – | – | – | – | – | – | – | – | – | 7.9 | 7.9 | – | – | – | – | – | 7.9 | 7.9 | 7.9 | 7.9 | – |
AWS OpenSearch | 2.11 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | – | – | – | – | – |
PHP 设置
Adobe cloud 部署参考: https://experienceleague.adobe.com/en/docs/commerce-cloud-service/user-guide/configure/app/php-settings
PHP Process Control
在以并行模式运行索引器之前,必须在 PHP 中启用 Process Control support (pcntl)
版本
使用 php -v
检查,版本需要大于 8.1,有些版本需要大于 8.2
php 扩展
使用 php -m
检查扩展
Adobe Commerce、B2B for Adobe Commerce、Magento Open Source 三者需要的 php 扩展相同
ext-bcmath
ext-ctype
ext-curl
ext-dom
ext-fileinfo
ext-filter
ext-gd
ext-hash
ext-iconv
ext-intl
ext-json
ext-libxml
ext-mbstring
ext-openssl
ext-pcre
ext-pdo_mysql
ext-simplexml
ext-soap
ext-sockets
ext-sodium
ext-spl
ext-tokenizer
ext-xmlwriter
ext-xsl
ext-zip
ext-zlib
lib-libxml
系统时区
需要把 php 的时区设置为和系统相同,否则会出现以下错误:
配置文件中设置:date.timezone ='Asia/Shanghai'
内存
- Compiling code or deploying static assets,
1G
- Debugging,
2G
- Testing,
~3-4G
配置文件中设置:memory_limit=2G
realpath_cache
这些设置允许 PHP 进程缓存文件的路径,而不是在页面加载时查找它们
配置文件中设置:realpath_cache_size=10M
配置文件中设置:realpath_cache_ttl=7200
opcache
Adobe 出于性能考虑建议启用 PHP OPcache,并且还需要将 php 的 opcache.save_comments 设置为 true 或者 1,保留注释,因为 magento 需要使用注释来生成代码。
php.ini
使用 php --ini | grep "Loaded Configuration File"
查看配置文件路径
OPcache.ini
- 对于带有 Apache 的 Ubuntu,OPcache 设置通常位于文件中。
php.ini
- 对于使用 Apache 或 nginx 的 CentOS,OPcache 设置通常位于
/etc/php.d/opcache.ini
- nginx web server with PHP—FPM:
/etc/php/8.1/fpm/php.ini
可以使用 sudo find / -name 'opcache.ini
查找 opcache 配置文件路径