Introducing Dragonfly Cloud! Learn More

Question: How to install Memcached on Windows?

Answer

Memcached is primarily developed for Unix-like operating systems, but it also has support for Windows. In this guide, we will discuss the steps required to install and run Memcached on a Windows machine.

Prerequisites

  • A Windows machine with administrative privileges.
  • Visual Studio C++ Build Tools (2015 or later) installed on your system. You can download it from here.
  • Memcached binary distribution package for Windows. You can download it from here.

Steps

  1. Extract the downloaded memcached-win32-*.zip file to any directory on your system.
  2. Open the command prompt as an administrator and navigate to the directory where you extracted the files in step 1.
  3. Run the following command to install Memcached as a Windows service:
    memcached.exe -d install
    
  4. Once installed, start the Memcached service using the following command:
    net start memcached
    
  5. Memcached should now be running on your Windows machine. You can verify this by running the following command:
    telnet localhost 11211
    
    If the installation was successful, you should see output similar to the following:
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    

That's it! Memcached is now successfully installed and running on your Windows machine. You can now use it in your applications to improve performance by caching frequently accessed data.

Was this content helpful?

White Paper

Free System Design on AWS E-Book

Download this early release of O'Reilly's latest cloud infrastructure e-book: System Design on AWS.

Free System Design on AWS E-Book

Start building today 

Dragonfly is fully compatible with the Redis ecosystem and requires no code changes to implement.