sudo find / -name memcached.conf
并返回位于/opt/bitnami/common/etc/memcached.conf的单个文件,它包含以下内容
mech_list: plain log_level: 5 sasldb_path: /opt/bitnami/common/etc/sasldb2
和
ps aux | grep '[m]emcached'
给出以下输出
memcach+ 20227 0.0 0.0 329828 1164 ? Ssl Jan20 0:00 /opt/bitnami/memcached/bin/.memcached.bin -l 127.0.0.1 -p 11211 -P /opt/bitnami/memcached/tmp/memcached.pid -u memcached -d
我不知道有多less内存设置为默认,我需要分配更多的内存,并设置其他configuration。 我发现build议使用选项-m分配内存的链接,但我看到我的系统中的任何这样的configuration文件。
默认情况下分配了64MB。 您可以使用-m选项来增加它。 例如,要将其增加到128MB,请将其添加到新行的memcached.conf中,并重新启动memcached:
-m 128
检查: 在Debian服务器上 使用memcached和Memcached安装和configurationPHP