我已经使用 memcached pecl 扩展为 Drupal 站点安装了 memcache。一切正常,但我仍在为配置设置而苦苦挣扎。
例如,遵循 drupal.org 上的建议
You should probably lock down the memcache server so that it only listens for
connections from the hosts that need to be served, as the default is that
memcache listens to connections from all addresses.
So, to close that hole, edit /etc/sysconfig/memcached with:
OPTIONS="-l ${HOSTIP}"
Run Code Online (Sandbox Code Playgroud)
问题是我的服务器上没有这个文件,无论如何都没有在这个位置。其他一些文章提到了 /etc/memcached.conf 但我也找不到这个文件。
考虑到 /etc/sysconfig/memcached 或 /etc/memcached.conf 没有在我的服务器上退出,我可以安全地创建它们吗?这些文件是否可能位于其他地方,在这种情况下,我应该在哪里查看或有什么方法可以找到该信息?
最后,将不胜感激任何资源、教程或文档链接。我浏览过 memcache 的站点 Wiki,只能找到几篇适合初学者的相关文章。