I am trying to install memcached using nssm using these instructions
- Stop memcached service if running. Run command prompt as administrator
- Go to nssm.exe folder -> <path to nssm>\nssm-2.24-103-gdee49fc\nssm-2.24-103-gdee49fc\win64
- Run nssme.exe remove memcached.
- Install memcached with the following command: nssm.exe install memcached -m 512
- 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.