Memcached 在 Centos 之间丢失连接问题

Memcached 在 Centos 之间丢失连接问题

我有一个应用程序服务器,正在使用 nginx 运行负载平衡。我的 memcached 在这期间崩溃了。

下面是我的memcache.conf文件。

 # memcached.conf

port=11211
pidpath=/apps/home/memcached/bin/memcache_process.pid
user=root
maxconn=1024
cachesize=4096
options=20
logfile=/apps/home/memcached/logs/memcached.log

启动文件

  #!/bin/bash
echo "Memcached is starting"
MPATH=`dirname "$0"`
cd $MPATH
. ../../conf/memcached.cnf
$MPATH/memcached -d -p $port -u $user  -m $cachesize -c $maxconn -P $pidpath -d $options -vv > $logfile 2>&1

以下是 memcached 日志文件

<584 version
584 VERSION 1.4.15
<617 new auto-negotiating client connection
614: Client using the ascii protocol
<614 version
614 VERSION 1.4.15
<616 new auto-negotiating client connection
<618 new auto-negotiating client connection
<619 new auto-negotiating client connection
<620 new auto-negotiating client connection
<621 new auto-negotiating client connection
<622 new auto-negotiating client connection
<626 new auto-negotiating client connection
<624 new auto-negotiating client connection
<628 new auto-negotiating client connection
<623 new auto-negotiating client connection
<627 new auto-negotiating client connection
<625 new auto-negotiating client connection
<629 new auto-negotiating client connection
<630 new auto-negotiating client connection
<631 new auto-negotiating client connection
631: Client using the ascii protocol

帮助我,专家从上周开始就一直坚持这个问题,尝试了所有方法仍然没有得到任何结果..

答案1

您的配置文件memcache.conf只是您在启动文件中引用的源语句memcached.cnf

相关内容