memcached server install(WSL)

prepare:
0) libevent-dev
1) libseccomp-dev
2) build-essential
3) automake

install:

https://www.liquidweb.com/kb/how-to-install-memcached-on-ubuntu-14-04-lts/

Step #1: Install Memcached

As a matter of best practice we’ll update our packages:

apt-get update

Then installing Memcached and related packages is now as simple as running just one command::

apt-get install memcached

Step #2: Configuration of the Memcached Installation

Use the following command to view information on the memcached command:

memcached -h

The default configuration file can be found at:

/etc/memcached.conf

When started, Memcached will start on port 11211 by default per the default configuration file:

# Default connection port is 11211
-p 11211

To change the port, simply change the number in the configuration file.

For a refresher on editing files with vim see: New User Tutorial: Overview of the Vim Text Editor

EXAMPLE: If I wanted to run Memcached on port 1337, with 4GB of memory, and allow a maximum of 2,000 connections, I would change the config file as follows.

Let’s edit the configuration file:

vim /etc/memcached.conf

To the following:

-p 1337
-m 4096
-c 2000

Exit and save the configuration file, and then restart Memcached

service memcached restart

Be Sociable, Share!

原文地址:https://www.cnblogs.com/xiaobin-hlj80/p/8985224.html

时间: 2024-11-09 01:54:29

memcached server install(WSL)的相关文章

Memcached Server High availability

Memcached is a high performance centralized cache system that stores data as key/value pair. It is usually used as L2 cache that serves as a database front. However, memcached lack of features that typical no-sql store has: Data is stored in memory o

[转]memcached提高命中率,memcached server LRU 深入分析

Memcached,人所皆知的remote distribute cache(不知道的可以javaeye一下下,或者google一下下,或者baidu一下下,但是鉴于baidu的排名商业味道太浓(从最近得某某事件可以看出),所以还是建议javaeye一下下),使用起来也非常的简单,它被用在了很多网站上面,几乎很少有大型的网站不会使用memcached. 曾经我也看过很多剖析memcached内部机制的文章,有一点收获,但是看过之后又忘记了,而且没有什么深刻的概念,但是最近我遇到一个问题,这个问题

ubuntu openfire Server install

1.首先登录到ubuntu server.在安装openfire 服务器之前,先确保你的系统已经更新到最新.然后输入下面的命令,一行一行执行,最后安装可用的更新 sudo apt-get update sudo apt-get upgrade 2.安装最新版本的Oracle JRE/JDK,使用PPA(personal package archieve)WEBUPD8的方式安装. sudo apt-get install python-software-properties sudo add-a

DNS Server : Install

Configure DNS Server to resolve Hostname or IP Address. [1] Run Server Manager and Click [Add roles and features]. [2] Click [Next] button. [3] Select [Role-based or feature-based installation]. [4] Select a Host which you'd like to add services. [5]

SQL SERVER INSTALL

shi li gongneng , yige sql server jiushi 1ge shili .gongneng xuanze zhuyao shi gongxiang gongneng de xuanxiang: shili gongneng lishi moren de, gongxianggongnengli de xuanze zhuyao shi :kehuduan gongju lianjie ; guanligongjujiben guanligongju -wanzhen

samba server install

要求: create vnc service for win7 access it via vnc viewer. 1TB disk for this Centos PC is used as Samba server, which used to share files. and nsn-intra user could access the folder via their personal win7 pc with map network drive. on this 1TB disk,

mysql server install

1.首先在mysql的官网www.mysql.com或者其他网站下载mysql.zip或者mis格式的文件目前5.6的差不多300多M. 2.zip压缩包是绿色版的不用安装,直接用dos命令操作就行. 3.安装前的准备: 进入解压后的后的文件D:\mysql 找到my-default.ini  进入文件里 把basedir=......改成mysql的路径basedir=D:\mysql datadir=....改成mysql的data路径D=\mysql\data. 4.用管理员启动doc命令

Windows Server 2008安装Memcached笔记

分布式缓存系统Memcached简介与实践 缘起: 在数据驱动的web开发中,经常要重复从数据库中取出相同的数据,这种重复极大的增加了数据库负载.缓存是解决这个问题的好办法.但是ASP.NET中的虽然已经可以实现对页面局部进行缓存,但还是不够灵活.此时Memcached或许是你想要的. Memcached是什么?Memcached是由Danga Interactive开发的,高性能的,分布式的内存对象缓存系统,用于在动态应用中减少数据库负载,提升访问速度. Memcached能缓存什么?通过在内

Install Windows Server 2016

Get Windows Server 2016 [1] Refer to the description about Windows Server 2016 on Microsoft site below. ? https://www.microsoft.com/en-us/cloud-platform/windows-server-b/ To use Windows Server, buy it.However, it's possible to try to use Evaluation V