How to set up (additional) MemCacheD servers on Windows

 

How to set up (additional) MemCacheD servers on Windows

http://supersuf037.blogspot.com/2009/08/how-to-set-up-additional-memcached.html

Go find the latest Windows binary. Such as: http://code.jellycan.com/memcached/
Install the application somewhere like C:/memcached/
  1. If you’re running Vista, you should set memcached.exe to Run as administrator
  2. Install the service using the command:


    c:/memcached/memcached.exe  -d install

    from the command prompt

  3. Start the server from the Services or by running one of the following commands:
    c:/memcached/memcached.exe -d  start

    or

    net start "memcached Server"
      4.  if service not start, then open 'services.msc' in command prompt, and start service manully.

Open up command prompt
Type in the following line:
sc create memcached 11211 binPath= " C:/memcached/ memcached.exe -d runservice -p 11211 -m 2048 " start= auto DisplayName= "MemCacheD 11211 "
notes : from envykok
the space after '=' is necessary

Notes:

-m 2048 is the amount of memory to use in MB. Default value is 64. Maximum value is 2048.
Don't use up 100% RAM. Remember to leave some RAM for the OS.

To utilize more memory on the same machine, repeat the steps given on the same machine but assign a different port number.
In the example above, all instances of the string " 11211 " refers to the port number.

Do take note of the space after each " = " sign.

Check out Start -> Control Panel -> Administrative Tools -> Services for results.

This post is derived from:
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值