我是 Magento 的新手,我的服务器的默认 php 会话处理程序是 memcached。我刚刚安装了 Magento(第 2 版)并且我不断收到错误消息:
open(localhost:11211/sess_qmnpedun2j0ie0jed9g8r08pd0, O_RDWR) failed: No such file or directory
它正在尝试将文件处理程序用于 Memcached 会话。我应该如何在 Magento 中更改它?Google-ing 一直告诉我去 local.xml 并添加以下内容:
<session_save><![CDATA[memcached]]></session_save>
<session_save_path><![CDATA[tcp://localhost:11211?persistent=1&weight=2&timeout=10&retry_interval=10]]></session_save_path>
但问题是,我没有MAGENTO_DIR/app/etc/local.xml
,所以我真的不知道该怎么办。
我通过他们的github页面(命令行安装)中给出的链接安装了 Magento2 。安装成功,数据库和所有内容都已创建。
如何更改会话处理程序以在 Magento-2 中使用 memcached?