dongtiao6362 2014-02-17 05:09
浏览 100

同一服务器上的多个memcache实例

I am using a linux server. I have done a single memcache installation and all is fine. We are adding another application on the same server. It also requires memcache.

How do I set up memcache so that each application gets its own instance of memcache?

I am using codeigniter framework.

  • 写回答

1条回答 默认 最新

  • doushen9863 2014-02-17 17:48
    关注

    By default, memcache run on port 11211. But you can run as many memcache's instances on one server as you wish. Just specify another port to run - and configure your application to connect to the another port. Ex:

    • instance with 64M on port 11212

      memcache -p 11212 -m 64 -u nobody -d

    • instance with 128M on port 11213

      memcache -p 11213 -m 128 -u nobody -d

    • instance with 20G on port 11214

      memcache -p 11214 -m 20480 -u nobody -d

    评论

报告相同问题?

悬赏问题

  • ¥15 fesafe材料库问题
  • ¥35 beats蓝牙耳机怎么查看日志
  • ¥15 Fluent齿轮搅油
  • ¥15 八爪鱼爬数据为什么自己停了
  • ¥15 交替优化波束形成和ris反射角使保密速率最大化
  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统