Install Memcached under Windows 10 64 and install Memcache extension for PHP 5.6.27

查看 phpinfo,memcache已经存在

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

参考网址: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

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

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

解压缩至:C:\memcached-1.4.5
Figure 3

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

以管理员身份运行 Windows PowerShell
Figure 4

5. Execute the following command to add memcached to the task plan table: as shown in Figure 5
schtasks /create /sc onstart /tn memcached /tr “C:\memcached-1.4.5\memcached.exe-M 512”

执行以下命令将 memcached 添加来任务计划表中:
Figure 5

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

卸载 memcached ,可以使用以下命令:
Figure 6

7. Install the memcache extension of php and open the URL: http://pecl.php.net/package/memcache, as shown in Figure 7

安装 PHP 的 Memcache 扩展,打开网址:http://pecl.php.net/package/memcache
Figure 7

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

下载:5.6 Thread Safe (TS) x64
8

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

解压缩至: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

在 C:\php-5.6.27\php.ini 中添加以下行以启用memcache扩展
Figure 10

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

编辑环境变量 C:\php-7.0.22 为 C:\php-5.6.27,重启机器
Figure 11

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

查看 phpinfo,memcache已经存在
Figure 12

 

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.