系统要求

文档: https://experienceleague.adobe.com/en/docs/commerce-operations/installation-guide/system-requirements

软件版本要求

安装在 adobe cloud

Software dependencies2.4.7-beta32.4.6-p42.4.6-p32.4.6-p22.4.6-p12.4.62.4.5-p62.4.5-p52.4.5-p42.4.5-p32.4.5-p22.4.5-p12.4.52.4.4-p72.4.4-p62.4.4-p52.4.4-p42.4.4-p32.4.4-p22.4.4-p12.4.42.4.3-p32.4.2-p2
Composer2.62.22.22.22.22.22.22.22.22.22.22.22.22.22.22.22.22.22.12.12.111
Elasticsearch7.9
OpenSearch2.112.52.52.52.52.51.21.21.21.21.21.21.21.21.21.21.21.21.21.21.21.2
MariaDB10.610.610.610.610.610.610.410.410.410.410.410.410.410.410.410.410.410.410.410.410.410.410.4
PHP8.3, 8.28.2, 8.18.2, 8.18.2, 8.18.2, 8.18.2, 8.18.18.18.18.18.18.18.18.18.18.18.18.18.18.18.17.47.4
RabbitMQ3.123.11, 3.93.11, 3.93.11, 3.93.11, 3.93.11, 3.93.11, 3.93.11, 3.93.11, 3.93.11, 3.93.93.93.93.93.93.93.93.93.93.93.93.83.8
Redis7.27.07.07.07.07.06.26.26.26.26.26.26.26.26.26.26.26.26.26.26.26.06.0

自己部署

Software dependencies2.4.7-beta32.4.6-p42.4.6-p32.4.6-p22.4.6-p12.4.62.4.5-p62.4.5-p52.4.5-p42.4.5-p32.4.5-p22.4.5-p12.4.52.4.4-p72.4.4-p62.4.4-p52.4.4-p42.4.4-p32.4.4-p22.4.4-p12.4.42.4.3-p32.4.2-p2
Composer2.62.22.22.22.22.22.22.22.22.22.22.22.22.22.22.22.22.22.12.12.111
Elasticsearch8.118.11, 7.178.5, 7.178.5, 7.178.5, 7.178.4, 7.177.177.177.177.177.177.177.177.177.177.177.177.177.167.167.167.167.9
OpenSearch2.112.52.52.52.52.51.21.21.21.21.21.21.21.21.21.21.21.21.21.21.21.2
MariaDB10.610.610.610.610.610.610.410.410.410.410.410.410.410.410.410.410.410.410.410.410.410.410.4
MySQL8.08.08.08.08.08.08.08.08.08.08.08.08.08.08.08.08.08.08.08.08.08.08.0
PHP8.3, 8.28.2, 8.18.2, 8.18.2, 8.18.2, 8.18.2, 8.18.18.18.18.18.18.18.18.18.18.18.18.18.18.18.17.47.4
RabbitMQ3.123.11, 3.93.11, 3.93.11, 3.93.11, 3.93.11, 3.93.11, 3.93.11, 3.93.11, 3.93.11, 3.93.93.93.93.93.93.93.93.93.93.93.93.83.8
Redis7.27.07.07.07.07.06.26.26.26.26.26.26.26.26.26.26.26.26.26.26.26.06.0
Varnish7.47.37.37.37.37.17.37.37.37.37.17.07.07.37.37.37.37.17.07.07.06.56.4
Apache2.42.42.42.42.42.42.42.42.42.42.42.42.42.42.42.42.42.42.42.42.42.42.4
nginx1.241.241.241.221.221.221.241.241.221.221.221.221.221.241.241.221.221.221.221.221.221.181.18
AWS Aurora (MySQL)8.08.08.08.08.08.08.08.08.08.08.08.08.08.08.08.08.08.05.75.75.75.7
AWS S3✔️✔️✔️✔️✔️✔️✔️✔️✔️✔️✔️✔️✔️✔️✔️✔️✔️✔️✔️✔️✔️✔️✔️
AWS MQ3.11.203.9.163.9.163.9.163.9.163.9.163.9.133.9.133.9.133.9.133.9.133.9.133.9.133.9.133.9.133.9.133.9.133.9.133.8.113.8.113.8.113.8.11
AWS ElastiCacheRedis 7.0Redis 6.2Redis 6.2Redis 6.2Redis 6.2Redis 6.2Redis 6Redis 6Redis 6Redis 6Redis 6Redis 6Redis 6Redis 6Redis 6Redis 6Redis 6Redis 6Redis 6Redis 6Redis 6Redis 6
AWS Elasticsearch7.97.97.97.97.97.9
AWS OpenSearch2.111.21.21.21.21.21.21.21.21.21.21.21.21.21.21.21.21.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 扩展相同

系统时区

需要把 php 的时区设置为和系统相同,否则会出现以下错误:

PHP Warning: date(): It is not safe to rely on the system's timezone settings. [more messages follow]

配置文件中设置:date.timezone ='Asia/Shanghai'

内存

配置文件中设置: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

可以使用 sudo find / -name 'opcache.ini 查找 opcache 配置文件路径