码迷,mamicode.com
首页 > 系统相关 > 详细

memcached server install(WSL)

时间:2018-05-03 15:32:04      阅读:245      评论:0      收藏:0      [点我收藏+]

标签:eve   for   update   build   file   man   overview   make   ons   

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!
 

memcached server install(WSL)

标签:eve   for   update   build   file   man   overview   make   ons   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!