---
title: "memcached配置"
author: "EwinLive"
date: "2011-04-22T14:35:32Z"
tags: ["C", "C#", "C++", "Windows", "memcached"]
categories: ["企业架构"]
slug: "memcached"
draft: false
lastmod: "2011-04-22T14:35:32Z"
id: 1012640
url: "https://ewinlive.iteye.com/blog/1012640"
---

memcached for windows 修改端口和最大内存 ：

于是就想到直接修改windows服务的启动参数，操作如下，打开注册表，找到：  
HKEY\_LOCAL\_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\memcached Server  
其中的ImagePath项的值为："c:\\memcached\\memcached.exe" -d runservice  
改成："c:\\memcached\\memcached.exe" -p 12345 -m 128 -d runservice

保存后重新启动memcached服务，然后在命令行中输入netstat -n -a