memcached缓存技术之安装配置php 并在CMD下用telnet操作数据
第一步下载安装memcached.exe文件 (1)将下载的文件解压到指定文件 (2)打开CMD控制台输入cd\回到根目录 (3)将制定的文件路径输入,然后用 memcached.exe -d install安装 (4)用memcached.exe–p 端口号 或 memcached.exe–m200MB–dstart 指令启动。
第一步下载安装memcached.exe文件
(1)将下载的文件解压到指定文件
(2)打开CMD控制台输入cd\回到根目录
(3)将制定的文件路径输入,然后用memcached.exe -d install安装
(4)用memcached.exe –p 端口号 或memcached.exe –m 200MB –d start 指令启动。
(5)用netstat –anb指令查看11211端口是否被memcached.exe占用,占用则安装成功。
第二步配置php_memcahce.dll使得php的memcache的扩展可以使用。
(1)下载自己php版本对应的php_memcahce.dll,注意版本一定要对应自己的php版本。
(2)将下载好的php_memcahce.dll放在php文件下面的ext文件中。
(3)在php.ini的指定扩展处加上extension=php_memcache.dll。
(4)重启Apache。
注意:要想使用telnet在CMD控制台进行缓存的操作,首先如果发现不支持有解决方案:
(1)首先看一下自己的C盘的windows下面的systems32有没有telnet,没有就去别人电脑复制一个。
(2)右击我的电脑,点击管理然后将服务打开启用telnet。
(3)在CMD控制台下用telnet 127.0.0.1 11211链接到memcached服务。
(4)用telnet进行增删改查,
增 add 键名 0 时间(秒为单位)内容的大小(如:5) 内容(hello)
删 delet 键名
改 set 键名 0 时间(秒为单位)内容的大小(如:5) 内容(hello) 注(存在则改不存在则创建)
查 get 键名

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.