如何在Windows即服务上安装Memcached Server

In my earlier post, I explained how to install Memcached server on Mac OS. Today I will explain how to install the Memcached server on Windows operating system.

在我以前的文章中,我解释了如何在Mac OS上安装Memcached服务器 。 今天,我将解释如何在Windows操作系统上安装Memcached服务器。

在Windows上安装Memcached (Install Memcached on Windows)

To install the Memcached Server on Windows, we have to run its “exe” or “batch” process file.

要在Windows上安装Memcached服务器,我们必须运行其“ exe”或“批处理”进程文件。

However, the Memcached server was written for Unix/Linux based operating system and you can’t get a Windows version from the Memcached server official website.

但是,Memcached服务器是为基于Unix / Linux的操作系统编写的,您无法从Memcached服务器的官方网站上获取Windows版本。

This problem is solved by Jellycan Code and NorthScale. They provided the Win32 and Win64 versions in a binary format that can be used to install the Memcached server on Windows.

Jellycan Code和NorthScale解决了此问题。 他们以二进制格式提供了Win32和Win64版本,可用于在Windows上安装Memcached服务器。

在Windows上安装Memcached的步骤 (Steps to install Memcached on Windows)

  1. Download memcached installer zip from the following links based on your Windows setup – Win32, Win64.

    根据您的Windows设置-Win32Win64 ,从以下链接下载memcached安装程序zip。
  2. Unzip it in some hard drive folder. For example C:\memcached

    将其解压缩到某些硬盘文件夹中。 例如C:\ memcached
  3. There will be memcached.exe file in the unzipped folder.

    解压缩后的文件夹中将包含memcached.exe文件。
  4. Open Command Prompt and execute below commands to install it as service and start it.

    打开命令提示符并执行以下命令以将其作为服务安装并启动。

Now Memcached is installed and running as a daemon process on port 11211. You can view it in the Control Panel Services also and stop and start it from there.

现在,Memcached已安装并作为守护进程在端口11211上运行。您也可以在“控制面板服务”中查看它,然后从那里停止并启动它。

You can run memcached.exe -help command to check all the available options like changing ports.

您可以运行memcached.exe -help命令来检查所有可用选项,例如更改端口。

Once you have started memcached server, you can use memcached telnet commands or memcached java client program to test it.

启动memcached服务器后,就可以使用memcached telnet命令memcached Java客户端程序对其进行测试。

翻译自: https://www.journaldev.com/42/how-to-install-memcached-server-on-windows-as-service

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值