memcached Server Install (WSL)

Source: Internet
Author: User
Tags memcached

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 are 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'll start on port 11211 by default per the default configuration file:

# Default connection port is 11211
-p 11211

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

For a refresher in 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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.