search
HomeBackend DevelopmentPHP TutorialInstall and configure Memcached for PHP 5.3 on win system with graphic tutorial_PHP tutorial
Install and configure Memcached for PHP 5.3 on win system with graphic tutorial_PHP tutorialJul 13, 2016 am 10:04 AM
formememcachedphpwinGraphics and textexistInstallTutorialsystemConfiguration

Install and configure Memcached for PHP 5.3 on win system with graphic tutorial

How to make php support memcached on windows system?

Step one: Install Memcached service
Step 2: Let php load the memcached.dll extension

Reference the following information:
1. Installing Memcached for PHP 5.3 on Windows 7
2. Memcache installation and configuration under Windows + Memcached was not loaded successfully

The detailed steps are as follows:

Step one: Install Memcached service

1. Download Memcached Win32 (click here to download)

2. Unzip the downloaded file to a custom directory, such as (C: webservermemcached)
After decompression, there is only one memcached.exe in this directory

3. Run the command line (cmd) with administrator privileges

4. Installation

The code is as follows:


memcached -d install

Tip: If you get an error that MSVCP71.dll does not exist, visit here (poke me)

5. Start

The code is as follows:


memcached -d start

6. Check the installation path (you can ignore it)

The code is as follows:


wmic process get description, executablepath | findstr memcached.exe

Display:
memcached.exe C:webservermemcachedmemcached.exe

Here, the memcached service is installed

Step 2: Let php load the memcached.dll extension

1. Download the VC9 version of memcached.dll
Thread safe version
http://downloads.php.net/pierre/php_memcache-2.2.6-5.3-vc9-x86.zip
Non-thread-safe version of fastcgi’s way of running php
http://downloads.php.net/pierre/php_memcache-2.2.6-5.3-nts-vc9-x86.zip

2. Unzip php_memcache.dll and copy it to the php extension directory C: webserverphp5.3ntsext

3. Edit php.ini and add

at the bottom

The code is as follows:


[memcache]
extension=php_memcache.dll
;A high-performance distributed memory object cache system that maintains a unified huge hash table in memory,
; It can be used to store data in various formats, including images, videos, files, and database search results.
; Whether to transparently fail over to other servers when errors are encountered.
memcache.allow_failover = 0
;The maximum number of servers to try when receiving and sending data, only valid when memcache.allow_failover is turned on.
memcache.max_failover_attempts = 20
;Data will be transferred according to the block size set by this value. Smaller values ​​require more additional network traffic.
; If you notice unexplained slowdowns, you can try increasing this value to 32768.
memcache.chunk_size = 8192
;The default TCP port used when connecting to the memcached server.
memcache.default_port = 11211
;Control the strategy of mapping keys to servers. The default value "standard" means to use the old hash strategy of the previous version.
;Set to "consistent" to allow adding/removing servers from the connection pool without having to recalculate the mapping between keys and servers.
memcache.hash_strategy = "consistent"
;Control the hash function that maps keys to servers. The default value "crc32" uses the CRC32 algorithm, while "fnv" means the FNV-1a algorithm is used.
;FNV-1a is slightly slower than CRC32, but has better hashing performance.
memcache.hash_function = "crc32"
;See the above [session]
for the following 2 settings ; When the value is memcache, mark the use of memcache as the session processor
;session.save_handler = "files"
;Define the delimiter for each server link used for call storage, for example: "tcp://host1:11211, tcp://host2:11211"
; Each server link can contain parameters accepted by that server, similar to servers added using Memcache::addServer()
;For example: "tcp://host1:11211?persistent=1&weight=1&timeout=1& amp;retry_interval=15"
;session.save_path = ""

4. Restart IIS (run from command line)

The code is as follows:


iisreset /restart

At this point, memcached configuration is completed

The above is the entire content of this article. Hope you all like it.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/964009.htmlTechArticleInstall and configure Memcached for PHP 5.3 on win system. Graphical tutorial. How to make php support memcached on windows system? Step 1: Install Memcached service Step 2: Let php load memcach...
Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Win11如何关闭大小写提示图标Win11如何关闭大小写提示图标Jun 29, 2023 pm 01:00 PM

  Win11如何关闭大小写提示图标?当我们的电脑在进行大小写切换时,有用户的电脑屏幕会出现提示图标,对此有用户想要将该图标关闭,那么应该如何操作呢?其实方法很简单,下面小编就为大家演示Win11关闭大小写提示图标的方法,希望以下教程对你有所帮助。  Win11关闭大小写提示图标的方法  解决的方法很简单,那就是打开任务管理器结束Thisutilitycontrolsspecialkeyboard这个进程。  总而言之就是关闭进程里面的XXXXXUtility进程就可以了,如果是联想电脑的话,就

