没有不值得去解决的问题,也没有不值得去学习的技术!

Install Memcached on Windows 10 64-bit and the Memcache Extension for PHP 5.6.27

Check phpinfo, memcache already exists

1. Reference URL: https://commaster.net/content/installing-memcached-windows , as shown in Figure 1

Reference URL: https://commaster.net/content/installing-memcached-windows
Figure 1

2. Download: http://downloads.northscale.com/memcached-1.4.5-amd64.zip , as shown in Figure 2

Download: http://downloads.northscale.com/memcached-1.4.5-amd64.zip
Figure 2

3. Extract to: C:\memcached-1.4.5, as shown in Figure 3

Extract to: C:\memcached-1.4.5
Figure 3

4. Run Windows PowerShell as administrator, as shown in Figure 4

Run Windows PowerShell as administrator
Figure 4

5. Execute the following command to add memcached to the Task Scheduler: , as shown in Figure 5
schtasks /create /sc onstart /tn memcached /tr “‘C:\memcached-1.4.5\memcached.exe’ -m 512”

Execute the following command to add memcached to the Task Scheduler:
Figure 5

6. To uninstall memcached, you can use the following command: , as shown in Figure 6
schtasks /delete /tn memcached

To uninstall memcached, you can use the following command:
Figure 6

7. To install the Memcache extension for PHP, open the URL: http://pecl.php.net/package/memcache , as shown in Figure 7

To install the Memcache extension for PHP, open the URL: http://pecl.php.net/package/memcache
Figure 7

8. Download: 5.6 Thread Safe (TS) x64, as shown in Figure 8

Download: 5.6 Thread Safe (TS) x64
Figure 8

9. Extract to: C:\php-5.6.27\ext\php_memcache.dll, as shown in Figure 9

Extract to: C:\php-5.6.27\ext\php_memcache.dll
Figure 9

10. Add the following line in C:\php-5.6.27\php.ini to enable the memcache extension, as shown in Figure 10
extension=php_memcache.dll

Add the following line in C:\php-5.6.27\php.ini to enable the memcache extension
Figure 10

11. Edit the environment variable from C:\php-7.0.22 to C:\php-5.6.27, and restart the machine, as shown in Figure 11

Edit the environment variable from C:\php-7.0.22 to C:\php-5.6.27, and restart the machine
Figure 11

12. Check phpinfo, memcache already exists, as shown in Figure 12

Check phpinfo, memcache already exists
Figure 12

关于作者 · 持续学习与技术实践

我是一名拥有 15 年以上开发经验的技术从业者,自 2013 年起持续运营个人技术博客,记录工作与个人项目中遇到的真实问题,以及解决问题过程中的探索、实践和思考。

除了技术写作,我也在持续开发和维护自己的独立项目,探索新技术和新工具在实际场景中的应用。我始终相信,没有不值得去解决的问题,也没有不值得去学习的技术。

如果这篇文章对你有所帮助,欢迎浏览博客中的其他文章,也欢迎交流技术经验与想法。

关于我  ·  GitHub  ·  邮件联系

评论

一条对“Install Memcached on Windows 10 64-bit and the Memcache Extension for PHP 5.6.27”的回复

  1. […] 23 PHP 7.0.22 Windows 10 Task Plan Memcache extension memcached memcached 1.5 PHP 7.0 ←Install Memcached under Windows 10 64 and install Memcache extension for PHP 5.6.27 Importing oversized SQL files in MySQL Query […]