Memcached Summary Two: memcached environment installation settings and connection Memcache server

Source: Internet
Author: User

1 Installing memcached on Ubuntu

To install memcached on Ubuntu, open the terminal and enter the following command:

$sudo apt-get update$sudoinstall memcached
2. Verify that the memcached is installed

To confirm that the memcached is installed or not, you need to run the following command:

$PSgrep memcached

The above command will show that memcached is on the default port 11211 and if you want memcached to run on a different port, run the following command to start the memcached server:

11111 11111 -d-u Root

The above command starts TCP port 11111 on the server and listens on UDP port 11111 as the daemon. You can run multiple instances from one installation memcached server.

3. Connect to the Memcache server

To connect to the Memcache server, you need to use the Telnet command to the host and port names. The basic syntax for the memcached telnet command is as follows:

$telnet HOST PORT

Assuming that the memcached server is running on port 11211 when the host IP is 192.168.1.111, the connection is as follows:

192.168. 1.111 11211

Memcached Summary Two: memcached environment installation settings and connection Memcache server

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.