开发者社区> 问答> 正文

memcached ?报错

tomcat+memcached

2台服务器分别运行2个tomcat,前端nginx负载,memcached安装后tomcat配在文件如下,但seesion 共享不成功

tomcat配置文件    <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
-->

<Manager className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
            memcachedNodes="n1:192.168.1.126:11211"
            requestUriIgnorePattern=".*\.(png|gif|jpg|css|js)$"
            sessionBackupAsync="false"
            sessionBackupTimeout="100"
            transcoderFactoryClass="de.javakaffee.web.msm.serializer.javolution.JavolutionTranscoderFactory"
            copyCollectionsForSerialization="false" />


      <!-- Use the LockOutRealm to prevent attempts to guess user passwords
           via a brute-force attack -->


[root@user2 bin]#  memcached -d -m 256 -p 11211 -u root -l 192.168.1.126 -v

failed to listen on TCP port 11211: Address already in use

这算是报错么?

展开
收起
爱吃鱼的程序员 2020-06-22 16:57:09 550 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    memcache没有启动成功,11211端口被占用。

    2020-06-22 16:57:24
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Redis4.0解密 立即下载
Getting Rezdy to Use Redis wit 立即下载
阿里云Redis-读写分离 立即下载