memcached installed using nssm no connection could be made to target machine

Viewed 26

I am trying to install memcached using nssm using these instructions

  1. Stop memcached service if running. Run command prompt as administrator
  2. Go to nssm.exe folder -> <path to nssm>\nssm-2.24-103-gdee49fc\nssm-2.24-103-gdee49fc\win64
  3. Run nssme.exe remove memcached.
  4. Install memcached with the following command: nssm.exe install memcached -m 512
  5. Once service is started, open the python command prompt and type the following instructions (assuming you have pymemcache installed.)
     >>> from pymemcache.client import base
     >>> memcache = base.Client(('localhost', 11211)) #selected this port for memcache
     >>> memcache.set('aa', 'bb')
     True
    

but after running the above script it says no connection could be made to the target machine what should I do? i checked services app on windows and memcached was running (Automatic) but not started even when I ran my program.

0 Answers
Related