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
- Extract the downloaded
memcached-win32-*.zip
file to any directory on your system. - Open the command prompt as an administrator and navigate to the directory where you extracted the files in step 1.
- Run the following command to install Memcached as a Windows service:
memcached.exe -d install
- Once installed, start the Memcached service using the following command:
net start memcached
- Memcached should now be running on your Windows machine. You can verify this by running the following command:
If the installation was successful, you should see output similar to the following:telnet localhost 11211
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?
Other Common Memcached Questions (and Answers)
- Does Memcached expire?
- Does Memcached write to disk?
- What is the location of Memcached error log?
- How does Memcached consistent hashing work?
- Does Memcached support encryption?
- How to pronounce Memcached?
- How to check Memcached version in Linux?
- How to install Memcached in CentOS 7?
- How to clear Memcached data?
- How does Memcached work in PHP?
- How much memory RAM does Memcached use?
- How to install Memcached on Ubuntu?
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.
Switch & save up to 80%
Dragonfly is fully compatible with the Redis ecosystem and requires no code changes to implement. Instantly experience up to a 25X boost in performance and 80% reduction in cost