CS玩家的首选:推荐的电脑配置CS玩家的首选:推荐的电脑配置Jan 02, 2024 pm 04:26 PM

1.处理器在选择电脑配置时,处理器是至关重要的组件之一。对于玩CS这样的游戏来说,处理器的性能直接影响游戏的流畅度和反应速度。推荐选择IntelCorei5或i7系列的处理器,因为它们具有强大的多核处理能力和高频率,可以轻松应对CS的高要求。2.显卡显卡是游戏性能的重要因素之一。对于射击游戏如CS而言,显卡的性能直接影响游戏画面的清晰度和流畅度。建议选择NVIDIAGeForceGTX系列或AMDRadeonRX系列的显卡,它们具备出色的图形处理能力和高帧率输出,能够提供更好的游戏体验3.内存电

win10休眠后无法唤醒怎么解决win10休眠后无法唤醒怎么解决Jun 29, 2023 pm 12:26 PM

win10休眠后无法唤醒怎么解决?我们在不适用电脑的时候,电脑就会自动进入休眠,这样就可以保护我们的设备。但是有小伙伴反应说近期在使用win10系统的时候,进入休眠却没有办法唤醒了,怎么操作都没有办法。这种情况应该如何解决呢,小编下面整理了win10休眠后无法唤醒解决教程,感兴趣的话,跟着小编一起往下看看吧!电脑休眠后无法唤醒的因素一般有三个:第一:是系统硬件不兼容、不支持。第二:是系统设置原因导致。第三:是没有设置混合唤醒造成的。解决方法1:在开始菜单【运行】对话框中输入cmd,进入命令提示符

win系统磁盘0磁盘分区1是什么意思win系统磁盘0磁盘分区1是什么意思Sep 26, 2021 am 11:23 AM

win系统磁盘0是指第一块硬盘,磁盘分区1是指第一个分区,通常称为C驱动器。如果安装了两个硬盘,则分别是磁盘0和磁盘1。它们通常在安装win系统时在对硬盘进行分区时出现。

win11怎么创建本地连接win11怎么创建本地连接Jun 29, 2023 pm 12:55 PM

win11怎么创建本地连接?有小伙伴在升级到win11系统之后,发现一些功能没办法正常使用,有小伙伴使用本地连接得时候,发现没有办法正常连接,不能正常连接的话,就没有办法上网,那么我们应该如何解决呢。小编下面整理了win11创建本地连接步骤,感兴趣的话,跟着小编一起往下看看吧!win11创建本地连接步骤1、点击桌面开始菜单,打开设置面板,如图所示。2、找到网络和Internet选项,如图所示。3、点击设置拨号连接按钮,如图所示。4、点击该栏目下的设置新连接选项,如图所示。5、最后点击设置新网络图

win11休眠文件怎么清理win11休眠文件怎么清理Jun 29, 2023 am 11:35 AM

win11休眠文件怎么清理?很多小伙伴再给win11系统的电脑进行磁盘清理的时候,发现每次重启之后都会产生新的垃圾文件,这就是电脑的休眠文件。这些休眠文件是系统自动产生的,我们清理掉这些休眠文件之后,可以减轻磁盘非常大的一块负担,但是很多小伙伴并不清楚该怎么清理休眠文件,下面就由小编为大家带来win11休眠文件清理教程。win11休眠文件清理教程1、找到C盘的CMD程序,路径如下:C:WindowsSystem32然后右键:以管理员身份运行2、输入命令:powercfg-hoff然后回车,看到如

win加r输入什么命令win加r输入什么命令Jan 05, 2021 am 11:28 AM

win加r输入的命令有:1、cleanmgr命令,打开磁盘清理工具;2、compmgmt.msc命令,计算机管理;3、charmap命令,启动字符映射表;4、calc命令,启动计算器;5、Clipbrd命令,剪贴板查看器等。

win11怎么改文件后缀名win11怎么改文件后缀名Jun 29, 2023 pm 12:22 PM

win11怎么改文件后缀名?win11系统占据了电脑系统使用界的半壁江山,很多小伙伴们都在使用该版本的系统进行操作,该版本也为用户们提供了许多丰富的系统工具,不过很多小伙伴们在这个版本系统总不知道如何修改文件的后缀名,很多小伙伴不知道怎么详细操作,小编下面整理了win11更改文件后缀名技巧,如果你感兴趣的话,跟着小编一起往下看看吧!win11更改文件后缀名技巧1、首先我们打开“此电脑”2、接着点击上方栏的“查看”3、然后在下拉菜单中选中“显示”再勾选“文件扩展名”4、修改完成后,我们找到想要修改

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment